|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.miv.mbox.net.MBoxLocator
public class MBoxLocator
Address of a message box. An object locator is made of three parts:
| Field Summary | |
|---|---|
protected String |
hostId
Computed host id (Host and port without the name) to avoid recreating it. |
protected String |
hostname
Host name of the URL. |
protected String |
name
Identifier part of the URL. |
protected int |
port
Port of the URL. |
| Constructor Summary | |
|---|---|
MBoxLocator(String locator_string)
New locator created by cutting the given string into fields. |
|
MBoxLocator(String hostname,
int port)
New locator according to the host name and port only. |
|
MBoxLocator(String hostname,
int port,
String name)
New locator according to the host name, port and message box name. |
|
| Method Summary | |
|---|---|
String |
getHostId()
String containing only the hostname and port under the form "//hostname:port". |
String |
getHostname()
Host name part. |
String |
getName()
Name of this locator. |
int |
getPort()
Port of this locator. |
void |
setHostname(String hostname)
Change the host name of this locator. |
void |
setName(String name)
Change the message box name of this locator. |
void |
setPort(int port)
Change the port of this locator. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String hostname
protected int port
protected String name
protected String hostId
| Constructor Detail |
|---|
public MBoxLocator(String hostname,
int port)
hostname - Computer name.port - Network port number.
public MBoxLocator(String hostname,
int port,
String name)
hostname - Computer name.port - Network port number.name - Message box identifier.
public MBoxLocator(String locator_string)
throws IllegalArgumentException
locator_string - The string to cut in fields.
IllegalArgumentException - If the string does not complies with the
expected format.| Method Detail |
|---|
public String getHostname()
public int getPort()
public String getName()
public String getHostId()
public String toString()
toString in class Objectpublic void setHostname(String hostname)
hostname - Hostname of this locator.public void setPort(int port)
port - Port of this locator.public void setName(String name)
name - Name of this locator.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||