base.jdbs.network.util
Class JxtaGroupUtil

java.lang.Object
  extended by base.jdbs.network.util.JxtaGroupUtil

public class JxtaGroupUtil
extends java.lang.Object


Constructor Summary
JxtaGroupUtil()
           
 
Method Summary
static net.jxta.peergroup.PeerGroup createGroup(net.jxta.peergroup.PeerGroup parentGroup, java.lang.String groupName, java.lang.String groupDescription, boolean autoRdv, int rendezVousPeriod, net.jxta.rendezvous.RendezvousListener rendezvousListener, boolean publish)
          This method is used to create a new PeerGroup from its parent group.
static net.jxta.peergroup.PeerGroup createGroupFromLocalCache(net.jxta.peergroup.PeerGroup parentGroup, java.lang.String peerGroupName, boolean autoRdv, int rendezVousPeriod, net.jxta.rendezvous.RendezvousListener rendezvousListener, boolean publish)
          This method is used to create a PeerGroup whose name is peerGroupName from the local peer's cache..
static void joinGroup(net.jxta.peergroup.PeerGroup peerGroup, java.lang.String keyStorePassword, java.lang.String identityPassword)
          This method is used to join a PeerGroup authenticating our peer on the bases of provided key store and identity passwords.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JxtaGroupUtil

public JxtaGroupUtil()
Method Detail

joinGroup

public static void joinGroup(net.jxta.peergroup.PeerGroup peerGroup,
                             java.lang.String keyStorePassword,
                             java.lang.String identityPassword)
This method is used to join a PeerGroup authenticating our peer on the bases of provided key store and identity passwords. It assumes that our passwords are equals (keyStorePassword == identityPassword).

Parameters:
peerGroup - The PeerGroup where we want to join.
keyStorePassword - Our key store password.
identityPassword - Our identity password.

createGroup

public static net.jxta.peergroup.PeerGroup createGroup(net.jxta.peergroup.PeerGroup parentGroup,
                                                       java.lang.String groupName,
                                                       java.lang.String groupDescription,
                                                       boolean autoRdv,
                                                       int rendezVousPeriod,
                                                       net.jxta.rendezvous.RendezvousListener rendezvousListener,
                                                       boolean publish)
This method is used to create a new PeerGroup from its parent group.

Parameters:
parentGroup - The parent PeerGroup from wich the new PeerGroup must be created.
groupName - A name for the new PeerGroup to create.
groupDescription - A description for the new PeerGroup to create.
autoRdv - States if an auto rendezvous must be setted for the group to be created.
rendezVousPeriod - The auto rendezvous period for the new group's rendezvous service.
rendezvousListener - A rendezvous listener for the new peer group.
publish - States if the created new group must be published locally and remotelly, note that should be grant a rendezvous connection before trying to publish the new Group remotelly.
Returns:
A new PeerGroup.

createGroupFromLocalCache

public static net.jxta.peergroup.PeerGroup createGroupFromLocalCache(net.jxta.peergroup.PeerGroup parentGroup,
                                                                     java.lang.String peerGroupName,
                                                                     boolean autoRdv,
                                                                     int rendezVousPeriod,
                                                                     net.jxta.rendezvous.RendezvousListener rendezvousListener,
                                                                     boolean publish)
This method is used to create a PeerGroup whose name is peerGroupName from the local peer's cache..

Parameters:
parentGroup - The parent PeerGroup from wich the local cache PeerGroup must be instantiated.
peerGroupName - The Peer Group's name to be instantiated from the local peer's cache.
autoRdv - States if an auto rendezvous must be setted for the group to be created.
rendezVousPeriod - The auto rendezvous period for the new group's rendezvous service.
rendezvousListener - A rendezvous listener for the new peer group.
publish - States if the created new group must be published locally and remotelly, note that should be grant a rendezvous connection before trying to publish the new Group remotelly.
Returns:
A new PeerGroup whose name is peerGroupName from the local cache, null if the local cache doesn't contains such PeerGroup.


Copyright © 2006 SF.net. All Rights Reserved.