public final class MetadataRaftGroupSnapshot extends Object implements IdentifiedDataSerializable
Constructor and Description |
---|
MetadataRaftGroupSnapshot() |
Modifier and Type | Method and Description |
---|---|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
Collection<CPGroupInfo> |
getGroups() |
int |
getId()
Returns type identifier for this class.
|
List<CPMemberInfo> |
getInitialCPMembers() |
Set<Long> |
getInitializationCommitIndices() |
com.hazelcast.cp.internal.MetadataRaftGroupManager.MetadataRaftGroupInitStatus |
getInitializationStatus() |
Set<CPMemberInfo> |
getInitializedCPMembers() |
Collection<CPMemberInfo> |
getMembers() |
long |
getMembersCommitIndex() |
MembershipChangeSchedule |
getMembershipChangeSchedule() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
setGroups(Collection<CPGroupInfo> groups) |
void |
setInitialCPMembers(List<CPMemberInfo> initialCPMembers) |
void |
setInitializationCommitIndices(Set<Long> initializationCommitIndices) |
void |
setInitializationStatus(com.hazelcast.cp.internal.MetadataRaftGroupManager.MetadataRaftGroupInitStatus initializationStatus) |
void |
setInitializedCPMembers(Collection<CPMemberInfo> initializedCPMembers) |
void |
setMembers(Collection<CPMemberInfo> members) |
void |
setMembersCommitIndex(long membersCommitIndex) |
void |
setMembershipChangeSchedule(MembershipChangeSchedule membershipChangeSchedule) |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public void setGroups(Collection<CPGroupInfo> groups)
public void setMembers(Collection<CPMemberInfo> members)
public Collection<CPMemberInfo> getMembers()
public long getMembersCommitIndex()
public void setMembersCommitIndex(long membersCommitIndex)
public Collection<CPGroupInfo> getGroups()
public MembershipChangeSchedule getMembershipChangeSchedule()
public void setMembershipChangeSchedule(MembershipChangeSchedule membershipChangeSchedule)
public Set<CPMemberInfo> getInitializedCPMembers()
public void setInitializedCPMembers(Collection<CPMemberInfo> initializedCPMembers)
public List<CPMemberInfo> getInitialCPMembers()
public void setInitialCPMembers(List<CPMemberInfo> initialCPMembers)
public com.hazelcast.cp.internal.MetadataRaftGroupManager.MetadataRaftGroupInitStatus getInitializationStatus()
public void setInitializationStatus(com.hazelcast.cp.internal.MetadataRaftGroupManager.MetadataRaftGroupInitStatus initializationStatus)
public void setInitializationCommitIndices(Set<Long> initializationCommitIndices)
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
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 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.Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.