public class CPGroupSummary extends Object implements CPGroup, IdentifiedDataSerializable
CPGroup.CPGroupStatusDEFAULT_GROUP_NAME, METADATA_CP_GROUP_NAME| Constructor and Description |
|---|
CPGroupSummary() |
CPGroupSummary(CPGroupId id,
CPGroup.CPGroupStatus status,
Collection<RaftEndpoint> initialMembers,
Collection<CPMember> members) |
| Modifier and Type | Method and Description |
|---|---|
int |
getClassId()
Returns type identifier for this class.
|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
CPGroupId |
id()
Returns unique id of the CP group
|
Collection<RaftEndpoint> |
initialMembers() |
Collection<CPMember> |
members()
Returns current members of the CP group
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
CPGroup.CPGroupStatus |
status()
Returns status of the CP group
|
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public CPGroupSummary()
public CPGroupSummary(CPGroupId id, CPGroup.CPGroupStatus status, Collection<RaftEndpoint> initialMembers, Collection<CPMember> members)
public CPGroupId id()
CPGrouppublic CPGroup.CPGroupStatus status()
CPGrouppublic Collection<RaftEndpoint> initialMembers()
public Collection<CPMember> members()
CPGrouppublic int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic int getClassId()
IdentifiedDataSerializablegetClassId in interface IdentifiedDataSerializablepublic void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - 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
DataSerializablereadData in interface DataSerializablein - inputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
input stream has been closed.Copyright © 2019 Hazelcast, Inc.. All rights reserved.