public class VisorCache extends VisorDataTransferObject
IgniteCache.| Constructor and Description |
|---|
VisorCache()
Create data transfer object for given cache.
|
VisorCache(IgniteEx ignite,
GridCacheAdapter ca,
int sample)
Create data transfer object for given cache.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
estimateMemorySize(IgniteEx ignite,
GridCacheAdapter ca,
int sample)
Estimate memory size used by cache.
|
long |
getBackupSize() |
IgniteUuid |
getDynamicDeploymentId() |
long |
getIndexesSize() |
long |
getMemorySize() |
VisorCacheMetrics |
getMetrics() |
CacheMode |
getMode() |
String |
getName() |
int |
getNearSize() |
long |
getOnHeapEntriesCount() |
VisorPartitionMap |
getPartitionMap() |
int |
getPartitions() |
long |
getPrimarySize() |
long |
getSize() |
VisorCache |
history() |
boolean |
isNear() |
protected void |
readExternalData(byte protoVer,
ObjectInput in)
Load object's specific data content.
|
void |
setName(String name)
Sets new value for cache name.
|
String |
toString() |
protected void |
writeExternalData(ObjectOutput out)
Save object's specific data content.
|
getProtocolVersion, readExternal, toList, writeExternalpublic VisorCache()
public VisorCache(IgniteEx ignite, GridCacheAdapter ca, int sample) throws IgniteCheckedException
ca - Internal cache.sample - Sample size.IgniteCheckedException - If failed to create data transfer object.protected void estimateMemorySize(IgniteEx ignite, GridCacheAdapter ca, int sample)
ca - Cache adapter.sample - Sample size.public VisorCache history()
public String getName()
public void setName(String name)
name - New cache name.public IgniteUuid getDynamicDeploymentId()
public CacheMode getMode()
public long getMemorySize()
public long getIndexesSize()
public long getSize()
public int getNearSize()
public long getBackupSize()
public long getPrimarySize()
public long getOnHeapEntriesCount()
public int getPartitions()
public VisorCacheMetrics getMetrics()
@Nullable public VisorPartitionMap getPartitionMap()
public boolean isNear()
true if cache has near cache.protected void writeExternalData(ObjectOutput out) throws IOException
writeExternalData in class VisorDataTransferObjectout - Output object to write data content.IOException - If I/O errors occur.protected void readExternalData(byte protoVer,
ObjectInput in)
throws IOException,
ClassNotFoundException
readExternalData in class VisorDataTransferObjectprotoVer - Input object version.in - Input object to load data content.IOException - If I/O errors occur.ClassNotFoundException - If the class for an object being restored cannot be found.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017