|
jGCS Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jgcs.AbstractDataSession
public abstract class AbstractDataSession
This class defines a AbstractDataSession. It partially implements the data session interface by handling the listeners and the group configuration.
Constructor Summary | |
---|---|
protected |
AbstractDataSession(AbstractProtocol protocol,
GroupConfiguration group)
|
Method Summary | |
---|---|
protected void |
boot()
|
void |
close()
Closes the session. |
GroupConfiguration |
getGroup()
Gets the group associated with this session. |
protected void |
notifyExceptionListeners(JGCSException exception)
|
protected java.lang.Object |
notifyMessageListeners(Message msg)
|
protected void |
notifyServiceListeners(java.lang.Object context,
Service service)
|
void |
setExceptionListener(ExceptionListener listener)
Adds a listener to deliver exceptions related to message reception. |
void |
setMessageListener(MessageListener listener)
Adds a listener to deliver messages from this channel. |
void |
setServiceListener(ServiceListener listener)
Adds a listener to deliver notifications from this channel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.jgcs.DataSession |
---|
createMessage, multicast, send |
Constructor Detail |
---|
protected AbstractDataSession(AbstractProtocol protocol, GroupConfiguration group)
Method Detail |
---|
protected void boot()
public void close()
DataSession
close
in interface DataSession
public void setMessageListener(MessageListener listener)
DataSession
setMessageListener
in interface DataSession
listener
- The listener to be bound to the channel.public void setExceptionListener(ExceptionListener listener)
DataSession
setExceptionListener
in interface DataSession
listener
- the exception thrown by the implementation of the interface.public void setServiceListener(ServiceListener listener)
DataSession
setServiceListener
in interface DataSession
listener
- the listener to be bound to the channel.protected void notifyExceptionListeners(JGCSException exception)
protected java.lang.Object notifyMessageListeners(Message msg)
protected void notifyServiceListeners(java.lang.Object context, Service service)
public GroupConfiguration getGroup()
DataSession
getGroup
in interface DataSession
|
jGCS Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |