|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgcs.GcsGroup
public abstract class GcsGroup
Provides an abstraction for the dynamic group.
GcsConnection.getPrivateGroup()
method returns the private group for
the GcsConnection object if session with group communication system is
established.
Client defined by a concrete connection object can join other groups by
creating new GcsGroup object and calling join(GcsConnection, String)
. Once it is done successfully, all the messages sent through RestGroups to
the group client has joined, will be available for him. The leave()
method should be called to leave the group.
Constructor Summary | |
---|---|
protected |
GcsGroup()
Default constructor. |
Method Summary | |
---|---|
abstract boolean |
equals(java.lang.Object object)
Returns true if object given by the argument represents the same group as this object, false otherwise. |
abstract void |
join(GcsConnection connection,
java.lang.String name)
Allows joining group of a given name using specified GcsConnection object. |
abstract void |
leave()
Allows leaving the group represented by this object. |
abstract java.lang.String |
toString()
Returns the group's name as a string. |
abstract org.jdom.Element |
toXml()
Returns the XML representation of the group. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected GcsGroup()
Method Detail |
---|
public abstract boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- object which should be compared with this group object
public abstract void join(GcsConnection connection, java.lang.String name) throws GcsException
GcsConnection
object.
connection
- connection used to communicate with group communication systemname
- name of the group to be joined
GcsException
- if joining group failedpublic abstract void leave() throws GcsException
GcsException
- if leaving group failedpublic abstract java.lang.String toString()
toString
in class java.lang.Object
public abstract org.jdom.Element toXml()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |