Class StartMsg
- java.lang.Object
-
- org.opends.server.replication.protocol.ReplicationMsg
-
- org.opends.server.replication.protocol.StartMsg
-
- Direct Known Subclasses:
ReplServerStartDSMsg,ReplServerStartMsg,ServerStartMsg
public abstract class StartMsg extends ReplicationMsg
This abstract message class is the superclass for start messages used by LDAP servers and Replication servers to initiate their communications. This class specifies a message header that contains the Replication Protocol version.
-
-
Field Summary
Fields Modifier and Type Field Description protected longgenerationIdGeneration id of data set we want to work with.protected bytegroupIdGroup id of the replicated domain.protected shortprotocolVersionProtocol version.-
Fields inherited from class org.opends.server.replication.protocol.ReplicationMsg
MSG_TYPE_DISK_ENCODING
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedStartMsg()Create a new StartMsg.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetGenerationId()Get the generationId from this message.bytegetGroupId()Get the group id in this message.shortgetVersion()Get the version included in the Start message mean the replication protocol version used by the server that created the message.voidsetGroupId(byte groupId)Set the group id in this message (For test purpose).-
Methods inherited from class org.opends.server.replication.protocol.ReplicationMsg
generateMsg, getBytes, isEncodableFor
-
-
-
-
Method Detail
-
getVersion
public short getVersion()
Get the version included in the Start message mean the replication protocol version used by the server that created the message.- Returns:
- The version used by the server that created the message.
-
getGenerationId
public long getGenerationId()
Get the generationId from this message.- Returns:
- The generationId.
-
getGroupId
public byte getGroupId()
Get the group id in this message.- Returns:
- The group id in this message
-
setGroupId
public void setGroupId(byte groupId)
Set the group id in this message (For test purpose).- Parameters:
groupId- The group id to set.
-
-