com.hazelcast.partition
Class PartitionRuntimeState
java.lang.Object
com.hazelcast.partition.PartitionRuntimeState
- All Implemented Interfaces:
- DataSerializable
public class PartitionRuntimeState
- extends Object
- implements DataSerializable
members
protected final ArrayList<MemberInfo> members
PartitionRuntimeState
public PartitionRuntimeState()
PartitionRuntimeState
public PartitionRuntimeState(ILogger logger,
Collection<MemberInfo> memberInfos,
InternalPartition[] partitions,
Collection<MigrationInfo> migrationInfos,
long masterTime,
int version)
addMemberInfo
protected void addMemberInfo(MemberInfo memberInfo,
Map<Address,Integer> addressIndexes,
int memberIndex)
setPartitions
protected void setPartitions(InternalPartition[] partitions,
Map<Address,Integer> addressIndexes)
getPartitions
public PartitionInfo[] getPartitions()
getMembers
public List<MemberInfo> getMembers()
getMasterTime
public long getMasterTime()
getEndpoint
public Address getEndpoint()
setEndpoint
public void setEndpoint(Address endpoint)
getCompletedMigrations
public Collection<MigrationInfo> getCompletedMigrations()
readData
public void readData(ObjectDataInput in)
throws IOException
- Description copied from interface:
DataSerializable
- Reads fields from the input stream
- Specified by:
readData
in interface DataSerializable
- Parameters:
in
- input
- Throws:
IOException
writeData
public void writeData(ObjectDataOutput out)
throws IOException
- Description copied from interface:
DataSerializable
- Writes object fields to output stream
- Specified by:
writeData
in interface DataSerializable
- Parameters:
out
- output
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object
getVersion
public int getVersion()
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.