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)
          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.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.
 org.terracotta.statistics.ValueStatistic<Number> getLocalDiskSize()
          Gets the local disk size.
 org.terracotta.statistics.ValueStatistic<Number> getLocalDiskSizeInBytes()
          Gets the local disk size in bytes.
 org.terracotta.statistics.ValueStatistic<Number> getLocalHeapSize()
          Gets the local heap size.
 org.terracotta.statistics.ValueStatistic<Number> getLocalHeapSizeInBytes()
          Gets the local heap size in bytes.
 org.terracotta.statistics.ValueStatistic<Number> getLocalOffHeapSize()
          Gets the local off heap size.
 org.terracotta.statistics.ValueStatistic<Number> getLocalOffHeapSizeInBytes()
          Gets the local off heap size in bytes.
 org.terracotta.statistics.ValueStatistic<Number> getRemoteSize()
          Gets the remote size.
 org.terracotta.statistics.ValueStatistic<Number> getSize()
          Gets the size.
 org.terracotta.statistics.ValueStatistic<Number> getWriterQueueLength()
          Gets the writer queue length.
 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.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.
 ExtendedStatistics.Operation<CacheOperationOutcomes.PutOutcome> put()
          Put.
 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.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)
Instantiates a new extended statistics impl.

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

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

getLocalHeapSize

public org.terracotta.statistics.ValueStatistic<Number> getLocalHeapSize()
Description copied from interface: ExtendedStatistics
Gets the local heap size.

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

getLocalHeapSizeInBytes

public org.terracotta.statistics.ValueStatistic<Number> getLocalHeapSizeInBytes()
Description copied from interface: ExtendedStatistics
Gets the local heap size in bytes.

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

getLocalOffHeapSize

public org.terracotta.statistics.ValueStatistic<Number> getLocalOffHeapSize()
Description copied from interface: ExtendedStatistics
Gets the local off heap size.

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

getLocalOffHeapSizeInBytes

public org.terracotta.statistics.ValueStatistic<Number> getLocalOffHeapSizeInBytes()
Description copied from interface: ExtendedStatistics
Gets the local off heap size in bytes.

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

getLocalDiskSize

public org.terracotta.statistics.ValueStatistic<Number> getLocalDiskSize()
Description copied from interface: ExtendedStatistics
Gets the local disk size.

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

getLocalDiskSizeInBytes

public org.terracotta.statistics.ValueStatistic<Number> getLocalDiskSizeInBytes()
Description copied from interface: ExtendedStatistics
Gets the local disk size in bytes.

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

getRemoteSize

public org.terracotta.statistics.ValueStatistic<Number> getRemoteSize()
Description copied from interface: ExtendedStatistics
Gets the remote size.

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

getSize

public org.terracotta.statistics.ValueStatistic<Number> getSize()
Description copied from interface: ExtendedStatistics
Gets the size.

Specified by:
getSize in interface ExtendedStatistics
Returns:
the size

getWriterQueueLength

public org.terracotta.statistics.ValueStatistic<Number> getWriterQueueLength()
Description copied from interface: ExtendedStatistics
Gets the writer queue length.

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

ehcache

Copyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.