Class ExtendedStatisticsImpl
- java.lang.Object
-
- net.sf.ehcache.statistics.extended.ExtendedStatisticsImpl
-
- All Implemented Interfaces:
ExtendedStatistics
public class ExtendedStatisticsImpl extends java.lang.Object implements ExtendedStatistics
The Class ExtendedStatisticsImpl.- Author:
- cschanck
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.sf.ehcache.statistics.extended.ExtendedStatistics
ExtendedStatistics.Latency, ExtendedStatistics.Operation<T extends java.lang.Enum<T>>, ExtendedStatistics.Result, ExtendedStatistics.Statistic<T extends java.lang.Number>
-
-
Field Summary
-
Fields inherited from interface net.sf.ehcache.statistics.extended.ExtendedStatistics
ALL_CACHE_GET_OUTCOMES, ALL_CACHE_MISS_OUTCOMES, ALL_CACHE_PUT_OUTCOMES, ALL_STORE_PUT_OUTCOMES
-
-
Constructor Summary
Constructors Constructor Description ExtendedStatisticsImpl(org.terracotta.statistics.StatisticsManager manager, java.util.concurrent.ScheduledExecutorService executor, long timeToDisable, java.util.concurrent.TimeUnit unit, int defaultHistorySize, long defaultIntervalSeconds, long defaultSearchIntervalSeconds)Instantiates a new extended statistics impl.
-
Method Summary
-
-
-
Constructor Detail
-
ExtendedStatisticsImpl
public ExtendedStatisticsImpl(org.terracotta.statistics.StatisticsManager manager, java.util.concurrent.ScheduledExecutorService executor, long timeToDisable, java.util.concurrent.TimeUnit unit, int defaultHistorySize, long defaultIntervalSeconds, long defaultSearchIntervalSeconds)Instantiates a new extended statistics impl.- Parameters:
manager- the managerexecutor- the executortimeToDisable- the time to disableunit- the unit
-
-
Method Detail
-
passthru
public java.util.Set<ExtendedStatistics.Statistic<java.lang.Number>> passthru(java.lang.String name, java.util.Set<java.lang.String> tags)
Description copied from interface:ExtendedStatisticsGet the set of cache specific pass thru statistics for a nam/tags pair. Used for custom pass thru statistics, as opposed to well known standard ones.- Specified by:
passthruin interfaceExtendedStatistics- Parameters:
name- nametags- set of tags- Returns:
-
setTimeToDisable
public void setTimeToDisable(long time, java.util.concurrent.TimeUnit unit)Description copied from interface:ExtendedStatisticsSets the time to disable.- Specified by:
setTimeToDisablein interfaceExtendedStatistics- Parameters:
time- the timeunit- the unit
-
setAlwaysOn
public void setAlwaysOn(boolean enabled)
Description copied from interface:ExtendedStatisticsSets the always on.- Specified by:
setAlwaysOnin interfaceExtendedStatistics- Parameters:
enabled- the new always on
-
get
public ExtendedStatistics.Operation<CacheOperationOutcomes.GetOutcome> get()
Description copied from interface:ExtendedStatisticsGets the.- Specified by:
getin interfaceExtendedStatistics- Returns:
- the operation
-
put
public ExtendedStatistics.Operation<CacheOperationOutcomes.PutOutcome> put()
Description copied from interface:ExtendedStatisticsPut.- Specified by:
putin interfaceExtendedStatistics- Returns:
- the operation
-
remove
public ExtendedStatistics.Operation<CacheOperationOutcomes.RemoveOutcome> remove()
Description copied from interface:ExtendedStatisticsRemoves the.- Specified by:
removein interfaceExtendedStatistics- Returns:
- the operation
-
replaceOneArg
public ExtendedStatistics.Operation<CacheOperationOutcomes.ReplaceOneArgOutcome> replaceOneArg()
Description copied from interface:ExtendedStatisticssingle arg replace operation- Specified by:
replaceOneArgin interfaceExtendedStatistics- Returns:
-
replaceTwoArg
public ExtendedStatistics.Operation<CacheOperationOutcomes.ReplaceTwoArgOutcome> replaceTwoArg()
Description copied from interface:ExtendedStatisticstwo arg replace operation- Specified by:
replaceTwoArgin interfaceExtendedStatistics- Returns:
-
putIfAbsent
public ExtendedStatistics.Operation<CacheOperationOutcomes.PutIfAbsentOutcome> putIfAbsent()
Description copied from interface:ExtendedStatisticsput if absent operation- Specified by:
putIfAbsentin interfaceExtendedStatistics- Returns:
-
removeElement
public ExtendedStatistics.Operation<CacheOperationOutcomes.RemoveElementOutcome> removeElement()
Description copied from interface:ExtendedStatisticsremove element operation- Specified by:
removeElementin interfaceExtendedStatistics- Returns:
-
search
public ExtendedStatistics.Operation<CacheOperationOutcomes.SearchOutcome> search()
Description copied from interface:ExtendedStatisticsSearch.- Specified by:
searchin interfaceExtendedStatistics- Returns:
- the operation
-
heapGet
public ExtendedStatistics.Operation<StoreOperationOutcomes.GetOutcome> heapGet()
Description copied from interface:ExtendedStatisticsHeap get.- Specified by:
heapGetin interfaceExtendedStatistics- Returns:
- the operation
-
heapPut
public ExtendedStatistics.Operation<StoreOperationOutcomes.PutOutcome> heapPut()
Description copied from interface:ExtendedStatisticsHeap put.- Specified by:
heapPutin interfaceExtendedStatistics- Returns:
- the operation
-
heapRemove
public ExtendedStatistics.Operation<StoreOperationOutcomes.RemoveOutcome> heapRemove()
Description copied from interface:ExtendedStatisticsHeap remove.- Specified by:
heapRemovein interfaceExtendedStatistics- Returns:
- the operation
-
offheapGet
public ExtendedStatistics.Operation<StoreOperationOutcomes.GetOutcome> offheapGet()
Description copied from interface:ExtendedStatisticsOffheap get.- Specified by:
offheapGetin interfaceExtendedStatistics- Returns:
- the operation
-
offheapPut
public ExtendedStatistics.Operation<StoreOperationOutcomes.PutOutcome> offheapPut()
Description copied from interface:ExtendedStatisticsOffheap put.- Specified by:
offheapPutin interfaceExtendedStatistics- Returns:
- the operation
-
offheapRemove
public ExtendedStatistics.Operation<StoreOperationOutcomes.RemoveOutcome> offheapRemove()
Description copied from interface:ExtendedStatisticsOffheap remove.- Specified by:
offheapRemovein interfaceExtendedStatistics- Returns:
- the operation
-
diskGet
public ExtendedStatistics.Operation<StoreOperationOutcomes.GetOutcome> diskGet()
Description copied from interface:ExtendedStatisticsDisk get.- Specified by:
diskGetin interfaceExtendedStatistics- Returns:
- the operation
-
diskPut
public ExtendedStatistics.Operation<StoreOperationOutcomes.PutOutcome> diskPut()
Description copied from interface:ExtendedStatisticsDisk put.- Specified by:
diskPutin interfaceExtendedStatistics- Returns:
- the operation
-
diskRemove
public ExtendedStatistics.Operation<StoreOperationOutcomes.RemoveOutcome> diskRemove()
Description copied from interface:ExtendedStatisticsDisk remove.- Specified by:
diskRemovein interfaceExtendedStatistics- Returns:
- the operation
-
xaCommit
public ExtendedStatistics.Operation<XaCommitOutcome> xaCommit()
Description copied from interface:ExtendedStatisticsXa commit.- Specified by:
xaCommitin interfaceExtendedStatistics- Returns:
- the operation
-
xaRollback
public ExtendedStatistics.Operation<XaRollbackOutcome> xaRollback()
Description copied from interface:ExtendedStatisticsXa rollback.- Specified by:
xaRollbackin interfaceExtendedStatistics- Returns:
- the operation
-
xaRecovery
public ExtendedStatistics.Operation<XaRecoveryOutcome> xaRecovery()
Description copied from interface:ExtendedStatisticsXa recovery.- Specified by:
xaRecoveryin interfaceExtendedStatistics- Returns:
- the operation
-
eviction
public ExtendedStatistics.Operation<CacheOperationOutcomes.EvictionOutcome> eviction()
Description copied from interface:ExtendedStatisticsEviction.- Specified by:
evictionin interfaceExtendedStatistics- Returns:
- the operation
-
expiry
public ExtendedStatistics.Operation<CacheOperationOutcomes.ExpiredOutcome> expiry()
Description copied from interface:ExtendedStatisticsExpiry.- Specified by:
expiryin interfaceExtendedStatistics- Returns:
- the operation
-
cacheHitRatio
public ExtendedStatistics.Statistic<java.lang.Double> cacheHitRatio()
Description copied from interface:ExtendedStatisticsCache hit ratio.- Specified by:
cacheHitRatioin interfaceExtendedStatistics- Returns:
-
allGet
public ExtendedStatistics.Result allGet()
Description copied from interface:ExtendedStatisticsAll get.- Specified by:
allGetin interfaceExtendedStatistics- Returns:
- the result
-
allMiss
public ExtendedStatistics.Result allMiss()
Description copied from interface:ExtendedStatisticsAll miss.- Specified by:
allMissin interfaceExtendedStatistics- Returns:
- the result
-
allPut
public ExtendedStatistics.Result allPut()
Description copied from interface:ExtendedStatisticsAll put.- Specified by:
allPutin interfaceExtendedStatistics- Returns:
- the result
-
heapAllPut
public ExtendedStatistics.Result heapAllPut()
Description copied from interface:ExtendedStatisticsHeap all put.- Specified by:
heapAllPutin interfaceExtendedStatistics- Returns:
- the result
-
offHeapAllPut
public ExtendedStatistics.Result offHeapAllPut()
Description copied from interface:ExtendedStatisticsOff heap all put.- Specified by:
offHeapAllPutin interfaceExtendedStatistics- Returns:
- the result
-
diskAllPut
public ExtendedStatistics.Result diskAllPut()
Description copied from interface:ExtendedStatisticsDisk all put.- Specified by:
diskAllPutin interfaceExtendedStatistics- Returns:
- the result
-
operations
public <T extends java.lang.Enum<T>> java.util.Set<ExtendedStatistics.Operation<T>> operations(java.lang.Class<T> outcome, java.lang.String name, java.lang.String... tags)
Description copied from interface:ExtendedStatisticsOperations.- Specified by:
operationsin interfaceExtendedStatistics- Type Parameters:
T- the generic type- Parameters:
outcome- the outcomename- the nametags- the tags- Returns:
- the sets the
-
localHeapSize
public ExtendedStatistics.Statistic<java.lang.Number> localHeapSize()
Description copied from interface:ExtendedStatisticsGets the local heap size.- Specified by:
localHeapSizein interfaceExtendedStatistics- Returns:
- the local heap size
-
localHeapSizeInBytes
public ExtendedStatistics.Statistic<java.lang.Number> localHeapSizeInBytes()
Description copied from interface:ExtendedStatisticsGets the local heap size in bytes.- Specified by:
localHeapSizeInBytesin interfaceExtendedStatistics- Returns:
- the local heap size in bytes
-
localOffHeapSize
public ExtendedStatistics.Statistic<java.lang.Number> localOffHeapSize()
Description copied from interface:ExtendedStatisticsGets the local off heap size.- Specified by:
localOffHeapSizein interfaceExtendedStatistics- Returns:
- the local off heap size
-
localOffHeapSizeInBytes
public ExtendedStatistics.Statistic<java.lang.Number> localOffHeapSizeInBytes()
Description copied from interface:ExtendedStatisticsGets the local off heap size in bytes.- Specified by:
localOffHeapSizeInBytesin interfaceExtendedStatistics- Returns:
- the local off heap size in bytes
-
localDiskSize
public ExtendedStatistics.Statistic<java.lang.Number> localDiskSize()
Description copied from interface:ExtendedStatisticsGets the local disk size.- Specified by:
localDiskSizein interfaceExtendedStatistics- Returns:
- the local disk size
-
localDiskSizeInBytes
public ExtendedStatistics.Statistic<java.lang.Number> localDiskSizeInBytes()
Description copied from interface:ExtendedStatisticsGets the local disk size in bytes.- Specified by:
localDiskSizeInBytesin interfaceExtendedStatistics- Returns:
- the local disk size in bytes
-
remoteSize
public ExtendedStatistics.Statistic<java.lang.Number> remoteSize()
Description copied from interface:ExtendedStatisticsGets the remote size.- Specified by:
remoteSizein interfaceExtendedStatistics- Returns:
- the remote size
-
size
public ExtendedStatistics.Statistic<java.lang.Number> size()
Description copied from interface:ExtendedStatisticsGets the size.- Specified by:
sizein interfaceExtendedStatistics- Returns:
- the size
-
writerQueueLength
public ExtendedStatistics.Statistic<java.lang.Number> writerQueueLength()
Description copied from interface:ExtendedStatisticsGets the writer queue length.- Specified by:
writerQueueLengthin interfaceExtendedStatistics- Returns:
- the writer queue length
-
clusterEvent
public ExtendedStatistics.Operation<CacheOperationOutcomes.ClusterEventOutcomes> clusterEvent()
Description copied from interface:ExtendedStatisticsCluster events- Specified by:
clusterEventin interfaceExtendedStatistics- Returns:
- the operation
-
nonstop
public ExtendedStatistics.Operation<CacheOperationOutcomes.NonStopOperationOutcomes> nonstop()
Description copied from interface:ExtendedStatisticsNonstop events- Specified by:
nonstopin interfaceExtendedStatistics- Returns:
- the operation
-
mostRecentRejoinTimeStampMillis
public ExtendedStatistics.Statistic<java.lang.Number> mostRecentRejoinTimeStampMillis()
Description copied from interface:ExtendedStatisticsGet the timestamp (millis) of the last cluster rejoin event- Specified by:
mostRecentRejoinTimeStampMillisin interfaceExtendedStatistics- Returns:
- statistic for cluster rejoin timestamp
-
nonstopTimeoutRatio
public ExtendedStatistics.Statistic<java.lang.Double> nonstopTimeoutRatio()
Description copied from interface:ExtendedStatisticsNonstop timeout ratio- Specified by:
nonstopTimeoutRatioin interfaceExtendedStatistics- Returns:
-
dispose
public void dispose()
-
-