Class PartitionKeyV2
- java.lang.Object
-
- org.apache.ignite.internal.visor.VisorDataTransferObject
-
- org.apache.ignite.internal.management.cache.PartitionKeyV2
-
- All Implemented Interfaces:
Externalizable,Serializable
public class PartitionKeyV2 extends VisorDataTransferObject
Partition key - pair of cache group ID and partition ID.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PartitionKeyV2()Default constructor for Externalizable.PartitionKeyV2(int grpId, int partId, String grpName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgroupId()StringgroupName()voidgroupName(String grpName)inthashCode()intpartitionId()protected voidreadExternalData(byte protoVer, ObjectInput in)Load object's specific data content.StringtoString()protected voidwriteExternalData(ObjectOutput out)Save object's specific data content.-
Methods inherited from class org.apache.ignite.internal.visor.VisorDataTransferObject
getProtocolVersion, readExternal, toList, toSet, writeExternal
-
-
-
-
Constructor Detail
-
PartitionKeyV2
public PartitionKeyV2(int grpId, int partId, String grpName)- Parameters:
grpId- Group id.partId- Partition id.grpName- Group name.
-
PartitionKeyV2
public PartitionKeyV2()
Default constructor for Externalizable.
-
-
Method Detail
-
groupId
public int groupId()
- Returns:
- Group id.
-
partitionId
public int partitionId()
- Returns:
- Partition id.
-
groupName
public String groupName()
- Returns:
- Group name.
-
groupName
public void groupName(String grpName)
- Parameters:
grpName- Group name.
-
writeExternalData
protected void writeExternalData(ObjectOutput out) throws IOException
Save object's specific data content.- Specified by:
writeExternalDatain classVisorDataTransferObject- Parameters:
out- Output object to write data content.- Throws:
IOException- If I/O errors occur.
-
readExternalData
protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundExceptionLoad object's specific data content.- Specified by:
readExternalDatain classVisorDataTransferObject- Parameters:
protoVer- Input object version.in- Input object to load data content.- Throws:
IOException- If I/O errors occur.ClassNotFoundException- If the class for an object being restored cannot be found.
-
-