|
jGCS Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ControlSession
This class defines a ControlSession. This Session is used to join and leave a simple group. It is also used to register a ControlListener. An instance of this session must be created by the Protocol interface.
Protocol| Method Summary | |
|---|---|
java.net.SocketAddress |
getLocalAddress()
Gets the local address. |
boolean |
isJoined()
Verifies if the member belongs to a group. |
void |
join()
Joins the group. |
void |
leave()
Leaves the group. |
void |
setControlListener(ControlListener listener)
Adds a listener to deliver group membership notifications. |
void |
setExceptionListener(ExceptionListener exception)
Adds a listener to deliver exceptions related to message reception and membership notifications. |
| Method Detail |
|---|
void join()
throws ClosedSessionException,
JGCSException
ClosedSessionException
JGCSException
void leave()
throws ClosedSessionException,
JGCSException
ClosedSessionException
JGCSExceptionboolean isJoined()
java.net.SocketAddress getLocalAddress()
void setControlListener(ControlListener listener)
listener - The listener to be bound to the membership service.
void setExceptionListener(ExceptionListener exception)
throws ClosedSessionException
exception - the exception thrown by the implementation of the interface.
ClosedSessionException
|
jGCS Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||