Class CacheDistributionPartition
- java.lang.Object
-
- org.apache.ignite.internal.visor.VisorDataTransferObject
-
- org.apache.ignite.internal.commandline.cache.distribution.CacheDistributionPartition
-
- All Implemented Interfaces:
Externalizable,Serializable
public class CacheDistributionPartition extends VisorDataTransferObject
DTO for CacheDistributionTask, contains information about partition- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CacheDistributionPartition()Default constructor.CacheDistributionPartition(int partId, boolean primary, GridDhtPartitionState state, long updateCntr, long size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPartition()longgetSize()GridDhtPartitionStategetState()longgetUpdateCounter()booleanisPrimary()protected voidreadExternalData(byte protoVer, ObjectInput in)Load object's specific data content.voidsetPartition(int partId)voidsetPrimary(boolean primary)voidsetSize(long size)voidsetState(GridDhtPartitionState state)voidsetUpdateCounter(long updateCntr)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
-
CacheDistributionPartition
public CacheDistributionPartition()
Default constructor.
-
CacheDistributionPartition
public CacheDistributionPartition(int partId, boolean primary, GridDhtPartitionState state, long updateCntr, long size)- Parameters:
partId- Partition identifier.primary- Flag primary or backup partition.state- Partition status.updateCntr- Partition update counters.size- Number of entries in partition.
-
-
Method Detail
-
getPartition
public int getPartition()
-
setPartition
public void setPartition(int partId)
-
isPrimary
public boolean isPrimary()
-
setPrimary
public void setPrimary(boolean primary)
-
getState
public GridDhtPartitionState getState()
-
setState
public void setState(GridDhtPartitionState state)
-
getUpdateCounter
public long getUpdateCounter()
-
setUpdateCounter
public void setUpdateCounter(long updateCntr)
-
getSize
public long getSize()
-
setSize
public void setSize(long size)
-
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 IOExceptionLoad 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.
-
-