com.hazelcast.partition
Class PartitionRuntimeState

java.lang.Object
  extended by com.hazelcast.partition.PartitionRuntimeState
All Implemented Interfaces:
DataSerializable

public class PartitionRuntimeState
extends Object
implements DataSerializable


Field Summary
protected  ArrayList<MemberInfo> members
           
 
Constructor Summary
PartitionRuntimeState()
           
PartitionRuntimeState(ILogger logger, Collection<MemberInfo> memberInfos, InternalPartition[] partitions, Collection<MigrationInfo> migrationInfos, long masterTime, int version)
           
 
Method Summary
protected  void addMemberInfo(MemberInfo memberInfo, Map<Address,Integer> addressIndexes, int memberIndex)
           
 Collection<MigrationInfo> getCompletedMigrations()
           
 Address getEndpoint()
           
 long getMasterTime()
           
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

members

protected final ArrayList<MemberInfo> members
Constructor Detail

PartitionRuntimeState

public PartitionRuntimeState()

PartitionRuntimeState

public PartitionRuntimeState(ILogger logger,
                             Collection<MemberInfo> memberInfos,
                             InternalPartition[] partitions,
                             Collection<MigrationInfo> migrationInfos,
                             long masterTime,
                             int version)
Method Detail

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.