|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jvm.server.ServerID
A simple server identification information wrapping class.
The server is a special entity which actually defines some
subgroups of entities sharing the same server (running on the
same host:port jvm server). Every EntityID has a associated
ServerID defining the server it is running in.
Written: Radu Sion
Version: 0.17x
Source: ServerID.java
Visit
Smart Software
EntityID, Serialized Form| Field Summary | |
static ServerID |
currentServerID
This should NOT be used for direct connection purposes. |
java.lang.String |
Host
The host on which this entity runs. |
long |
Port
The port on which this entity's server runs. |
java.lang.String |
Protocol
The protocol by which this entity is accessible. |
| Constructor Summary | |
ServerID()
Fake constructor. |
|
ServerID(java.lang.String host,
long port)
Creates a new ServerID object. |
|
ServerID(java.lang.String host,
long port,
java.lang.String protocol)
Creates a new ServerID object. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
We're implemeneting this in order to use properly hash facilities. |
static ServerID |
fromString(java.lang.String descc)
Generates a ServerID object from a string provided in a form similar to the output of .toString(). |
int |
hashCode()
nbsp; We're implementing this in order to use properly hash facilities. |
java.lang.String |
toString()
Returns the string representation of this object. |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static ServerID currentServerID
public java.lang.String Host
public long Port
public java.lang.String Protocol
| Constructor Detail |
public ServerID()
public ServerID(java.lang.String host,
long port,
java.lang.String protocol)
public ServerID(java.lang.String host,
long port)
| Method Detail |
public java.lang.String toString()
GroupID.toString()public static ServerID fromString(java.lang.String descc)
public boolean equals(java.lang.Object obj)
hashCode(),
EntityIDpublic int hashCode()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||