public class VisorCache extends Object implements Serializable
IgniteCache.| Constructor and Description |
|---|
VisorCache() |
public static VisorCache from(Ignite ignite, GridCache c, int sample) throws IgniteCheckedException
ignite - Grid.c - Actual cache.sample - Sample size.IgniteCheckedExceptionpublic VisorCache history()
public String name()
public void name(String name)
name - New cache name.public CacheMode mode()
public void mode(CacheMode mode)
mode - New cache mode.public long memorySize()
public void memorySize(long memorySize)
memorySize - New cache size in bytes.public int size()
public void size(int size)
size - New number of all entries in cache.public int nearSize()
public void nearSize(int nearSize)
nearSize - New number of all entries in near cache.public int dhtSize()
public void dhtSize(int dhtSize)
dhtSize - New number of all entries in DHT cache.public int primarySize()
public void primarySize(int primarySize)
primarySize - New number of primary entries in cache.public long offHeapAllocatedSize()
public void offHeapAllocatedSize(long offHeapAllocatedSize)
offHeapAllocatedSize - New memory size allocated in off-heap.public long offHeapEntriesCount()
public void offHeapEntriesCount(long offHeapEntriesCnt)
offHeapEntriesCnt - New number of cache entries stored in off-heap memory.public long swapSize()
public void swapSize(long swapSize)
swapSize - New size in bytes for swap space.public long swapKeys()
public void swapKeys(long swapKeys)
swapKeys - New number of cache entries stored in swap space.public int partitions()
public void partitions(int partsCnt)
partsCnt - New number of partitions.public Collection<IgnitePair<Integer>> primaryPartitions()
public void primaryPartitions(Collection<IgnitePair<Integer>> primaryParts)
primaryParts - New primary partitions IDs with sizes.public Collection<IgnitePair<Integer>> backupPartitions()
public void backupPartitions(Collection<IgnitePair<Integer>> backupParts)
backupParts - New backup partitions IDs with sizes.public VisorCacheMetrics metrics()
public void metrics(VisorCacheMetrics metrics)
metrics - New cache metrics.@Nullable public GridDhtPartitionMap partitionMap()
public void partitionMap(@Nullable GridDhtPartitionMap partsMap)
partsMap - New cache partitions states.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015