public class MonitorMsg extends ReplicationMsg
MSG_TYPE_DISK_ENCODING
Constructor and Description |
---|
MonitorMsg(int sender,
int destination)
Creates a new MonitorMsg.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes(short protocolVersion)
Serializes the PDU using the provided replication protocol version.
|
int |
getDestination()
Get the destination.
|
long |
getLDAPApproxFirstMissingDate(int serverId)
Get the approximation of the date of the older missing change for the
LDAP Server with the provided server Id.
|
ServerState |
getLDAPServerState(int serverId)
Get the server state for the LDAP server with the provided serverId.
|
ServerState |
getReplServerDbState()
Get the state of the replication server that sent this message.
|
long |
getRSApproxFirstMissingDate(int serverId)
Get the approximation of the date of the older missing change for the
RS Server with the provided server Id.
|
ServerState |
getRSServerState(int serverId)
Get the server state for the RS server with the provided serverId.
|
int |
getSenderID()
Get the server ID of the server that sent this message.
|
Iterator<Integer> |
ldapIterator()
Returns an iterator on the serverId of the connected LDAP servers.
|
Iterator<Integer> |
rsIterator()
Returns an iterator on the serverId of the connected RS servers.
|
void |
setReplServerDbState(ServerState state)
Sets the state of the replication server.
|
void |
setServerState(int serverId,
ServerState state,
long approxFirstMissingDate,
boolean isLDAPServer)
Sets the information of an LDAP server.
|
String |
toString() |
generateMsg
public MonitorMsg(int sender, int destination)
sender
- The sender of this message.destination
- The destination of this message.public void setReplServerDbState(ServerState state)
state
- The state.public void setServerState(int serverId, ServerState state, long approxFirstMissingDate, boolean isLDAPServer)
serverId
- The serverID.state
- The server state.approxFirstMissingDate
- The approximation of the date
of the older missing change. null when none.isLDAPServer
- Specifies whether the server is a DS or a RSpublic ServerState getLDAPServerState(int serverId)
serverId
- The provided serverId.public ServerState getRSServerState(int serverId)
serverId
- The provided serverId.public long getLDAPApproxFirstMissingDate(int serverId)
serverId
- The provided serverId.public long getRSApproxFirstMissingDate(int serverId)
serverId
- The provided serverId.public 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 ServerState getReplServerDbState()
public Iterator<Integer> ldapIterator()
public Iterator<Integer> rsIterator()
public int getDestination()
public int getSenderID()
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.