|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jgroup.relacs.mss.HostTable
public final class HostTable
The HostTable
class
Constructor Summary | |
---|---|
HostTable()
Creates an empty table. |
Method Summary | |
---|---|
MssHost |
get(int index)
Returns the host reference having the specified index |
static MssHost |
getLocalHost()
Returns the MssHost descriptor of the local host. |
void |
insert(MssHost host)
Inserts host host in the table, unless an host with the same key
is already in the table. |
java.util.Iterator |
iterator()
Return an iterator over the values in this host table. |
MssHost |
lookup(EndPoint endpoint)
Returns the host reference to which this address is mapped. |
int |
size()
Return the number of hosts contained in the table. |
java.lang.String |
toString()
Returns a string representation of this object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HostTable()
Method Detail |
---|
public void insert(MssHost host) throws ConfigurationException
host
in the table, unless an host with the same key
is already in the table.
host
- the host to be inserted.
ConfigurationException
- if the element is already in the tablepublic MssHost lookup(EndPoint endpoint)
endpoint
- host endpoint
public MssHost get(int index)
index
- host index
public static MssHost getLocalHost()
MssHost
descriptor of the local host.
java.lang.IllegalStateException
- Raised if the local host has not yet been initialized.public int size()
public java.util.Iterator iterator()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |