public class VisorCache extends VisorDataTransferObject
IgniteCache.V1, V2, V3| Constructor and Description |
|---|
VisorCache()
Create data transfer object for given cache.
|
VisorCache(IgniteEx ignite,
GridCacheAdapter ca,
boolean collectMetrics)
Create data transfer object for given cache.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getBackupSize() |
IgniteUuid |
getDynamicDeploymentId() |
long |
getIndexesSize() |
long |
getMemorySize() |
VisorCacheMetrics |
getMetrics() |
CacheMode |
getMode() |
String |
getName() |
int |
getNearSize() |
int |
getPartitions() |
long |
getPrimarySize() |
byte |
getProtocolVersion() |
long |
getSize() |
long |
heapEntriesCount() |
boolean |
isNear() |
boolean |
isSystem() |
long |
offHeapAllocatedSize() |
long |
offHeapBackupEntriesCount() |
long |
offHeapEntriesCount() |
long |
offHeapPrimaryEntriesCount() |
protected void |
readExternalData(byte protoVer,
ObjectInput in)
Load object's specific data content.
|
void |
setMetrics(VisorCacheMetrics metrics) |
void |
setName(String name)
Sets new value for cache name.
|
long |
size() |
String |
toString() |
protected void |
writeExternalData(ObjectOutput out)
Save object's specific data content.
|
readExternal, toList, toSet, writeExternalpublic VisorCache()
public VisorCache(IgniteEx ignite, GridCacheAdapter ca, boolean collectMetrics) throws IgniteCheckedException
ca - Internal cache.collectMetrics - Collect cache metrics flag.IgniteCheckedException - If failed to create data transfer object.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 int getPartitions()
public VisorCacheMetrics getMetrics()
public void setMetrics(VisorCacheMetrics metrics)
metrics - Cache metrics.public boolean isNear()
true if cache has near cache.public boolean isSystem()
public long size()
public long offHeapAllocatedSize()
public long heapEntriesCount()
public long offHeapPrimaryEntriesCount()
public long offHeapBackupEntriesCount()
public long offHeapEntriesCount()
public byte getProtocolVersion()
getProtocolVersion in class VisorDataTransferObjectprotected 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.5.0 Release Date : May 23 2018