public class CPGroupSummary extends Object implements CPGroup, IdentifiedDataSerializable
CPGroup.CPGroupStatus
DEFAULT_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()
CPGroup
public CPGroup.CPGroupStatus status()
CPGroup
public Collection<RaftEndpoint> initialMembers()
public Collection<CPMember> members()
CPGroup
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getClassId()
IdentifiedDataSerializable
getClassId
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 © 2019 Hazelcast, Inc.. All rights reserved.