aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/main/scala/kamon/metric/instrument/AtomicHistogramFieldsAccessor.scala
diff options
context:
space:
mode:
authorDiego <diegolparra@gmail.com>2015-11-30 23:50:21 -0300
committerDiego <diegolparra@gmail.com>2015-11-30 23:50:21 -0300
commit4eb8acb1983618378cddf42d6ddf0fb09a69563c (patch)
tree309a1fef12c1456b3a74f0cfbca8c92c70cd0698 /kamon-core/src/main/scala/kamon/metric/instrument/AtomicHistogramFieldsAccessor.scala
parente85d0b17e986ff282e542581235bdd13d14eeaeb (diff)
downloadKamon-4eb8acb1983618378cddf42d6ddf0fb09a69563c.tar.gz
Kamon-4eb8acb1983618378cddf42d6ddf0fb09a69563c.tar.bz2
Kamon-4eb8acb1983618378cddf42d6ddf0fb09a69563c.zip
! core: Avoid updating the totalCount on our histograms and close #293
Diffstat (limited to 'kamon-core/src/main/scala/kamon/metric/instrument/AtomicHistogramFieldsAccessor.scala')
-rw-r--r--kamon-core/src/main/scala/kamon/metric/instrument/AtomicHistogramFieldsAccessor.scala35
1 files changed, 0 insertions, 35 deletions
diff --git a/kamon-core/src/main/scala/kamon/metric/instrument/AtomicHistogramFieldsAccessor.scala b/kamon-core/src/main/scala/kamon/metric/instrument/AtomicHistogramFieldsAccessor.scala
deleted file mode 100644
index e79090a8..00000000
--- a/kamon-core/src/main/scala/kamon/metric/instrument/AtomicHistogramFieldsAccessor.scala
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * =========================================================================================
- * Copyright © 2013-2014 the kamon project <http://kamon.io/>
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the
- * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the specific language governing permissions
- * and limitations under the License.
- * =========================================================================================
- */
-
-package org.HdrHistogram
-
-import java.util.concurrent.atomic.{ AtomicLongArray, AtomicLongFieldUpdater }
-
-trait AtomicHistogramFieldsAccessor {
- self: AtomicHistogram ⇒
-
- def countsArray(): AtomicLongArray = self.counts
-
- def unitMagnitude(): Int = self.unitMagnitude
-
- def subBucketHalfCount(): Int = self.subBucketHalfCount
-
- def subBucketHalfCountMagnitude(): Int = self.subBucketHalfCountMagnitude
-}
-
-object AtomicHistogramFieldsAccessor {
- def totalCountUpdater(): AtomicLongFieldUpdater[AtomicHistogram] = AtomicHistogram.totalCountUpdater
-}