public class CacheMetricsSnapshot extends Object implements CacheMetrics, Externalizable
| Constructor and Description |
|---|
CacheMetricsSnapshot()
Default constructor.
|
CacheMetricsSnapshot(CacheMetrics loc,
Collection<CacheMetrics> metrics)
Constructs merged cache metrics.
|
CacheMetricsSnapshot(CacheMetricsImpl m)
Create snapshot for given metrics.
|
| Modifier and Type | Method and Description |
|---|---|
long |
estimateRebalancingFinishTime()
This method is deprecated and will be deleted in future major release.
|
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 |
getCacheSize()
Gets number of non-
null values in the cache as a long value. |
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.
|
float |
getEntryProcessorAverageInvocationTime()
The mean time to execute cache invokes.
|
float |
getEntryProcessorHitPercentage()
The percentage of invocations on keys, which exist in cache.
|
long |
getEntryProcessorHits()
The total number of invocations on keys, which exist in cache.
|
long |
getEntryProcessorInvocations()
The total number of cache invocations.
|
float |
getEntryProcessorMaxInvocationTime()
So far, the maximum time to execute cache invokes.
|
float |
getEntryProcessorMinInvocationTime()
So far, the minimum time to execute cache invokes.
|
long |
getEntryProcessorMisses()
The total number of invocations on keys, which don't exist in cache.
|
float |
getEntryProcessorMissPercentage()
The percentage of invocations on keys, which don't exist in cache.
|
long |
getEntryProcessorPuts()
The total number of cache invocations, caused update.
|
long |
getEntryProcessorReadOnlyInvocations()
The total number of cache invocations, caused no updates.
|
long |
getEntryProcessorRemovals()
The total number of cache invocations, caused removal.
|
long |
getEstimatedRebalancingFinishTime() |
long |
getEstimatedRebalancingKeys() |
long |
getHeapEntriesCount()
Gets the number of cache entries in heap memory, including entries held by active transactions, entries in
onheap cache and near entries.
|
int |
getKeySize()
Gets number of keys in the cache, possibly with
null values. |
long |
getKeysToRebalanceLeft() |
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 |
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 |
getRebalanceClearingPartitionsLeft() |
long |
getRebalancedKeys() |
long |
getRebalancingBytesRate() |
long |
getRebalancingKeysRate() |
int |
getRebalancingPartitionsCount() |
long |
getRebalancingStartTime() |
int |
getSize()
Gets number of non-
null values in the cache. |
int |
getTotalPartitionsCount() |
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 |
isValidForReading()
Checks whether cache topology is valid for read operations.
|
boolean |
isValidForWriting()
Checks whether cache topology is valid for write operations.
|
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.
|
void |
readExternal(ObjectInput in) |
long |
rebalancingStartTime()
This method is deprecated and will be deleted in future major release.
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public CacheMetricsSnapshot()
public CacheMetricsSnapshot(CacheMetricsImpl m)
m - Cache metrics.public CacheMetricsSnapshot(CacheMetrics loc, Collection<CacheMetrics> metrics)
loc - Metrics for cache on local node.metrics - Metrics for merge.public long getCacheHits()
getCacheHits in interface CacheMetricspublic float getCacheHitPercentage()
getCacheHitPercentage in interface CacheMetricspublic long getCacheMisses()
getCacheMisses in interface CacheMetricspublic float getCacheMissPercentage()
getCacheMissPercentage in interface CacheMetricspublic long getCacheGets()
getCacheGets in interface CacheMetricspublic long getCachePuts()
getCachePuts in interface CacheMetricspublic long getEntryProcessorPuts()
getEntryProcessorPuts in interface CacheMetricspublic long getEntryProcessorReadOnlyInvocations()
getEntryProcessorReadOnlyInvocations in interface CacheMetricspublic long getEntryProcessorInvocations()
getEntryProcessorInvocations in interface CacheMetricspublic long getEntryProcessorHits()
getEntryProcessorHits in interface CacheMetricspublic float getEntryProcessorHitPercentage()
getEntryProcessorHitPercentage in interface CacheMetricspublic float getEntryProcessorMissPercentage()
getEntryProcessorMissPercentage in interface CacheMetricspublic long getEntryProcessorMisses()
getEntryProcessorMisses in interface CacheMetricspublic long getEntryProcessorRemovals()
getEntryProcessorRemovals in interface CacheMetricspublic float getEntryProcessorAverageInvocationTime()
getEntryProcessorAverageInvocationTime in interface CacheMetricspublic float getEntryProcessorMinInvocationTime()
getEntryProcessorMinInvocationTime in interface CacheMetricspublic float getEntryProcessorMaxInvocationTime()
getEntryProcessorMaxInvocationTime in interface CacheMetricspublic long getCacheRemovals()
getCacheRemovals in interface CacheMetricspublic long getCacheEvictions()
getCacheEvictions in interface CacheMetricspublic float getAverageGetTime()
getAverageGetTime in interface CacheMetricspublic float getAveragePutTime()
getAveragePutTime in interface CacheMetricspublic float getAverageRemoveTime()
getAverageRemoveTime in interface CacheMetricspublic float getAverageTxCommitTime()
getAverageTxCommitTime in interface CacheMetricspublic float getAverageTxRollbackTime()
getAverageTxRollbackTime in interface CacheMetricspublic long getCacheTxCommits()
getCacheTxCommits in interface CacheMetricspublic long getCacheTxRollbacks()
getCacheTxRollbacks in interface CacheMetricspublic String name()
name in interface CacheMetricspublic long getOffHeapGets()
getOffHeapGets in interface CacheMetricspublic long getOffHeapPuts()
getOffHeapPuts in interface CacheMetricspublic long getOffHeapRemovals()
getOffHeapRemovals in interface CacheMetricspublic long getOffHeapEvictions()
getOffHeapEvictions in interface CacheMetricspublic long getOffHeapHits()
getOffHeapHits in interface CacheMetricspublic float getOffHeapHitPercentage()
getOffHeapHitPercentage in interface CacheMetricspublic long getOffHeapMisses()
getOffHeapMisses in interface CacheMetricspublic float getOffHeapMissPercentage()
getOffHeapMissPercentage in interface CacheMetricspublic long getOffHeapEntriesCount()
getOffHeapEntriesCount in interface CacheMetricspublic long getHeapEntriesCount()
getHeapEntriesCount in interface CacheMetricspublic long getOffHeapPrimaryEntriesCount()
getOffHeapPrimaryEntriesCount in interface CacheMetricspublic long getOffHeapBackupEntriesCount()
getOffHeapBackupEntriesCount in interface CacheMetricspublic long getOffHeapAllocatedSize()
getOffHeapAllocatedSize in interface CacheMetricspublic int getSize()
null values in the cache.getSize in interface CacheMetricsnull values in the cache.public long getCacheSize()
null values in the cache as a long value.getCacheSize in interface CacheMetricsnull values in the cache.public int getKeySize()
null values.getKeySize in interface CacheMetricspublic boolean isEmpty()
true if this cache is empty.isEmpty in interface CacheMetricsTrue if this cache is empty.public int getDhtEvictQueueCurrentSize()
getDhtEvictQueueCurrentSize in interface CacheMetricspublic int getTxThreadMapSize()
getTxThreadMapSize in interface CacheMetricspublic int getTxXidMapSize()
getTxXidMapSize in interface CacheMetricspublic int getTxCommitQueueSize()
getTxCommitQueueSize in interface CacheMetricspublic int getTxPrepareQueueSize()
getTxPrepareQueueSize in interface CacheMetricspublic int getTxStartVersionCountsSize()
getTxStartVersionCountsSize in interface CacheMetricspublic int getTxCommittedVersionsSize()
getTxCommittedVersionsSize in interface CacheMetricspublic int getTxRolledbackVersionsSize()
getTxRolledbackVersionsSize in interface CacheMetricspublic int getTxDhtThreadMapSize()
getTxDhtThreadMapSize in interface CacheMetricspublic int getTxDhtXidMapSize()
getTxDhtXidMapSize in interface CacheMetricspublic int getTxDhtCommitQueueSize()
getTxDhtCommitQueueSize in interface CacheMetricspublic int getTxDhtPrepareQueueSize()
getTxDhtPrepareQueueSize in interface CacheMetricspublic int getTxDhtStartVersionCountsSize()
getTxDhtStartVersionCountsSize in interface CacheMetricspublic int getTxDhtCommittedVersionsSize()
getTxDhtCommittedVersionsSize in interface CacheMetricspublic int getTxDhtRolledbackVersionsSize()
getTxDhtRolledbackVersionsSize in interface CacheMetricspublic int getTotalPartitionsCount()
getTotalPartitionsCount in interface CacheMetricspublic long getRebalancedKeys()
getRebalancedKeys in interface CacheMetricspublic long getEstimatedRebalancingKeys()
getEstimatedRebalancingKeys in interface CacheMetricspublic int getRebalancingPartitionsCount()
getRebalancingPartitionsCount in interface CacheMetricspublic long getKeysToRebalanceLeft()
getKeysToRebalanceLeft in interface CacheMetricspublic long getRebalancingKeysRate()
getRebalancingKeysRate in interface CacheMetricspublic long getRebalancingBytesRate()
getRebalancingBytesRate in interface CacheMetricspublic long estimateRebalancingFinishTime()
CacheMetrics.getEstimatedRebalancingFinishTime() instead.estimateRebalancingFinishTime in interface CacheMetricspublic long rebalancingStartTime()
CacheMetrics.getRebalancingStartTime() instead.rebalancingStartTime in interface CacheMetricspublic long getEstimatedRebalancingFinishTime()
getEstimatedRebalancingFinishTime in interface CacheMetricspublic long getRebalancingStartTime()
getRebalancingStartTime in interface CacheMetricspublic long getRebalanceClearingPartitionsLeft()
getRebalanceClearingPartitionsLeft in interface CacheMetricspublic boolean isWriteBehindEnabled()
true if write-behind is enabled.isWriteBehindEnabled in interface CacheMetricsTrue if write-behind is enabled.public 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 CacheMetricspublic int getWriteBehindFlushThreadCount()
getWriteBehindFlushThreadCount in interface CacheMetricspublic long getWriteBehindFlushFrequency()
0, then flush is performed only when buffer size exceeds flush size.getWriteBehindFlushFrequency in interface CacheMetricspublic int getWriteBehindStoreBatchSize()
getWriteBehindStoreBatchSize in interface CacheMetricspublic int getWriteBehindTotalCriticalOverflowCount()
getWriteBehindTotalCriticalOverflowCount in interface CacheMetricspublic int getWriteBehindCriticalOverflowCount()
getWriteBehindCriticalOverflowCount in interface CacheMetricspublic int getWriteBehindErrorRetryCount()
getWriteBehindErrorRetryCount in interface CacheMetricspublic int getWriteBehindBufferSize()
getWriteBehindBufferSize in interface CacheMetricspublic String getKeyType()
Cache, if any.getKeyType in interface CacheMetrics"java.lang.Object" if the type is undefined.public String getValueType()
Cache, if any.getValueType in interface CacheMetrics"java.lang.Object" if the type is undefined.public 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 CacheMetricsTrue if the cache is store by value.public boolean isStatisticsEnabled()
The default value is false.
isStatisticsEnabled in interface CacheMetricsTrue if statistics collection is enabled.public boolean isManagementEnabled()
The default value is false.
isManagementEnabled in interface CacheMetricstrue if management is enabled.public boolean isReadThrough()
Cache should operate in read-through mode.
The default value is false
isReadThrough in interface CacheMetricsTrue when a Cache is in
"read-through" mode.CacheLoaderpublic 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 CacheMetricsTrue when a Cache is in "write-through" mode.CacheWriterpublic boolean isValidForReading()
isValidForReading in interface CacheMetricstrue when cache topology is valid for reading.public boolean isValidForWriting()
isValidForWriting in interface CacheMetricstrue when cache topology is valid for writing.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019