|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--JavaGroups.JavaStack.RouterStub
| Constructor Summary | |
RouterStub(java.lang.String router_host,
int router_port)
Creates a stub for a remote Router object. |
|
| Method Summary | |
Address |
Connect()
Establishes a connection to the router. |
void |
Disconnect()
Closes the socket and the input and output streams associated with it |
List |
Get(java.lang.String groupname)
Retrieves the membership (list of Addresses) for a given group. |
static void |
main(java.lang.String[] args)
|
Message |
Receive()
Receives a message from the router (blocking mode). |
boolean |
Reconnect()
Tries to establish connection to router. |
boolean |
Register(java.lang.String groupname)
Register this process with the routerb under groupname. |
boolean |
Send(Message msg)
Sends a message to the router. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public RouterStub(java.lang.String router_host,
int router_port)
router_host - The name of the router's hostrouter_port - The router's port| Method Detail |
public Address Connect()
public void Disconnect()
public boolean Register(java.lang.String groupname)
groupname.groupname - The name of the group under which to registerpublic List Get(java.lang.String groupname)
public boolean Send(Message msg)
public Message Receive()
public boolean Reconnect()
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||