|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.replication.protocol.ReplicationMessage
org.opends.server.replication.protocol.RoutableMessage
org.opends.server.replication.protocol.MonitorMessage
public class MonitorMessage
This message is part of the replication protocol. RS1 sends a MonitorRequestMessage to RS2 to requests its monitoring informations. When RS2 receives a MonitorRequestMessage from RS1, RS2 responds with a MonitorMessage.
Field Summary |
---|
Fields inherited from class org.opends.server.replication.protocol.RoutableMessage |
---|
ALL_SERVERS, destination, senderID, THE_CLOSEST_SERVER, UNKNOWN_SERVER |
Constructor Summary | |
---|---|
MonitorMessage(byte[] in)
Creates a new EntryMessage from its encoded form. |
|
MonitorMessage(short sender,
short destination)
Creates a new EntryMessage. |
Method Summary | |
---|---|
byte[] |
getBytes()
Return the byte[] representation of this message. |
java.lang.Long |
getLDAPApproxFirstMissingDate(short serverId)
Get the approximation of the date of the older missing change for the LDAP Server with the provided server Id. |
ServerState |
getLDAPServerState(short 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. |
java.lang.Long |
getRSApproxFirstMissingDate(short serverId)
Get the approximation of the date of the older missing change for the RS Server with the provided server Id. |
ServerState |
getRSServerState(short serverId)
Get the server state for the RS server with the provided serverId. |
java.util.Iterator<java.lang.Short> |
ldapIterator()
Returns an iterator on the serverId of the connected LDAP servers. |
java.util.Iterator<java.lang.Short> |
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(short serverId,
ServerState state,
java.lang.Long approxFirstMissingDate,
boolean isLDAP)
Sets the informations of an LDAP server. |
java.lang.String |
toString()
Returns a string representation of the message. |
Methods inherited from class org.opends.server.replication.protocol.RoutableMessage |
---|
getDestination, getsenderID |
Methods inherited from class org.opends.server.replication.protocol.ReplicationMessage |
---|
addByteArray, generateMsg, getNextLength |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MonitorMessage(short sender, short destination)
sender
- The sender of this message.destination
- The destination of this message.public MonitorMessage(byte[] in) throws java.util.zip.DataFormatException
in
- The byte array containing the encoded form of the message.
java.util.zip.DataFormatException
- If the byte array does not contain a valid
encoded form of the ServerStartMessage.Method Detail |
---|
public void setReplServerDbState(ServerState state)
state
- The state.public void setServerState(short serverId, ServerState state, java.lang.Long approxFirstMissingDate, boolean isLDAP)
serverId
- The serverID.state
- The server state.approxFirstMissingDate
- The approximation of the date
of the older missing change. null when none.isLDAP
- Specifies whether the server is a LS or a RSpublic ServerState getLDAPServerState(short serverId)
serverId
- The provided serverId.
public ServerState getRSServerState(short serverId)
serverId
- The provided serverId.
public java.lang.Long getLDAPApproxFirstMissingDate(short serverId)
serverId
- The provided serverId.
public java.lang.Long getRSApproxFirstMissingDate(short serverId)
serverId
- The provided serverId.
public byte[] getBytes()
getBytes
in class ReplicationMessage
public ServerState getReplServerDbState()
public java.util.Iterator<java.lang.Short> ldapIterator()
public java.util.Iterator<java.lang.Short> rsIterator()
public java.lang.String toString()
toString
in class RoutableMessage
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |