public class ExtendedStartMsg extends ReplicationMsg
ASN.1 definition of the message is:
ExtendedStartMsg ::= [APPLICATION 0] CHOICE { v10 PayloadV10 } PayloadV10 ::= SEQUENCE { serverId ::= CHOICE { replicaId [0] IMPLICIT PrintableString replicationServerId [1] IMPLICIT PrintableString }, groupId PrintableString, processId ::= SEQUENCE OF { msb INTEGER, lsb INTEGER }, serverState ::= SET OF { csn OCTET STRING } }
MSG_TYPE_DISK_ENCODING
Constructor and Description |
---|
ExtendedStartMsg(Asn1Reader asn1)
Constructs a ExtendedStartMsg from a replication message.
|
ExtendedStartMsg(ServerId<?> serverId,
GroupId groupId,
ProcessId processId,
ServerState state)
Constructs an ExtendedStartMsg replication message for sending.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes(short protocolVersion)
Serializes the PDU using the provided replication protocol version.
|
GroupId |
getGroupId()
Returns the groupID in this message.
|
ProcessId |
getProcessId()
Returns the processID in this message.
|
ServerId<?> |
getServerId()
Returns the serverID in this message.
|
ServerState |
getServerState()
Returns the ServerState in this message.
|
decodeMsg, isRetryable
public ExtendedStartMsg(ServerId<?> serverId, GroupId groupId, ProcessId processId, ServerState state)
serverId
- the serverID to sendgroupId
- the groupID to sendprocessId
- the processID to sendstate
- the ServerState to sendpublic ExtendedStartMsg(Asn1Reader asn1) throws IOException, DataFormatException
asn1
- the data from a received messageIOException
- if the message does not apply to this protocol version.DataFormatException
- aostpublic byte[] getBytes(short protocolVersion)
ReplicationMsg
getBytes
in class ReplicationMsg
protocolVersion
- The protocol version to use for serialization. The version should normally be older than the current
one.null
if the message isn't supported in that protocol version.public GroupId getGroupId()
public ServerId<?> getServerId()
public ProcessId getProcessId()
public ServerState getServerState()
Copyright 2010-2022 ForgeRock AS.