@MXBeanDescription(value="MBean that provides access to cache descriptor.") public interface CacheMetricsMXBean extends javax.cache.management.CacheStatisticsMXBean, javax.cache.management.CacheMXBean, CacheMetrics
IgniteCache.| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
float |
getAverageGetTime()
The mean time to execute gets.
|
float |
getAveragePutTime()
The mean time to execute puts.
|
float |
getAverageRemoveTime()
The mean time to execute removes.
|
float |
getAverageTxCommitTime()
The mean time to execute tx commit.
|
float |
getAverageTxRollbackTime()
The mean time to execute tx rollbacks.
|
long |
getCacheEvictions()
The total number of evictions from the cache.
|
long |
getCacheGets()
The total number of requests to the cache.
|
float |
getCacheHitPercentage()
This is a measure of cache efficiency.
|
long |
getCacheHits()
The number of get requests that were satisfied by the cache.
|
long |
getCacheMisses()
A miss is a get request that is not satisfied.
|
float |
getCacheMissPercentage()
Returns the percentage of cache accesses that did not find a requested entry
in the cache.
|
long |
getCachePuts()
The total number of puts to the cache.
|
long |
getCacheRemovals()
The total number of removals from the cache.
|
long |
getCacheTxCommits()
Gets total number of transaction commits.
|
long |
getCacheTxRollbacks()
Gets total number of transaction rollbacks.
|
int |
getDhtEvictQueueCurrentSize()
Gets current size of evict queue used to batch up evictions.
|
int |
getKeySize()
Gets number of keys in the cache, possibly with
null values. |
String |
getKeyType()
Determines the required type of keys for this
Cache, if any. |
long |
getOffHeapAllocatedSize()
Gets memory size allocated in off-heap.
|
long |
getOffHeapBackupEntriesCount()
Gets number of backup entries stored in off-heap memory.
|
long |
getOffHeapEntriesCount()
Gets number of entries stored in off-heap memory.
|
long |
getOffHeapEvictions()
The total number of evictions from the off-heap memory.
|
long |
getOffHeapGets()
The total number of get requests to the off-heap memory.
|
float |
getOffHeapHitPercentage()
Gets the percentage of hits on off-heap memory.
|
long |
getOffHeapHits()
The number of get requests that were satisfied by the off-heap memory.
|
long |
getOffHeapMaxSize()
Gets off-heap memory maximum size.
|
long |
getOffHeapMisses()
A miss is a get request that is not satisfied by off-heap memory.
|
float |
getOffHeapMissPercentage()
Gets the percentage of misses on off-heap memory.
|
long |
getOffHeapPrimaryEntriesCount()
Gets number of primary entries stored in off-heap memory.
|
long |
getOffHeapPuts()
The total number of put requests to the off-heap memory.
|
long |
getOffHeapRemovals()
The total number of removals from the off-heap memory.
|
long |
getOverflowSize()
Gets number of entries that was swapped to disk.
|
int |
getSize()
Gets number of non-
null values in the cache. |
long |
getSwapEntriesCount()
Gets number of entries stored in swap.
|
long |
getSwapGets()
The total number of get requests to the swap.
|
float |
getSwapHitPercentage()
Gets the percentage of hits on swap.
|
long |
getSwapHits()
The number of get requests that were satisfied by the swap.
|
long |
getSwapMisses()
A miss is a get request that is not satisfied by swap.
|
float |
getSwapMissPercentage()
Gets the percentage of misses on swap.
|
long |
getSwapPuts()
The total number of put requests to the swap.
|
long |
getSwapRemovals()
The total number of removals from the swap.
|
long |
getSwapSize()
Gets size of swap.
|
int |
getTxCommitQueueSize()
Gets committed transaction queue size.
|
int |
getTxCommittedVersionsSize()
Gets number of cached committed transaction IDs.
|
int |
getTxDhtCommitQueueSize()
Gets committed DHT transaction queue size.
|
int |
getTxDhtCommittedVersionsSize()
Gets number of cached committed DHT transaction IDs.
|
int |
getTxDhtPrepareQueueSize()
Gets prepared DHT transaction queue size.
|
int |
getTxDhtRolledbackVersionsSize()
Gets number of cached rolled back DHT transaction IDs.
|
int |
getTxDhtStartVersionCountsSize()
Gets DHT start version counts map size.
|
int |
getTxDhtThreadMapSize()
Gets transaction DHT per-thread map size.
|
int |
getTxDhtXidMapSize()
Gets transaction DHT per-Xid map size.
|
int |
getTxPrepareQueueSize()
Gets prepared transaction queue size.
|
int |
getTxRolledbackVersionsSize()
Gets number of cached rolled back transaction IDs.
|
int |
getTxStartVersionCountsSize()
Gets start version counts map size.
|
int |
getTxThreadMapSize()
Gets transaction per-thread map size.
|
int |
getTxXidMapSize()
Gets transaction per-Xid map size.
|
String |
getValueType()
Determines the required type of values for this
Cache, if any. |
int |
getWriteBehindBufferSize()
Gets count of entries that were processed by the write-behind store and have not been
flushed to the underlying store yet.
|
int |
getWriteBehindCriticalOverflowCount()
Gets count of write buffer overflow events in progress at the moment.
|
int |
getWriteBehindErrorRetryCount()
Gets count of cache entries that are in a store-retry state.
|
long |
getWriteBehindFlushFrequency()
Gets the cache flush frequency.
|
int |
getWriteBehindFlushSize()
Gets the maximum size of the write-behind buffer.
|
int |
getWriteBehindFlushThreadCount()
Gets the number of flush threads that will perform store update operations.
|
int |
getWriteBehindStoreBatchSize()
Gets the maximum count of similar (put or remove) operations that can be grouped to a single batch.
|
int |
getWriteBehindTotalCriticalOverflowCount()
Gets count of write buffer overflow events since initialization.
|
boolean |
isEmpty()
Returns
true if this cache is empty. |
boolean |
isManagementEnabled()
Checks whether management is enabled on this cache.
|
boolean |
isReadThrough()
Determines if a
Cache should operate in read-through mode. |
boolean |
isStatisticsEnabled()
Checks whether statistics collection is enabled in this cache.
|
boolean |
isStoreByValue()
Whether storeByValue
true or storeByReference false. |
boolean |
isWriteBehindEnabled()
Returns
true if write-behind is enabled. |
boolean |
isWriteThrough()
Determines if a
Cache should operate in "write-through"
mode. |
String |
name()
Gets name of this cache.
|
@MXBeanDescription(value="Clear statistics.") void clear()
clear in interface javax.cache.management.CacheStatisticsMXBean@MXBeanDescription(value="Number of hits.") long getCacheHits()
getCacheHits in interface CacheMetricsgetCacheHits in interface javax.cache.management.CacheStatisticsMXBean@MXBeanDescription(value="Percentage of successful hits.") float getCacheHitPercentage()
getCacheHitPercentage in interface CacheMetricsgetCacheHitPercentage in interface javax.cache.management.CacheStatisticsMXBean@MXBeanDescription(value="Number of misses.") long getCacheMisses()
getCacheMisses in interface CacheMetricsgetCacheMisses in interface javax.cache.management.CacheStatisticsMXBean@MXBeanDescription(value="Percentage of accesses that failed to find anything.") float getCacheMissPercentage()
getCacheMissPercentage in interface CacheMetricsgetCacheMissPercentage in interface javax.cache.management.CacheStatisticsMXBean@MXBeanDescription(value="Number of gets.") long getCacheGets()
getCacheGets in interface CacheMetricsgetCacheGets in interface javax.cache.management.CacheStatisticsMXBean@MXBeanDescription(value="Number of puts.") long getCachePuts()
getCachePuts in interface CacheMetricsgetCachePuts in interface javax.cache.management.CacheStatisticsMXBean@MXBeanDescription(value="Number of removals.") long getCacheRemovals()
getCacheRemovals in interface CacheMetricsgetCacheRemovals in interface javax.cache.management.CacheStatisticsMXBean@MXBeanDescription(value="Number of eviction entries.") long getCacheEvictions()
getCacheEvictions in interface CacheMetricsgetCacheEvictions in interface javax.cache.management.CacheStatisticsMXBean@MXBeanDescription(value="Average time to execute get.") float getAverageGetTime()
getAverageGetTime in interface CacheMetricsgetAverageGetTime in interface javax.cache.management.CacheStatisticsMXBean@MXBeanDescription(value="Average time to execute put.") float getAveragePutTime()
getAveragePutTime in interface CacheMetricsgetAveragePutTime in interface javax.cache.management.CacheStatisticsMXBean@MXBeanDescription(value="Average time to execute remove.") float getAverageRemoveTime()
getAverageRemoveTime in interface CacheMetricsgetAverageRemoveTime in interface javax.cache.management.CacheStatisticsMXBean@MXBeanDescription(value="Average time to commit transaction.") float getAverageTxCommitTime()
getAverageTxCommitTime in interface CacheMetrics@MXBeanDescription(value="Average time to rollback transaction.") float getAverageTxRollbackTime()
getAverageTxRollbackTime in interface CacheMetrics@MXBeanDescription(value="Number of transaction commits.") long getCacheTxCommits()
getCacheTxCommits in interface CacheMetrics@MXBeanDescription(value="Number of transaction rollback.") long getCacheTxRollbacks()
getCacheTxRollbacks in interface CacheMetrics@MXBeanDescription(value="Cache name.") String name()
name in interface CacheMetrics@MXBeanDescription(value="Number of entries that was swapped to disk.") long getOverflowSize()
getOverflowSize in interface CacheMetrics@MXBeanDescription(value="Number of gets from off-heap memory.") long getOffHeapGets()
getOffHeapGets in interface CacheMetrics@MXBeanDescription(value="Number of puts to off-heap memory.") long getOffHeapPuts()
getOffHeapPuts in interface CacheMetrics@MXBeanDescription(value="Number of removed entries from off-heap memory.") long getOffHeapRemovals()
getOffHeapRemovals in interface CacheMetrics@MXBeanDescription(value="Number of evictions from off-heap memory.") long getOffHeapEvictions()
getOffHeapEvictions in interface CacheMetrics@MXBeanDescription(value="Number of hits on off-heap memory.") long getOffHeapHits()
getOffHeapHits in interface CacheMetrics@MXBeanDescription(value="Percentage of hits on off-heap memory.") float getOffHeapHitPercentage()
getOffHeapHitPercentage in interface CacheMetrics@MXBeanDescription(value="Number of misses on off-heap memory.") long getOffHeapMisses()
getOffHeapMisses in interface CacheMetrics@MXBeanDescription(value="Percentage of misses on off-heap memory.") float getOffHeapMissPercentage()
getOffHeapMissPercentage in interface CacheMetrics@MXBeanDescription(value="Number of entries stored in off-heap memory.") long getOffHeapEntriesCount()
getOffHeapEntriesCount in interface CacheMetrics@MXBeanDescription(value="Number of primary entries stored in off-heap memory.") long getOffHeapPrimaryEntriesCount()
getOffHeapPrimaryEntriesCount in interface CacheMetrics@MXBeanDescription(value="Number of backup stored in off-heap memory.") long getOffHeapBackupEntriesCount()
getOffHeapBackupEntriesCount in interface CacheMetrics@MXBeanDescription(value="Memory size allocated in off-heap.") long getOffHeapAllocatedSize()
getOffHeapAllocatedSize in interface CacheMetrics@MXBeanDescription(value="Off-heap memory maximum size.") long getOffHeapMaxSize()
getOffHeapMaxSize in interface CacheMetrics@MXBeanDescription(value="Number of gets from swap.") long getSwapGets()
getSwapGets in interface CacheMetrics@MXBeanDescription(value="Number of puts to swap.") long getSwapPuts()
getSwapPuts in interface CacheMetrics@MXBeanDescription(value="Number of removed entries from swap.") long getSwapRemovals()
getSwapRemovals in interface CacheMetrics@MXBeanDescription(value="Number of hits on swap.") long getSwapHits()
getSwapHits in interface CacheMetrics@MXBeanDescription(value="Number of misses on swap.") long getSwapMisses()
getSwapMisses in interface CacheMetrics@MXBeanDescription(value="Percentage of hits on swap.") float getSwapHitPercentage()
getSwapHitPercentage in interface CacheMetrics@MXBeanDescription(value="Percentage of misses on swap.") float getSwapMissPercentage()
getSwapMissPercentage in interface CacheMetrics@MXBeanDescription(value="Number of entries stored in swap.") long getSwapEntriesCount()
getSwapEntriesCount in interface CacheMetrics@MXBeanDescription(value="Size of swap.") long getSwapSize()
getSwapSize in interface CacheMetrics@MXBeanDescription(value="Number of non-null values in the cache.") int getSize()
null values in the cache.getSize in interface CacheMetricsnull values in the cache.@MXBeanDescription(value="Number of keys in the cache (possibly with null values).") int getKeySize()
null values.getKeySize in interface CacheMetrics@MXBeanDescription(value="True if cache is empty.") boolean isEmpty()
true if this cache is empty.isEmpty in interface CacheMetricsTrue if this cache is empty.@MXBeanDescription(value="Current size of evict queue.") int getDhtEvictQueueCurrentSize()
getDhtEvictQueueCurrentSize in interface CacheMetrics@MXBeanDescription(value="Transaction per-thread map size.") int getTxThreadMapSize()
getTxThreadMapSize in interface CacheMetrics@MXBeanDescription(value="Transaction per-Xid map size.") int getTxXidMapSize()
getTxXidMapSize in interface CacheMetrics@MXBeanDescription(value="Transaction committed queue size.") int getTxCommitQueueSize()
getTxCommitQueueSize in interface CacheMetrics@MXBeanDescription(value="Transaction prepared queue size.") int getTxPrepareQueueSize()
getTxPrepareQueueSize in interface CacheMetrics@MXBeanDescription(value="Transaction start version counts map size.") int getTxStartVersionCountsSize()
getTxStartVersionCountsSize in interface CacheMetrics@MXBeanDescription(value="Transaction committed ID map size.") int getTxCommittedVersionsSize()
getTxCommittedVersionsSize in interface CacheMetrics@MXBeanDescription(value="Transaction rolled back ID map size.") int getTxRolledbackVersionsSize()
getTxRolledbackVersionsSize in interface CacheMetrics@MXBeanDescription(value="Transaction DHT per-thread map size.") int getTxDhtThreadMapSize()
getTxDhtThreadMapSize in interface CacheMetrics@MXBeanDescription(value="Transaction DHT per-Xid map size.") int getTxDhtXidMapSize()
getTxDhtXidMapSize in interface CacheMetrics@MXBeanDescription(value="Transaction DHT committed queue size.") int getTxDhtCommitQueueSize()
getTxDhtCommitQueueSize in interface CacheMetrics@MXBeanDescription(value="Transaction DHT prepared queue size.") int getTxDhtPrepareQueueSize()
getTxDhtPrepareQueueSize in interface CacheMetrics@MXBeanDescription(value="Transaction DHT start version counts map size.") int getTxDhtStartVersionCountsSize()
getTxDhtStartVersionCountsSize in interface CacheMetrics@MXBeanDescription(value="Transaction DHT committed ID map size.") int getTxDhtCommittedVersionsSize()
getTxDhtCommittedVersionsSize in interface CacheMetrics@MXBeanDescription(value="Transaction DHT rolled back ID map size.") int getTxDhtRolledbackVersionsSize()
getTxDhtRolledbackVersionsSize in interface CacheMetrics@MXBeanDescription(value="True if write-behind is enabled for this cache.") boolean isWriteBehindEnabled()
true if write-behind is enabled.isWriteBehindEnabled in interface CacheMetricsTrue if write-behind is enabled.@MXBeanDescription(value="Size of internal buffer that triggers flush procedure.") int getWriteBehindFlushSize()
0, then flush is performed only on time-elapsing basis. However,
when this value is 0, the cache critical size is set to
CacheConfiguration.DFLT_WRITE_BEHIND_CRITICAL_SIZEgetWriteBehindFlushSize in interface CacheMetrics@MXBeanDescription(value="Count of flush threads.") int getWriteBehindFlushThreadCount()
getWriteBehindFlushThreadCount in interface CacheMetrics@MXBeanDescription(value="Flush frequency interval in milliseconds.") long getWriteBehindFlushFrequency()
0, then flush is performed only when buffer size exceeds flush size.getWriteBehindFlushFrequency in interface CacheMetrics@MXBeanDescription(value="Maximum size of batch for similar operations.") int getWriteBehindStoreBatchSize()
getWriteBehindStoreBatchSize in interface CacheMetrics@MXBeanDescription(value="Count of cache overflow events since write-behind cache has started.") int getWriteBehindTotalCriticalOverflowCount()
getWriteBehindTotalCriticalOverflowCount in interface CacheMetrics@MXBeanDescription(value="Count of cache overflow events since write-behind cache has started.") int getWriteBehindCriticalOverflowCount()
getWriteBehindCriticalOverflowCount in interface CacheMetrics@MXBeanDescription(value="Count of cache cache entries that are currently in retry state.") int getWriteBehindErrorRetryCount()
getWriteBehindErrorRetryCount in interface CacheMetrics@MXBeanDescription(value="Count of cache entries that are waiting to be flushed.") int getWriteBehindBufferSize()
getWriteBehindBufferSize in interface CacheMetrics@MXBeanDescription(value="Key type.") String getKeyType()
Cache, if any.getKeyType in interface CacheMetricsgetKeyType in interface javax.cache.management.CacheMXBean"java.lang.Object" if the type is undefined.@MXBeanDescription(value="Value type.") String getValueType()
Cache, if any.getValueType in interface CacheMetricsgetValueType in interface javax.cache.management.CacheMXBean"java.lang.Object" if the type is undefined.@MXBeanDescription(value="True if the cache is store by value.") boolean isStoreByValue()
true or storeByReference false.
When true, both keys and values are stored by value.
When false, both keys and values are stored by reference.
Caches stored by reference are capable of mutation by any threads holding
the reference. The effects are:
When a cache is storeByValue, any mutation to the key or value does not affect the key of value stored in the cache.
The default value is true.
isStoreByValue in interface CacheMetricsisStoreByValue in interface javax.cache.management.CacheMXBeanTrue if the cache is store by value.@MXBeanDescription(value="True if statistics collection is enabled.") boolean isStatisticsEnabled()
The default value is false.
isStatisticsEnabled in interface CacheMetricsisStatisticsEnabled in interface javax.cache.management.CacheMXBeanTrue if statistics collection is enabled.@MXBeanDescription(value="True if management is enabled.") boolean isManagementEnabled()
The default value is false.
isManagementEnabled in interface CacheMetricsisManagementEnabled in interface javax.cache.management.CacheMXBeantrue if management is enabled.@MXBeanDescription(value="True when a cache is in read-through mode.") boolean isReadThrough()
Cache should operate in read-through mode.
The default value is false
isReadThrough in interface CacheMetricsisReadThrough in interface javax.cache.management.CacheMXBeanTrue when a Cache is in
"read-through" mode.CacheLoader@MXBeanDescription(value="True when a cache is in write-through mode.") boolean isWriteThrough()
Cache should operate in "write-through"
mode.
will appropriately cause the configured CacheWriter to be invoked.
The default value is false
isWriteThrough in interface CacheMetricsisWriteThrough in interface javax.cache.management.CacheMXBeanTrue when a Cache is in "write-through" mode.CacheWriter
Follow @ApacheIgnite
Ignite Fabric : ver. 1.5.11 Release Date : April 8 2016