jGCS Documentation

net.sf.jgcs
Interface Protocol

All Known Implementing Classes:
AbstractMultiThreadedPollingProtocol, AbstractPollingProtocol, AbstractProtocol

public interface Protocol

This interface defines a Protocol represents an instance of the toolkit used to implement the Group Communication Service (GCS). This interface must be used to create instances of DataSession and Control Session.

Version:
1.0
Author:
Nuno Carvalho
See Also:
DataSession, ControlSession, GroupConfiguration

Method Summary
 ControlSession openControlSession(GroupConfiguration group)
          Creates a new Control Session.
 DataSession openDataSession(GroupConfiguration group)
          Creates e new Data Session.
 

Method Detail

openDataSession

DataSession openDataSession(GroupConfiguration group)
                            throws JGCSException
Creates e new Data Session. This session must be used to send messages and to register a listener to receive messages from the other members of the group.

Parameters:
group - the configuration.
Returns:
a new data session.
Throws:
JGCSException

openControlSession

ControlSession openControlSession(GroupConfiguration group)
                                  throws JGCSException
Creates a new Control Session. This session must be used to join a group and register a listener to receive asynchronous notifications about the other members of the group (join, leave, fail).

Parameters:
group - the group configuration.
Returns:
a new control session.
Throws:
JGCSException

jGCS Documentation

Copyright (c) 2006, Universidade de Lisboa
For updates and related information please see jGCS home page