public final class PartitionRuntimeState extends Object implements IdentifiedDataSerializable
Constructor and Description |
---|
PartitionRuntimeState() |
PartitionRuntimeState(InternalPartition[] partitions,
Collection<MigrationInfo> completedMigrations,
int version) |
Modifier and Type | Method and Description |
---|---|
MigrationInfo |
getActiveMigration() |
int |
getClassId()
Returns type identifier for this class.
|
Collection<MigrationInfo> |
getCompletedMigrations() |
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
Address |
getMaster() |
PartitionReplica[][] |
getPartitionTable() |
int |
getVersion() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
setActiveMigration(MigrationInfo activeMigration) |
void |
setMaster(Address master) |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public PartitionRuntimeState()
public PartitionRuntimeState(InternalPartition[] partitions, Collection<MigrationInfo> completedMigrations, int version)
public PartitionReplica[][] getPartitionTable()
public Address getMaster()
public void setMaster(Address master)
public Collection<MigrationInfo> getCompletedMigrations()
public MigrationInfo getActiveMigration()
public void setActiveMigration(MigrationInfo activeMigration)
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.public int getVersion()
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getClassId()
IdentifiedDataSerializable
getClassId
in interface IdentifiedDataSerializable
Copyright © 2019 Hazelcast, Inc.. All rights reserved.