public class VisorCachePartitions extends VisorDataTransferObject
V1, V2, V3| Constructor and Description |
|---|
VisorCachePartitions()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBackup(int partId,
long cnt)
Add backup partition descriptor.
|
void |
addPrimary(int partId,
long cnt)
Add primary partition descriptor.
|
Map<Integer,Long> |
getBackup() |
Map<Integer,Long> |
getPrimary() |
protected void |
readExternalData(byte protoVer,
ObjectInput in)
Load object's specific data content.
|
String |
toString() |
protected void |
writeExternalData(ObjectOutput out)
Save object's specific data content.
|
getProtocolVersion, readExternal, toList, toSet, writeExternalpublic void addPrimary(int partId,
long cnt)
partId - Partition id.cnt - Number of primary keys in partition.public void addBackup(int partId,
long cnt)
partId - Partition id.cnt - Number of backup keys in partition.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 Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019