public class InitializeTargetMsg extends RoutableMsg
destination, senderId
MSG_TYPE_DISK_ENCODING
Constructor and Description |
---|
InitializeTargetMsg(Dn baseDN,
ReplicaId replicaId,
ReplicaId destination,
ReplicaId requestorID,
long entryCount,
int initWindow)
Creates a InitializeTargetMsg.
|
Modifier and Type | Method and Description |
---|---|
Dn |
getBaseDN()
Get the base DN of the domain.
|
byte[] |
getBytes(short version)
Serializes the PDU using the provided replication protocol version.
|
long |
getEntryCount()
Get the number of entries expected to be sent during the export.
|
ReplicaId |
getInitiatorID()
Get the replica id of the server that initiated the export.
|
int |
getInitWindow()
Get the initializationWindow.
|
ReplicaId |
getSenderID()
Get the server ID of the server that sent this message.
|
void |
setInitWindow(int initWindow)
Set the initWindow value.
|
getDestination, toString
decodeMsg, isRetryable
public InitializeTargetMsg(Dn baseDN, ReplicaId replicaId, ReplicaId destination, ReplicaId requestorID, long entryCount, int initWindow)
baseDN
- The base DN for which the InitializeMessage is created.replicaId
- The replicaId of the server that sends this message.destination
- The destination of this message.requestorID
- The server that initiates this export.entryCount
- The count of entries that will be sent.initWindow
- the initialization window.public long getEntryCount()
public ReplicaId getInitiatorID()
public Dn getBaseDN()
public int getInitWindow()
public byte[] getBytes(short version)
ReplicationMsg
getBytes
in class ReplicationMsg
version
- 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 void setInitWindow(int initWindow)
initWindow
- The initialization window.public ReplicaId getSenderID()
RoutableMsg
getSenderID
in class RoutableMsg
Copyright 2010-2022 ForgeRock AS.