com.hazelcast.partition
public class PartitionRuntimeState extends Object implements DataSerializable
Modifier and Type | Field and Description |
---|---|
protected ArrayList<MemberInfo> |
members |
Constructor and Description |
---|
PartitionRuntimeState() |
PartitionRuntimeState(ILogger logger,
Collection<MemberInfo> memberInfos,
InternalPartition[] partitions,
Collection<MigrationInfo> migrationInfos,
int version) |
Modifier and Type | Method and Description |
---|---|
protected void |
addMemberInfo(MemberInfo memberInfo,
Map<Address,Integer> addressIndexes,
int memberIndex) |
Collection<MigrationInfo> |
getCompletedMigrations() |
Address |
getEndpoint() |
List<MemberInfo> |
getMembers() |
PartitionInfo[] |
getPartitions() |
int |
getVersion() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
setEndpoint(Address endpoint) |
protected void |
setPartitions(InternalPartition[] partitions,
Map<Address,Integer> addressIndexes) |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
protected final ArrayList<MemberInfo> members
public PartitionRuntimeState()
public PartitionRuntimeState(ILogger logger, Collection<MemberInfo> memberInfos, InternalPartition[] partitions, Collection<MigrationInfo> migrationInfos, int version)
protected void addMemberInfo(MemberInfo memberInfo, Map<Address,Integer> addressIndexes, int memberIndex)
protected void setPartitions(InternalPartition[] partitions, Map<Address,Integer> addressIndexes)
public PartitionInfo[] getPartitions()
public List<MemberInfo> getMembers()
public Address getEndpoint()
public void setEndpoint(Address endpoint)
public Collection<MigrationInfo> getCompletedMigrations()
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
public int getVersion()
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.