|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.root1.simon.SimonPublication
public final class SimonPublication
This class holds a 3-tupel of data needed to identify a remote object on a registry. The tupel consists of:
| Constructor Summary | |
|---|---|
protected |
SimonPublication(java.net.InetAddress address,
int port,
java.lang.String remoteObjectName)
Creates a new object instance according to the given address, port and remote object name |
protected |
SimonPublication(java.lang.String rawString)
Creates an object instance according to a raw string with the format: [SIMON|192.168.0.123:1234|myServer] |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.net.InetAddress |
getAddress()
Returns the network address to which the registry is bind |
int |
getPort()
Returns the port on which the registry listens for connections |
java.lang.String |
getRemoteObjectName()
Returns the name of the remote object which is bind to the registry |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected SimonPublication(java.net.InetAddress address,
int port,
java.lang.String remoteObjectName)
address - the address of a SIMON registryport - the port on which the registry listensremoteObjectName - the bind remote object name
protected SimonPublication(java.lang.String rawString)
throws java.lang.IllegalArgumentException,
java.net.UnknownHostException,
java.lang.NumberFormatException
rawString - the string that delivers the needed data to create an instance of SimonPublication
java.lang.IllegalArgumentException - if raw string has the wrong format
java.net.UnknownHostException - if the host in the raw string is unknown
java.lang.NumberFormatException - if the port in the raw string has the wrong format (e.g. non numeric)| Method Detail |
|---|
public java.lang.String getRemoteObjectName()
public int getPort()
public java.net.InetAddress getAddress()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||