ehcache

net.sf.ehcache.statistics.extended
Class ExtendedStatisticsImpl

java.lang.Object
  extended by net.sf.ehcache.statistics.extended.ExtendedStatisticsImpl
All Implemented Interfaces:
ExtendedStatistics

public class ExtendedStatisticsImpl
extends 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 Enum<T>>, ExtendedStatistics.Result, ExtendedStatistics.Statistic<T extends 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
ExtendedStatisticsImpl(org.terracotta.statistics.StatisticsManager manager, ScheduledExecutorService executor, long timeToDisable, TimeUnit unit, int defaultHistorySize, long defaultIntervalSeconds, long defaultSearchIntervalSeconds)
          Instantiates a new extended statistics impl.
 
Method Summary
 ExtendedStatistics.Result allGet()
          All get.
 ExtendedStatistics.Result allMiss()
          All miss.
 ExtendedStatistics.Result allPut()
          All put.
 ExtendedStatistics.Statistic<Double> cacheHitRatio()
          Cache hit ratio.
 ExtendedStatistics.Operation<CacheOperationOutcomes.ClusterEventOutcomes> clusterEvent()
          Cluster events
 ExtendedStatistics.Result diskAllPut()
          Disk all put.
 ExtendedStatistics.Operation<StoreOperationOutcomes.GetOutcome> diskGet()
          Disk get.
 ExtendedStatistics.Operation<StoreOperationOutcomes.PutOutcome> diskPut()
          Disk put.
 ExtendedStatistics.Operation<StoreOperationOutcomes.RemoveOutcome> diskRemove()
          Disk remove.
 ExtendedStatistics.Operation<CacheOperationOutcomes.EvictionOutcome> eviction()
          Eviction.
 ExtendedStatistics.Operation<CacheOperationOutcomes.ExpiredOutcome> expiry()
          Expiry.
 ExtendedStatistics.Operation<CacheOperationOutcomes.GetOutcome> get()
          Gets the.
 ExtendedStatistics.Result heapAllPut()
          Heap all put.
 ExtendedStatistics.Operation<StoreOperationOutcomes.GetOutcome> heapGet()
          Heap get.
 ExtendedStatistics.Operation<StoreOperationOutcomes.PutOutcome> heapPut()
          Heap put.
 ExtendedStatistics.Operation<StoreOperationOutcomes.RemoveOutcome> heapRemove()
          Heap remove.
 ExtendedStatistics.Statistic<Number> localDiskSize()
          Gets the local disk size.
 ExtendedStatistics.Statistic<Number> localDiskSizeInBytes()
          Gets the local disk size in bytes.
 ExtendedStatistics.Statistic<Number> localHeapSize()
          Gets the local heap size.
 ExtendedStatistics.Statistic<Number> localHeapSizeInBytes()
          Gets the local heap size in bytes.
 ExtendedStatistics.Statistic<Number> localOffHeapSize()
          Gets the local off heap size.
 ExtendedStatistics.Statistic<Number> localOffHeapSizeInBytes()
          Gets the local off heap size in bytes.
 ExtendedStatistics.Statistic<Number> mostRecentRejoinTimeStampMillis()
          Get the timestamp (millis) of the last cluster rejoin event
 ExtendedStatistics.Operation<CacheOperationOutcomes.NonStopOperationOutcomes> nonstop()
          Nonstop events
 ExtendedStatistics.Statistic<Double> nonstopTimeoutRatio()
          Nonstop timeout ratio
 ExtendedStatistics.Result offHeapAllPut()
          Off heap all put.
 ExtendedStatistics.Operation<StoreOperationOutcomes.GetOutcome> offheapGet()
          Offheap get.
 ExtendedStatistics.Operation<StoreOperationOutcomes.PutOutcome> offheapPut()
          Offheap put.
 ExtendedStatistics.Operation<StoreOperationOutcomes.RemoveOutcome> offheapRemove()
          Offheap remove.
<T extends Enum<T>>
Set<ExtendedStatistics.Operation<T>>
operations(Class<T> outcome, String name, String... tags)
          Operations.
 Set<ExtendedStatistics.Statistic<Number>> passthru(String name, Set<String> tags)
          Get the set of cache specific pass thru statistics for a nam/tags pair.
 ExtendedStatistics.Operation<CacheOperationOutcomes.PutOutcome> put()
          Put.
 ExtendedStatistics.Statistic<Number> remoteSize()
          Gets the remote size.
 ExtendedStatistics.Operation<CacheOperationOutcomes.RemoveOutcome> remove()
          Removes the.
 ExtendedStatistics.Operation<CacheOperationOutcomes.SearchOutcome> search()
          Search.
 void setAlwaysOn(boolean enabled)
          Sets the always on.
 void setTimeToDisable(long time, TimeUnit unit)
          Sets the time to disable.
 ExtendedStatistics.Statistic<Number> size()
          Gets the size.
 ExtendedStatistics.Statistic<Number> writerQueueLength()
          Gets the writer queue length.
 ExtendedStatistics.Operation<XaCommitOutcome> xaCommit()
          Xa commit.
 ExtendedStatistics.Operation<XaRecoveryOutcome> xaRecovery()
          Xa recovery.
 ExtendedStatistics.Operation<XaRollbackOutcome> xaRollback()
          Xa rollback.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendedStatisticsImpl

public ExtendedStatisticsImpl(org.terracotta.statistics.StatisticsManager manager,
                              ScheduledExecutorService executor,
                              long timeToDisable,
                              TimeUnit unit,
                              int defaultHistorySize,
                              long defaultIntervalSeconds,
                              long defaultSearchIntervalSeconds)
Instantiates a new extended statistics impl.

Parameters:
manager - the manager
executor - the executor
timeToDisable - the time to disable
unit - the unit
Method Detail

passthru

public Set<ExtendedStatistics.Statistic<Number>> passthru(String name,
                                                          Set<String> tags)
Description copied from interface: ExtendedStatistics
Get 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:
passthru in interface ExtendedStatistics
Parameters:
name - name
tags - set of tags
Returns:

setTimeToDisable

public void setTimeToDisable(long time,
                             TimeUnit unit)
Description copied from interface: ExtendedStatistics
Sets the time to disable.

Specified by:
setTimeToDisable in interface ExtendedStatistics
Parameters:
time - the time
unit - the unit

setAlwaysOn

public void setAlwaysOn(boolean enabled)
Description copied from interface: ExtendedStatistics
Sets the always on.

Specified by:
setAlwaysOn in interface ExtendedStatistics
Parameters:
enabled - the new always on

get

public ExtendedStatistics.Operation<CacheOperationOutcomes.GetOutcome> get()
Description copied from interface: ExtendedStatistics
Gets the.

Specified by:
get in interface ExtendedStatistics
Returns:
the operation

put

public ExtendedStatistics.Operation<CacheOperationOutcomes.PutOutcome> put()
Description copied from interface: ExtendedStatistics
Put.

Specified by:
put in interface ExtendedStatistics
Returns:
the operation

remove

public ExtendedStatistics.Operation<CacheOperationOutcomes.RemoveOutcome> remove()
Description copied from interface: ExtendedStatistics
Removes the.

Specified by:
remove in interface ExtendedStatistics
Returns:
the operation

search

public ExtendedStatistics.Operation<CacheOperationOutcomes.SearchOutcome> search()
Description copied from interface: ExtendedStatistics
Search.

Specified by:
search in interface ExtendedStatistics
Returns:
the operation

heapGet

public ExtendedStatistics.Operation<StoreOperationOutcomes.GetOutcome> heapGet()
Description copied from interface: ExtendedStatistics
Heap get.

Specified by:
heapGet in interface ExtendedStatistics
Returns:
the operation

heapPut

public ExtendedStatistics.Operation<StoreOperationOutcomes.PutOutcome> heapPut()
Description copied from interface: ExtendedStatistics
Heap put.

Specified by:
heapPut in interface ExtendedStatistics
Returns:
the operation

heapRemove

public ExtendedStatistics.Operation<StoreOperationOutcomes.RemoveOutcome> heapRemove()
Description copied from interface: ExtendedStatistics
Heap remove.

Specified by:
heapRemove in interface ExtendedStatistics
Returns:
the operation

offheapGet

public ExtendedStatistics.Operation<StoreOperationOutcomes.GetOutcome> offheapGet()
Description copied from interface: ExtendedStatistics
Offheap get.

Specified by:
offheapGet in interface ExtendedStatistics
Returns:
the operation

offheapPut

public ExtendedStatistics.Operation<StoreOperationOutcomes.PutOutcome> offheapPut()
Description copied from interface: ExtendedStatistics
Offheap put.

Specified by:
offheapPut in interface ExtendedStatistics
Returns:
the operation

offheapRemove

public ExtendedStatistics.Operation<StoreOperationOutcomes.RemoveOutcome> offheapRemove()
Description copied from interface: ExtendedStatistics
Offheap remove.

Specified by:
offheapRemove in interface ExtendedStatistics
Returns:
the operation

diskGet

public ExtendedStatistics.Operation<StoreOperationOutcomes.GetOutcome> diskGet()
Description copied from interface: ExtendedStatistics
Disk get.

Specified by:
diskGet in interface ExtendedStatistics
Returns:
the operation

diskPut

public ExtendedStatistics.Operation<StoreOperationOutcomes.PutOutcome> diskPut()
Description copied from interface: ExtendedStatistics
Disk put.

Specified by:
diskPut in interface ExtendedStatistics
Returns:
the operation

diskRemove

public ExtendedStatistics.Operation<StoreOperationOutcomes.RemoveOutcome> diskRemove()
Description copied from interface: ExtendedStatistics
Disk remove.

Specified by:
diskRemove in interface ExtendedStatistics
Returns:
the operation

xaCommit

public ExtendedStatistics.Operation<XaCommitOutcome> xaCommit()
Description copied from interface: ExtendedStatistics
Xa commit.

Specified by:
xaCommit in interface ExtendedStatistics
Returns:
the operation

xaRollback

public ExtendedStatistics.Operation<XaRollbackOutcome> xaRollback()
Description copied from interface: ExtendedStatistics
Xa rollback.

Specified by:
xaRollback in interface ExtendedStatistics
Returns:
the operation

xaRecovery

public ExtendedStatistics.Operation<XaRecoveryOutcome> xaRecovery()
Description copied from interface: ExtendedStatistics
Xa recovery.

Specified by:
xaRecovery in interface ExtendedStatistics
Returns:
the operation

eviction

public ExtendedStatistics.Operation<CacheOperationOutcomes.EvictionOutcome> eviction()
Description copied from interface: ExtendedStatistics
Eviction.

Specified by:
eviction in interface ExtendedStatistics
Returns:
the operation

expiry

public ExtendedStatistics.Operation<CacheOperationOutcomes.ExpiredOutcome> expiry()
Description copied from interface: ExtendedStatistics
Expiry.

Specified by:
expiry in interface ExtendedStatistics
Returns:
the operation

cacheHitRatio

public ExtendedStatistics.Statistic<Double> cacheHitRatio()
Description copied from interface: ExtendedStatistics
Cache hit ratio.

Specified by:
cacheHitRatio in interface ExtendedStatistics
Returns:

allGet

public ExtendedStatistics.Result allGet()
Description copied from interface: ExtendedStatistics
All get.

Specified by:
allGet in interface ExtendedStatistics
Returns:
the result

allMiss

public ExtendedStatistics.Result allMiss()
Description copied from interface: ExtendedStatistics
All miss.

Specified by:
allMiss in interface ExtendedStatistics
Returns:
the result

allPut

public ExtendedStatistics.Result allPut()
Description copied from interface: ExtendedStatistics
All put.

Specified by:
allPut in interface ExtendedStatistics
Returns:
the result

heapAllPut

public ExtendedStatistics.Result heapAllPut()
Description copied from interface: ExtendedStatistics
Heap all put.

Specified by:
heapAllPut in interface ExtendedStatistics
Returns:
the result

offHeapAllPut

public ExtendedStatistics.Result offHeapAllPut()
Description copied from interface: ExtendedStatistics
Off heap all put.

Specified by:
offHeapAllPut in interface ExtendedStatistics
Returns:
the result

diskAllPut

public ExtendedStatistics.Result diskAllPut()
Description copied from interface: ExtendedStatistics
Disk all put.

Specified by:
diskAllPut in interface ExtendedStatistics
Returns:
the result

operations

public <T extends Enum<T>> Set<ExtendedStatistics.Operation<T>> operations(Class<T> outcome,
                                                                           String name,
                                                                           String... tags)
Description copied from interface: ExtendedStatistics
Operations.

Specified by:
operations in interface ExtendedStatistics
Type Parameters:
T - the generic type
Parameters:
outcome - the outcome
name - the name
tags - the tags
Returns:
the sets the

localHeapSize

public ExtendedStatistics.Statistic<Number> localHeapSize()
Description copied from interface: ExtendedStatistics
Gets the local heap size.

Specified by:
localHeapSize in interface ExtendedStatistics
Returns:
the local heap size

localHeapSizeInBytes

public ExtendedStatistics.Statistic<Number> localHeapSizeInBytes()
Description copied from interface: ExtendedStatistics
Gets the local heap size in bytes.

Specified by:
localHeapSizeInBytes in interface ExtendedStatistics
Returns:
the local heap size in bytes

localOffHeapSize

public ExtendedStatistics.Statistic<Number> localOffHeapSize()
Description copied from interface: ExtendedStatistics
Gets the local off heap size.

Specified by:
localOffHeapSize in interface ExtendedStatistics
Returns:
the local off heap size

localOffHeapSizeInBytes

public ExtendedStatistics.Statistic<Number> localOffHeapSizeInBytes()
Description copied from interface: ExtendedStatistics
Gets the local off heap size in bytes.

Specified by:
localOffHeapSizeInBytes in interface ExtendedStatistics
Returns:
the local off heap size in bytes

localDiskSize

public ExtendedStatistics.Statistic<Number> localDiskSize()
Description copied from interface: ExtendedStatistics
Gets the local disk size.

Specified by:
localDiskSize in interface ExtendedStatistics
Returns:
the local disk size

localDiskSizeInBytes

public ExtendedStatistics.Statistic<Number> localDiskSizeInBytes()
Description copied from interface: ExtendedStatistics
Gets the local disk size in bytes.

Specified by:
localDiskSizeInBytes in interface ExtendedStatistics
Returns:
the local disk size in bytes

remoteSize

public ExtendedStatistics.Statistic<Number> remoteSize()
Description copied from interface: ExtendedStatistics
Gets the remote size.

Specified by:
remoteSize in interface ExtendedStatistics
Returns:
the remote size

size

public ExtendedStatistics.Statistic<Number> size()
Description copied from interface: ExtendedStatistics
Gets the size.

Specified by:
size in interface ExtendedStatistics
Returns:
the size

writerQueueLength

public ExtendedStatistics.Statistic<Number> writerQueueLength()
Description copied from interface: ExtendedStatistics
Gets the writer queue length.

Specified by:
writerQueueLength in interface ExtendedStatistics
Returns:
the writer queue length

clusterEvent

public ExtendedStatistics.Operation<CacheOperationOutcomes.ClusterEventOutcomes> clusterEvent()
Description copied from interface: ExtendedStatistics
Cluster events

Specified by:
clusterEvent in interface ExtendedStatistics
Returns:
the operation

nonstop

public ExtendedStatistics.Operation<CacheOperationOutcomes.NonStopOperationOutcomes> nonstop()
Description copied from interface: ExtendedStatistics
Nonstop events

Specified by:
nonstop in interface ExtendedStatistics
Returns:
the operation

mostRecentRejoinTimeStampMillis

public ExtendedStatistics.Statistic<Number> mostRecentRejoinTimeStampMillis()
Description copied from interface: ExtendedStatistics
Get the timestamp (millis) of the last cluster rejoin event

Specified by:
mostRecentRejoinTimeStampMillis in interface ExtendedStatistics
Returns:
statistic for cluster rejoin timestamp

nonstopTimeoutRatio

public ExtendedStatistics.Statistic<Double> nonstopTimeoutRatio()
Description copied from interface: ExtendedStatistics
Nonstop timeout ratio

Specified by:
nonstopTimeoutRatio in interface ExtendedStatistics
Returns:

ehcache

Copyright 2001-2014, Terracotta, Inc.