public class HostEntry extends Object implements Serializable
Constructor and Description |
---|
HostEntry(String name,
int jmxPort,
int rmiPort)
Constructor for the HostEntry helper class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Return whether two hosts are equal.
|
int |
getJmxPort()
Get the JMX port for connections.
|
String |
getName()
Get the host name.
|
int |
getRmiPort()
Get the RMI port for connections.
|
Date |
getTime()
Get the time this host was last seen alive.
|
int |
hashCode()
Return hash code.
|
void |
setTime(Date time)
Update the time for when the host was last seen alive.
|
String |
toString()
Get a human readable representation of this host and ports.
|
public int getJmxPort()
public int getRmiPort()
public Date getTime()
public boolean equals(Object obj)
Two hosts are considered equal, if they have the same name and JMX/RMI ports. However, the time last seen alive is not, and should not be, considered.
equals
in class Object
obj
- The host to compare with.Object.equals(Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public void setTime(Date time)
time
- The time last seen alive.ArgumentNotValid
- on null parameter.Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.