public class ExtendedStatisticsImpl extends Object implements ExtendedStatistics
ExtendedStatistics.Latency, ExtendedStatistics.Operation<T extends Enum<T>>, ExtendedStatistics.Result, ExtendedStatistics.Statistic<T extends Number>
ALL_CACHE_GET_OUTCOMES, ALL_CACHE_MISS_OUTCOMES, ALL_CACHE_PUT_OUTCOMES, ALL_STORE_PUT_OUTCOMES
Constructor and Description |
---|
ExtendedStatisticsImpl(org.terracotta.statistics.StatisticsManager manager,
ScheduledExecutorService executor,
long timeToDisable,
TimeUnit unit,
int defaultHistorySize,
long defaultIntervalSeconds,
long defaultSearchIntervalSeconds)
Instantiates a new extended statistics impl.
|
public ExtendedStatisticsImpl(org.terracotta.statistics.StatisticsManager manager, ScheduledExecutorService executor, long timeToDisable, TimeUnit unit, int defaultHistorySize, long defaultIntervalSeconds, long defaultSearchIntervalSeconds)
manager
- the managerexecutor
- the executortimeToDisable
- the time to disableunit
- the unitpublic Set<ExtendedStatistics.Statistic<Number>> passthru(String name, Set<String> tags)
ExtendedStatistics
passthru
in interface ExtendedStatistics
name
- nametags
- set of tagspublic void setTimeToDisable(long time, TimeUnit unit)
ExtendedStatistics
setTimeToDisable
in interface ExtendedStatistics
time
- the timeunit
- the unitpublic void setAlwaysOn(boolean enabled)
ExtendedStatistics
setAlwaysOn
in interface ExtendedStatistics
enabled
- the new always onpublic ExtendedStatistics.Operation<CacheOperationOutcomes.GetOutcome> get()
ExtendedStatistics
get
in interface ExtendedStatistics
public ExtendedStatistics.Operation<CacheOperationOutcomes.PutOutcome> put()
ExtendedStatistics
put
in interface ExtendedStatistics
public ExtendedStatistics.Operation<CacheOperationOutcomes.RemoveOutcome> remove()
ExtendedStatistics
remove
in interface ExtendedStatistics
public ExtendedStatistics.Operation<CacheOperationOutcomes.ReplaceOneArgOutcome> replaceOneArg()
ExtendedStatistics
replaceOneArg
in interface ExtendedStatistics
public ExtendedStatistics.Operation<CacheOperationOutcomes.ReplaceTwoArgOutcome> replaceTwoArg()
ExtendedStatistics
replaceTwoArg
in interface ExtendedStatistics
public ExtendedStatistics.Operation<CacheOperationOutcomes.PutIfAbsentOutcome> putIfAbsent()
ExtendedStatistics
putIfAbsent
in interface ExtendedStatistics
public ExtendedStatistics.Operation<CacheOperationOutcomes.RemoveElementOutcome> removeElement()
ExtendedStatistics
removeElement
in interface ExtendedStatistics
public ExtendedStatistics.Operation<CacheOperationOutcomes.SearchOutcome> search()
ExtendedStatistics
search
in interface ExtendedStatistics
public ExtendedStatistics.Operation<StoreOperationOutcomes.GetOutcome> heapGet()
ExtendedStatistics
heapGet
in interface ExtendedStatistics
public ExtendedStatistics.Operation<StoreOperationOutcomes.PutOutcome> heapPut()
ExtendedStatistics
heapPut
in interface ExtendedStatistics
public ExtendedStatistics.Operation<StoreOperationOutcomes.RemoveOutcome> heapRemove()
ExtendedStatistics
heapRemove
in interface ExtendedStatistics
public ExtendedStatistics.Operation<StoreOperationOutcomes.GetOutcome> offheapGet()
ExtendedStatistics
offheapGet
in interface ExtendedStatistics
public ExtendedStatistics.Operation<StoreOperationOutcomes.PutOutcome> offheapPut()
ExtendedStatistics
offheapPut
in interface ExtendedStatistics
public ExtendedStatistics.Operation<StoreOperationOutcomes.RemoveOutcome> offheapRemove()
ExtendedStatistics
offheapRemove
in interface ExtendedStatistics
public ExtendedStatistics.Operation<StoreOperationOutcomes.GetOutcome> diskGet()
ExtendedStatistics
diskGet
in interface ExtendedStatistics
public ExtendedStatistics.Operation<StoreOperationOutcomes.PutOutcome> diskPut()
ExtendedStatistics
diskPut
in interface ExtendedStatistics
public ExtendedStatistics.Operation<StoreOperationOutcomes.RemoveOutcome> diskRemove()
ExtendedStatistics
diskRemove
in interface ExtendedStatistics
public ExtendedStatistics.Operation<XaCommitOutcome> xaCommit()
ExtendedStatistics
xaCommit
in interface ExtendedStatistics
public ExtendedStatistics.Operation<XaRollbackOutcome> xaRollback()
ExtendedStatistics
xaRollback
in interface ExtendedStatistics
public ExtendedStatistics.Operation<XaRecoveryOutcome> xaRecovery()
ExtendedStatistics
xaRecovery
in interface ExtendedStatistics
public ExtendedStatistics.Operation<CacheOperationOutcomes.EvictionOutcome> eviction()
ExtendedStatistics
eviction
in interface ExtendedStatistics
public ExtendedStatistics.Operation<CacheOperationOutcomes.ExpiredOutcome> expiry()
ExtendedStatistics
expiry
in interface ExtendedStatistics
public ExtendedStatistics.Statistic<Double> cacheHitRatio()
ExtendedStatistics
cacheHitRatio
in interface ExtendedStatistics
public ExtendedStatistics.Result allGet()
ExtendedStatistics
allGet
in interface ExtendedStatistics
public ExtendedStatistics.Result allMiss()
ExtendedStatistics
allMiss
in interface ExtendedStatistics
public ExtendedStatistics.Result allPut()
ExtendedStatistics
allPut
in interface ExtendedStatistics
public ExtendedStatistics.Result heapAllPut()
ExtendedStatistics
heapAllPut
in interface ExtendedStatistics
public ExtendedStatistics.Result offHeapAllPut()
ExtendedStatistics
offHeapAllPut
in interface ExtendedStatistics
public ExtendedStatistics.Result diskAllPut()
ExtendedStatistics
diskAllPut
in interface ExtendedStatistics
public <T extends Enum<T>> Set<ExtendedStatistics.Operation<T>> operations(Class<T> outcome, String name, String... tags)
ExtendedStatistics
operations
in interface ExtendedStatistics
T
- the generic typeoutcome
- the outcomename
- the nametags
- the tagspublic ExtendedStatistics.Statistic<Number> localHeapSize()
ExtendedStatistics
localHeapSize
in interface ExtendedStatistics
public ExtendedStatistics.Statistic<Number> localHeapSizeInBytes()
ExtendedStatistics
localHeapSizeInBytes
in interface ExtendedStatistics
public ExtendedStatistics.Statistic<Number> localOffHeapSize()
ExtendedStatistics
localOffHeapSize
in interface ExtendedStatistics
public ExtendedStatistics.Statistic<Number> localOffHeapSizeInBytes()
ExtendedStatistics
localOffHeapSizeInBytes
in interface ExtendedStatistics
public ExtendedStatistics.Statistic<Number> localDiskSize()
ExtendedStatistics
localDiskSize
in interface ExtendedStatistics
public ExtendedStatistics.Statistic<Number> localDiskSizeInBytes()
ExtendedStatistics
localDiskSizeInBytes
in interface ExtendedStatistics
public ExtendedStatistics.Statistic<Number> remoteSize()
ExtendedStatistics
remoteSize
in interface ExtendedStatistics
public ExtendedStatistics.Statistic<Number> size()
ExtendedStatistics
size
in interface ExtendedStatistics
public ExtendedStatistics.Statistic<Number> writerQueueLength()
ExtendedStatistics
writerQueueLength
in interface ExtendedStatistics
public ExtendedStatistics.Operation<CacheOperationOutcomes.ClusterEventOutcomes> clusterEvent()
ExtendedStatistics
clusterEvent
in interface ExtendedStatistics
public ExtendedStatistics.Operation<CacheOperationOutcomes.NonStopOperationOutcomes> nonstop()
ExtendedStatistics
nonstop
in interface ExtendedStatistics
public ExtendedStatistics.Statistic<Number> mostRecentRejoinTimeStampMillis()
ExtendedStatistics
mostRecentRejoinTimeStampMillis
in interface ExtendedStatistics
public ExtendedStatistics.Statistic<Double> nonstopTimeoutRatio()
ExtendedStatistics
nonstopTimeoutRatio
in interface ExtendedStatistics
Copyright © 2003–2016 Terracotta, Inc.. All rights reserved.