public class RegisterHostMessage extends MonitorMessage
replyOfId
Constructor and Description |
---|
RegisterHostMessage(String name,
int jmxPort,
int rmiPort)
Creates a message with the JMX host entry for a host registered to the monitor server.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(MonitorMessageVisitor v)
Should be implemented as a part of the visitor pattern.
|
HostEntry |
getHostEntry()
Get the host entry for the host registering.
|
getErrMsg, getID, getReplyOfId, getReplyTo, getTo, hasBeenSent, isOk, setNotOk, setNotOk, toString
public RegisterHostMessage(String name, int jmxPort, int rmiPort)
name
- The name of the remote host.jmxPort
- The JMX port allocated on the remote host.rmiPort
- The RMI port allocated on the remote host.ArgumentNotValid
- on null or empty hostname, or negative ports.public void accept(MonitorMessageVisitor v)
public void accept(MonitorMessageVisitor v) {
v.visit(this);
}
accept
in class MonitorMessage
v
- A message visitor.MonitorMessageVisitor
public HostEntry getHostEntry()
Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.