Top Description Fields Constructors Methods
net.sf.ehcache.statistics.extended

public Class ExtendedStatisticsImpl

extends Object
implements ExtendedStatistics
Class Inheritance
All Implemented Interfaces
net.sf.ehcache.statistics.extended.ExtendedStatistics
Imports
net.sf.ehcache.CacheOperationOutcomes, .CacheOperationOutcomes.ClusterEventOutcomes, .CacheOperationOutcomes.EvictionOutcome, .CacheOperationOutcomes.ExpiredOutcome, .CacheOperationOutcomes.GetOutcome, .CacheOperationOutcomes.NonStopOperationOutcomes, .CacheOperationOutcomes.PutOutcome, .CacheOperationOutcomes.RemoveOutcome, .CacheOperationOutcomes.SearchOutcome, net.sf.ehcache.statistics.StatisticsGateway, net.sf.ehcache.store.StoreOperationOutcomes, net.sf.ehcache.transaction.xa.XaCommitOutcome, .XaRecoveryOutcome, .XaRollbackOutcome, net.sf.ehcache.util.concurrent.ConcurrentHashMap, org.slf4j.Logger, .LoggerFactory, org.terracotta.context.TreeNode, org.terracotta.context.query.Matcher, .Matchers, .Query, org.terracotta.statistics.OperationStatistic, .StatisticsManager, .Time, .ValueStatistic, java.util.ArrayList, .Arrays, .Collection, .Collections, .EnumSet, .HashSet, .Iterator, .Map, .Set, java.util.concurrent.ConcurrentMap, .ScheduledExecutorService, .ScheduledFuture, .TimeUnit

The Class ExtendedStatisticsImpl.
Author
cschanck

Field Summary

Modifier and TypeField and Description
private final ExtendedStatistics.Result
allCacheGet

The all cache get.

private final ExtendedStatistics.Result
allCacheMiss

The all cache miss.

private final ExtendedStatistics.Result
allCachePut

The all cache put.

private final ExtendedStatistics.Result
allDiskPut

The all disk put.

private final ExtendedStatistics.Result
allHeapPut

The all heap put.

private final ExtendedStatistics.Result
allOffHeapPut

The all off heap put.

private ExtendedStatistics.Statistic<Double>
cacheHitRatio

The cache hit ratio.

private final ConcurrentMap<OperationStatistic<?>, CompoundOperationImpl<?>>
customOperations

The custom operations.

private final ConcurrentHashMap<Collection<String>, Set<ExtendedStatistics.Statistic<Number>>>
customPassthrus

custom pass thru stats

private final int
private final long
private final long
private ScheduledFuture<V>
disableStatus

The disable status.

private final Runnable
disableTask

The disable task.

private final ScheduledExecutorService
executor

The executor.

private static final Logger
LOGGER

The Constant LOGGER.

private final StatisticsManager
manager

The manager.

private ExtendedStatistics.Statistic<Double>
nonStopTimeoutRatio

on stop timeout ratio

private final ConcurrentMap<StandardOperationStatistic, ExtendedStatistics.Operation<?>>
standardOperations

The standard operations.

private final ConcurrentMap<StandardPassThroughStatistic, ExtendedStatistics.Statistic<Number>>
standardPassThroughs

The standard pass throughs.

private long
timeToDisable

The time to disable.

private TimeUnit
timeToDisableUnit

The time to disable unit.

Constructor Summary

AccessConstructor and Description
public
ExtendedStatisticsImpl(StatisticsManager
the manager
manager
,
ScheduledExecutorService
the executor
executor
,
long
the time to disable
timeToDisable
,
TimeUnit
the unit
unit
,
int defaultHistorySize, long defaultIntervalSeconds, long defaultSearchIntervalSeconds)

Instantiates a new extended statistics impl.

Method Summary

Modifier and TypeMethod and Description
public ExtendedStatistics.Result
public ExtendedStatistics.Result
public ExtendedStatistics.Result
public ExtendedStatistics.Statistic<Double>
public ExtendedStatistics.Operation<CacheOperationOutcomes.ClusterEventOutcomes>
public ExtendedStatistics.Result
public ExtendedStatistics.Operation<StoreOperationOutcomes.GetOutcome>
public ExtendedStatistics.Operation<StoreOperationOutcomes.PutOutcome>
public ExtendedStatistics.Operation<StoreOperationOutcomes.RemoveOutcome>
public void
public ExtendedStatistics.Operation<CacheOperationOutcomes.EvictionOutcome>
public ExtendedStatistics.Operation<CacheOperationOutcomes.ExpiredOutcome>
private static OperationStatistic<T extends Enum<T>>

Returns:

the operation statistic
findOperationStatistic
(StatisticsManager
the manager
manager
,
StandardOperationStatistic
the statistic
statistic
)

Find operation statistic.

private static <
the generic type
T extends Enum<T>
>
Set<OperationStatistic<T>>

Returns:

the sets the
findOperationStatistic
(StatisticsManager
the manager
manager
,
Query
the context query
contextQuery
,
Class<T>
the type
type
,
String
the name
name
,
final Set<String>
the tags
tags
)

Find operation statistic.

private static ValueStatistic<T extends Number>

Returns:

the value statistic
findPassThroughStatistic
(StatisticsManager
the manager
manager
,
StandardPassThroughStatistic
the statistic
statistic
)

Find pass through statistic.

private static Set<ValueStatistic<?>>

Returns:

the sets the
findPassThroughStatistic
(StatisticsManager
the manager
manager
,
Query
the context query
contextQuery
,
String
the name
name
,
final Set<String>
the tags
tags
)

Find pass through statistic.

private void
findStandardOperationStatistics()

Find standard operation statistics.

private void
findStandardPassThruStatistics()

Find standard pass thru statistics.

public ExtendedStatistics.Operation<CacheOperationOutcomes.GetOutcome>
private ExtendedStatistics.Operation<?>

Returns:

the standard operation
getStandardOperation
(StandardOperationStatistic
the statistic
statistic
)

Gets the standard operation.

private ExtendedStatistics.Statistic<Number>

Returns:

the standard pass through
getStandardPassThrough
(StandardPassThroughStatistic
the statistic
statistic
)

Gets the standard pass through.

public ExtendedStatistics.Result
public ExtendedStatistics.Operation<StoreOperationOutcomes.GetOutcome>
public ExtendedStatistics.Operation<StoreOperationOutcomes.PutOutcome>
public ExtendedStatistics.Operation<StoreOperationOutcomes.RemoveOutcome>
public ExtendedStatistics.Statistic<Number>
public ExtendedStatistics.Statistic<Number>
public ExtendedStatistics.Statistic<Number>
public ExtendedStatistics.Statistic<Number>
public ExtendedStatistics.Statistic<Number>
public ExtendedStatistics.Statistic<Number>
public ExtendedStatistics.Statistic<Number>
public ExtendedStatistics.Operation<CacheOperationOutcomes.NonStopOperationOutcomes>
public ExtendedStatistics.Statistic<Double>
public ExtendedStatistics.Result
public ExtendedStatistics.Operation<StoreOperationOutcomes.GetOutcome>
public ExtendedStatistics.Operation<StoreOperationOutcomes.PutOutcome>
public ExtendedStatistics.Operation<StoreOperationOutcomes.RemoveOutcome>
public <T extends Enum<T>> Set<ExtendedStatistics.Operation<T>>
operations(Class<T>
the outcome
outcome
,
String
the name
name
,
String...
the tags
tags
)

Implements net.sf.ehcache.statistics.extended.ExtendedStatistics.operations.

Operations.
public Set<ExtendedStatistics.Statistic<Number>>
passthru(String
name
name
,
Set<String>
set of tags
tags
)

Implements net.sf.ehcache.statistics.extended.ExtendedStatistics.passthru.

Get the set of cache specific pass thru statistics for a nam/tags pair.
public ExtendedStatistics.Operation<CacheOperationOutcomes.PutOutcome>
public ExtendedStatistics.Operation<CacheOperationOutcomes.PutIfAbsentOutcome>
public ExtendedStatistics.Statistic<Number>
public ExtendedStatistics.Operation<CacheOperationOutcomes.RemoveOutcome>
public ExtendedStatistics.Operation<CacheOperationOutcomes.RemoveElementOutcome>
public ExtendedStatistics.Operation<CacheOperationOutcomes.ReplaceOneArgOutcome>
public ExtendedStatistics.Operation<CacheOperationOutcomes.ReplaceTwoArgOutcome>
public ExtendedStatistics.Operation<CacheOperationOutcomes.SearchOutcome>
public synchronized void
setAlwaysOn(boolean
the new always on
enabled
)

Implements net.sf.ehcache.statistics.extended.ExtendedStatistics.setAlwaysOn.

Sets the always on.
public synchronized void
setTimeToDisable(long
the time
time
,
TimeUnit
the unit
unit
)

Implements net.sf.ehcache.statistics.extended.ExtendedStatistics.setTimeToDisable.

Sets the time to disable.
public ExtendedStatistics.Statistic<Number>
public ExtendedStatistics.Statistic<Number>
public ExtendedStatistics.Operation<XaCommitOutcome>
public ExtendedStatistics.Operation<XaRecoveryOutcome>
public ExtendedStatistics.Operation<XaRollbackOutcome>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait