|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.common.distribute.monitorregistry.HostEntry
public class HostEntry
Helper class to encapsulate information about one remote JmxConnection.
Constructor Summary | |
---|---|
HostEntry(java.lang.String name,
int jmxPort,
int rmiPort)
Constructor for the HostEntry helper class. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Return whether two hosts are equal. |
int |
getJmxPort()
Get the JMX port for connections. |
java.lang.String |
getName()
Get the host name. |
int |
getRmiPort()
Get the RMI port for connections. |
java.util.Date |
getTime()
Get the time this host was last seen alive. |
int |
hashCode()
Return hash code. |
void |
setTime(java.util.Date time)
Update the time for when the host was last seen alive. |
java.lang.String |
toString()
Get a human readable representation of this host and ports. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HostEntry(java.lang.String name, int jmxPort, int rmiPort)
name
- The name of the remote hostjmxPort
- The JMX port allocated on the remote hostrmiPort
- The RMI port allocated on the remote hostMethod Detail |
---|
public int getJmxPort()
public java.lang.String getName()
public int getRmiPort()
public java.util.Date getTime()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The host to compare with.
Object.equals(Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public java.lang.String toString()
toString
in class java.lang.Object
public void setTime(java.util.Date time)
time
- The time last seen alive.
ArgumentNotValid
- on null parameter.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |