com.hazelcast.impl.partition
Class PartitionRuntimeState
java.lang.Object
com.hazelcast.impl.partition.PartitionRuntimeState
- All Implemented Interfaces:
- DataSerializable, Serializable
public class PartitionRuntimeState
- extends Object
- implements DataSerializable
- See Also:
- Serialized Form
members
protected ArrayList<MemberInfo> members
partitionInfos
protected Collection<com.hazelcast.impl.partition.PartitionRuntimeState.ShortPartitionInfo> partitionInfos
PartitionRuntimeState
public PartitionRuntimeState()
PartitionRuntimeState
public PartitionRuntimeState(Collection<MemberInfo> memberInfos,
PartitionInfo[] partitions,
long masterTime,
int version)
getMasterTime
public long getMasterTime()
getMembers
public ArrayList<MemberInfo> getMembers()
addMemberInfo
protected void addMemberInfo(MemberInfo memberInfo,
Map<Address,Integer> addressIndexes,
int memberIndex)
setPartitions
protected void setPartitions(PartitionInfo[] partitions,
Map<Address,Integer> addressIndexes)
getPartitions
public PartitionInfo[] getPartitions()
getConnection
public Connection getConnection()
readData
public void readData(DataInput in)
throws IOException
- Specified by:
readData in interface DataSerializable
- Throws:
IOException
writeData
public void writeData(DataOutput out)
throws IOException
- Specified by:
writeData in interface DataSerializable
- Throws:
IOException
toString
public String toString()
- Overrides:
toString in class Object
getVersion
public int getVersion()
Copyright .0; 2008-2011 Hazel Ltd. All Rights Reserved.