public class ContextJCacheStatistics extends AbstractJCacheStatistics implements JCacheStatistics, ExternalizableLite, PortableObject
| Constructor and Description |
|---|
ContextJCacheStatistics()
Constructs ...
|
ContextJCacheStatistics(JCacheIdentifier id)
Constructs JCacheStatistics for cache
id |
| Modifier and Type | Method and Description |
|---|---|
JCacheStatistics |
add(JCacheStatistics stats)
add
JCacheStatistics stats to this instance. |
void |
clear() |
float |
getAverageGetTime() |
float |
getAveragePutTime() |
float |
getAverageRemoveTime() |
long |
getCacheEvictions() |
long |
getCacheGets() |
float |
getCacheHitPercentage() |
long |
getCacheHits() |
long |
getCacheHitsMillis()
get time elapsed in milliseconds performing operations resulting in a hit
|
long |
getCacheMisses() |
long |
getCacheMissesMillis()
get time elapsed in milliseconds performing operations resulting in a miss
|
float |
getCacheMissPercentage() |
long |
getCachePuts() |
long |
getCachePutsMillis()
get time elapsed in milliseconds performing operations resulting in a put
|
long |
getCacheRemovals() |
long |
getCacheRemoveMillis()
get time elapsed in milliseconds performing operations resulting in a remove
|
JCacheIdentifier |
getIdentifier()
Get unique JCacheIdentifier for cache that these statistics are for.
|
void |
readExternal(DataInput in)
Restore the contents of this object by loading the object's state from
the passed DataInput object.
|
void |
readExternal(PofReader in)
Restore the contents of a user type instance by reading its state using
the specified PofReader object.
|
void |
registerHits(int count,
long lStartMillis)
add Cache Hits of count and compute time in cache hits
|
void |
registerHitsCompleted(long lStartMillis)
Record elapsed time in milliseconds performing hit(s)
|
void |
registerMisses(int count,
long lStartMillis)
add Cache Misses of count and compute time in cache misses
|
void |
registerMissesCompleted(long lStartMillis)
Record elapsed time in milliseconds performing miss(es)
|
void |
registerPuts(long count,
long lStartMillis)
add Cache Puts of count and compute time in cache puts
|
void |
registerPutsCompleted(long lStartMillis)
Record elapsed time performing puts
|
void |
registerRemove()
register a Cache Remove
|
void |
registerRemoveCompleted(long lStartMillis)
Record elapsed time in milliseconds performing removal(s)
|
void |
registerRemoves(long count,
long lStartMillis)
add Cache Removals of count and compute time in cache removals
|
void |
writeExternal(DataOutput out)
Save the contents of this object by storing the object's state into
the passed DataOutput object.
|
void |
writeExternal(PofWriter out)
Save the contents of a POF user type instance by writing its state using
the specified PofWriter object.
|
toStringpublic ContextJCacheStatistics()
public ContextJCacheStatistics(JCacheIdentifier id)
idid - unique JCache cache identifierpublic void registerHits(int count,
long lStartMillis)
JCacheStatisticsregisterHits in interface JCacheStatisticscount - number of cache entry lookup hitslStartMillis - start time in milliseconds for computing time performing
lookup when there were hits.public void registerMisses(int count,
long lStartMillis)
JCacheStatisticsregisterMisses in interface JCacheStatisticscount - number of cache entry lookup misseslStartMillis - start time of cache entry lookup that resulted in missespublic void registerPuts(long count,
long lStartMillis)
JCacheStatisticsregisterPuts in interface JCacheStatisticscount - number of cache entry putslStartMillis - start time in milliseconds of put(s) operationpublic void registerPutsCompleted(long lStartMillis)
JCacheStatisticsregisterPutsCompleted in interface JCacheStatisticslStartMillis - start time in milliseconds of put(s) operationpublic void registerRemoves(long count,
long lStartMillis)
JCacheStatisticsregisterRemoves in interface JCacheStatisticscount - number of cache entry removalslStartMillis - start time in milliseconds of removal(s) operationpublic void registerRemove()
JCacheStatisticsregisterRemove in interface JCacheStatisticspublic void registerHitsCompleted(long lStartMillis)
JCacheStatisticsregisterHitsCompleted in interface JCacheStatisticslStartMillis - start time in milliseconds of operation that resulted in a hit(s)public void registerMissesCompleted(long lStartMillis)
JCacheStatisticsregisterMissesCompleted in interface JCacheStatisticslStartMillis - start time in milliseconds of operation that resulted in miss(es)public void registerRemoveCompleted(long lStartMillis)
JCacheStatisticsregisterRemoveCompleted in interface JCacheStatisticslStartMillis - start time in milliseconds of operation that resulted in removal(s)public JCacheIdentifier getIdentifier()
JCacheStatisticsgetIdentifier in interface JCacheStatisticspublic JCacheStatistics add(JCacheStatistics stats)
JCacheStatisticsJCacheStatistics stats to this instance.add in interface JCacheStatisticsstats - JCacheStatistics from another data-enabled serverpublic long getCacheHitsMillis()
JCacheStatisticsgetCacheHitsMillis in interface JCacheStatisticspublic long getCacheMissesMillis()
JCacheStatisticsgetCacheMissesMillis in interface JCacheStatisticspublic long getCachePutsMillis()
JCacheStatisticsgetCachePutsMillis in interface JCacheStatisticspublic long getCacheRemoveMillis()
JCacheStatisticsgetCacheRemoveMillis in interface JCacheStatisticspublic void clear()
clear in interface JCacheStatisticsclear in interface javax.cache.management.CacheStatisticsMXBeanpublic long getCacheHits()
getCacheHits in interface JCacheStatisticsgetCacheHits in interface javax.cache.management.CacheStatisticsMXBeanpublic float getCacheHitPercentage()
getCacheHitPercentage in interface JCacheStatisticsgetCacheHitPercentage in interface javax.cache.management.CacheStatisticsMXBeanpublic long getCacheMisses()
getCacheMisses in interface JCacheStatisticsgetCacheMisses in interface javax.cache.management.CacheStatisticsMXBeanpublic float getCacheMissPercentage()
getCacheMissPercentage in interface JCacheStatisticsgetCacheMissPercentage in interface javax.cache.management.CacheStatisticsMXBeanpublic long getCacheGets()
getCacheGets in interface JCacheStatisticsgetCacheGets in interface javax.cache.management.CacheStatisticsMXBeanpublic long getCachePuts()
getCachePuts in interface JCacheStatisticsgetCachePuts in interface javax.cache.management.CacheStatisticsMXBeanpublic long getCacheRemovals()
getCacheRemovals in interface JCacheStatisticsgetCacheRemovals in interface javax.cache.management.CacheStatisticsMXBeanpublic long getCacheEvictions()
getCacheEvictions in interface JCacheStatisticsgetCacheEvictions in interface javax.cache.management.CacheStatisticsMXBeanpublic float getAverageGetTime()
getAverageGetTime in interface JCacheStatisticsgetAverageGetTime in interface javax.cache.management.CacheStatisticsMXBeanpublic float getAveragePutTime()
getAveragePutTime in interface JCacheStatisticsgetAveragePutTime in interface javax.cache.management.CacheStatisticsMXBeanpublic float getAverageRemoveTime()
getAverageRemoveTime in interface JCacheStatisticsgetAverageRemoveTime in interface javax.cache.management.CacheStatisticsMXBeanpublic void readExternal(PofReader in) throws IOException
PortableObjectreadExternal in interface PortableObjectin - the PofReader from which to read the object's stateIOException - if an I/O error occurspublic void writeExternal(PofWriter out) throws IOException
PortableObjectwriteExternal in interface PortableObjectout - the PofWriter to which to write the object's stateIOException - if an I/O error occurspublic void readExternal(DataInput in) throws IOException
ExternalizableLitereadExternal in interface ExternalizableLitein - the DataInput stream to read data from in order to restore
the state of this objectIOException - if an I/O exception occursNotActiveException - if the object is not in its initial
state, and therefore cannot be deserialized intopublic void writeExternal(DataOutput out) throws IOException
ExternalizableLitewriteExternal in interface ExternalizableLiteout - the DataOutput stream to write the state of this object toIOException - if an I/O exception occurs