Class CacheDistributionGroup
- java.lang.Object
-
- org.apache.ignite.internal.visor.VisorDataTransferObject
-
- org.apache.ignite.internal.commandline.cache.distribution.CacheDistributionGroup
-
- All Implemented Interfaces:
Externalizable,Serializable
public class CacheDistributionGroup extends VisorDataTransferObject
DTO for CacheDistributionTask, contains information about group- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CacheDistributionGroup()Default constructor.CacheDistributionGroup(int grpId, String grpName, List<CacheDistributionPartition> partitions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetGroupId()StringgetGroupName()List<CacheDistributionPartition>getPartitions()protected voidreadExternalData(byte protoVer, ObjectInput in)Load object's specific data content.voidsetGroupId(int grpId)voidsetGroupName(String grpName)voidsetPartitions(List<CacheDistributionPartition> partitions)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
-
CacheDistributionGroup
public CacheDistributionGroup()
Default constructor.
-
CacheDistributionGroup
public CacheDistributionGroup(int grpId, String grpName, List<CacheDistributionPartition> partitions)- Parameters:
grpId- Group identifier.grpName- Group name.partitions- List of partitions.
-
-
Method Detail
-
getGroupId
public int getGroupId()
-
setGroupId
public void setGroupId(int grpId)
-
getGroupName
public String getGroupName()
-
setGroupName
public void setGroupName(String grpName)
-
getPartitions
public List<CacheDistributionPartition> getPartitions()
-
setPartitions
public void setPartitions(List<CacheDistributionPartition> partitions)
-
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.
-
-