gcsImplementations.spreadGcs
Class SpreadGcsGroup

java.lang.Object
  extended by gcs.GcsGroup
      extended by gcsImplementations.spreadGcs.SpreadGcsGroup

public class SpreadGcsGroup
extends GcsGroup

Spread back-end implementation of the GcsGroup.

Author:
tkob
See Also:
GcsGroup

Constructor Summary
SpreadGcsGroup()
           
 
Method Summary
 boolean equals(java.lang.Object object)
          Returns true if object given by the argument represents the same group as this object, false otherwise.
 void join(GcsConnection connection, java.lang.String name)
          Allows joining group of a given name using specified GcsConnection object.
 void leave()
          Allows leaving the group represented by this object.
 java.lang.String toString()
          Returns the group's name as a string.
 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

SpreadGcsGroup

public SpreadGcsGroup()
Method Detail

equals

public boolean equals(java.lang.Object object)
Description copied from class: GcsGroup
Returns true if object given by the argument represents the same group as this object, false otherwise.

Specified by:
equals in class GcsGroup
Parameters:
object - object which should be compared with this group object
Returns:
true if objects match, false otherwise

join

public void join(GcsConnection connection,
                 java.lang.String name)
          throws GcsException
Description copied from class: GcsGroup
Allows joining group of a given name using specified GcsConnection object.

Specified by:
join in class GcsGroup
Parameters:
connection - connection used to communicate with group communication system
name - name of the group to be joined
Throws:
GcsException - if joining group failed

leave

public void leave()
           throws GcsException
Description copied from class: GcsGroup
Allows leaving the group represented by this object.

Specified by:
leave in class GcsGroup
Throws:
GcsException - if leaving group failed

toString

public java.lang.String toString()
Description copied from class: GcsGroup
Returns the group's name as a string.

Specified by:
toString in class GcsGroup

toXml

public org.jdom.Element toXml()
Description copied from class: GcsGroup
Returns the XML representation of the group.

Specified by:
toXml in class GcsGroup
Returns:
the XML representation of the group