com.ibm.ws.tpv.engine.utils
Class ServerBean
- java.lang.Object
-
- com.ibm.ws.tpv.engine.utils.ServerBean
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable
public class ServerBean extends java.lang.Object implements java.lang.Comparable, java.io.Serializable- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description protected java.lang.Stringnodeprotected java.lang.Stringserver
-
Constructor Summary
Constructors Constructor and Description ServerBean(java.lang.String node, java.lang.String server)Creates a Server Bean for a specific node and server
-
Method Summary
Methods Modifier and Type Method and Description intcompareTo(java.lang.Object that)intcompareTo(ServerBean that)Compares two Server Bean objectsbooleanequals(java.lang.Object that)java.lang.StringgetNode()Returns the node of the ServerBean.java.lang.StringgetServer()Returns the server of the ServerBean.inthashCode()voidsetNode(java.lang.String node)Sets the node for the ServerBean.voidsetServer(java.lang.String server)Sets the server of the ServerBean.java.lang.StringtoString()
-
-
-
Constructor Detail
-
ServerBean
public ServerBean(java.lang.String node, java.lang.String server)Creates a Server Bean for a specific node and server
-
-
Method Detail
-
compareTo
public int compareTo(java.lang.Object that)
- Specified by:
compareToin interfacejava.lang.Comparable
-
compareTo
public int compareTo(ServerBean that)
Compares two Server Bean objects- Returns:
- int
-
equals
public boolean equals(java.lang.Object that)
- Overrides:
equalsin classjava.lang.Object
-
getNode
public java.lang.String getNode()
Returns the node of the ServerBean.- Returns:
- String.
-
setNode
public void setNode(java.lang.String node)
Sets the node for the ServerBean.- Parameters:
node.-
-
getServer
public java.lang.String getServer()
Returns the server of the ServerBean.- Returns:
- String.
-
setServer
public void setServer(java.lang.String server)
Sets the server of the ServerBean.- Parameters:
server.-
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-