Project JXTA

Uses of Class
net.jxta.peergroup.PeerGroupID

Packages that use PeerGroupID
net.jxta.codat Codats are container objects that can hold both data or code and are associated with a JXTA ID. 
net.jxta.endpoint Provides interfaces and classes used for the addressing, filtering, sending, and receiving of messages within JXTA. 
net.jxta.id IDs are used within JXTA to refer to peers, peer groups, pipes and other types of resources. 
net.jxta.meter Provides logging and monitoring facilities for debugging and auditing of messaging and service invocation within JXTA. 
net.jxta.peergroup Peer groups are formed as a collection of peers that have agreed upon a common set of services.  
net.jxta.protocol Provides inteface objects for Advertisments and protocol messages for the JXTA Core and Standard Protocols. 
 

Uses of PeerGroupID in net.jxta.codat
 

Constructors in net.jxta.codat with parameters of type PeerGroupID
Metadata(PeerGroupID groupID, CodatID about, Document document)
          Construct a new Codat with a new CodatId given a PeerGroupID and a document.
Codat(PeerGroupID groupID, ID about, Document document)
          Makes a new Codat with a new CodatId given a PeerGroupID and a document.
 

Uses of PeerGroupID in net.jxta.endpoint
 

Methods in net.jxta.endpoint with parameters of type PeerGroupID
 Messenger ThreadedMessenger.getChannelMessenger(PeerGroupID redirection, String service, String serviceParam)
           
 Messenger Messenger.getChannelMessenger(PeerGroupID redirection, String service, String serviceParam)
          If applicable, returns another messenger that will send messages to the same destination address than this one, but with the specified default service and serviceParam, possibly rewriting addresses to ensure delivery through the specified redirection.
 Messenger ChannelMessenger.getChannelMessenger(PeerGroupID redirection, String service, String serviceParam)
          If applicable, returns another messenger that will send messages to the same destination address than this one, but with the specified default service and serviceParam, possibly rewriting addresses to ensure delivery through the specified redirection. This is not generaly usefull to applications and most messengers will return null. This method is needed by the EndpointService when interacting with Messengers provided by Transport modules. If you are not implementing a Transport module, then you can ignore this method. Important: The channel so obtained is not configured to support the Messenger.sendMessage(Message, String, String, OutgoingMessageEventListener) legacy method. If use of this method is desired, ChannelMessenger.setMessageWatcher(net.jxta.endpoint.ListenerAdaptor) must be used first.

By default a channel refuses to make a channel.

 Messenger AsyncChannelMessenger.getChannelMessenger(PeerGroupID redirection, String service, String serviceParam)
          If applicable, returns another messenger that will send messages to the same destination address than this one, but with the specified default service and serviceParam, possibly rewriting addresses to ensure delivery through the specified redirection. This is not generaly usefull to applications and most messengers will return null. This method is needed by the EndpointService when interacting with Messengers provided by Transport modules. If you are not implementing a Transport module, then you can ignore this method. Important: The channel so obtained is not configured to support the Messenger.sendMessage(Message, String, String, OutgoingMessageEventListener) legacy method. If use of this method is desired, ChannelMessenger.setMessageWatcher(net.jxta.endpoint.ListenerAdaptor) must be used first.

By default a channel refuses to make a channel.

 

Constructors in net.jxta.endpoint with parameters of type PeerGroupID
ThreadedMessenger(PeerGroupID homeGroupID, EndpointAddress destination, EndpointAddress logicalDestination, int channelQueueSize)
          Create a new ThreadedMessenger.
ChannelMessenger(EndpointAddress baseAddress, PeerGroupID groupRedirection, String origService, String origServiceParam)
          Create a new ChannelMessenger
AsyncChannelMessenger(EndpointAddress baseAddress, PeerGroupID redirection, String origService, String origServiceParam, int queueSize, boolean connected)
          Create a new AsyncChannelMessenger.
 

Uses of PeerGroupID in net.jxta.id
 

Methods in net.jxta.id that return PeerGroupID
static PeerGroupID IDFactory.newPeerGroupID()
          Creates a new PeerGroupID instance.
static PeerGroupID IDFactory.newPeerGroupID(String idformat)
          Creates a new PeerGroupID instance using the specified ID Format.
static PeerGroupID IDFactory.newPeerGroupID(byte[] seed)
          Creates a new PeerGroupID instance.
static PeerGroupID IDFactory.newPeerGroupID(String idformat, byte[] seed)
          Creates a new PeerGroupID instance.
static PeerGroupID IDFactory.newPeerGroupID(PeerGroupID parent)
          Creates a new PeerGroupID instance with the specified parent group.
static PeerGroupID IDFactory.newPeerGroupID(PeerGroupID parent, byte[] seed)
          Creates a new PeerGroupID instance with the specified parent group.
 PeerGroupID IDFactory.Instantiator.newPeerGroupID()
          Creates a new PeerGroupID instance.
 PeerGroupID IDFactory.Instantiator.newPeerGroupID(byte[] seed)
          Creates a new PeerGroupID instance.
 PeerGroupID IDFactory.Instantiator.newPeerGroupID(PeerGroupID parent)
          Creates a new PeerGroupID instance with the specified parent group.
 PeerGroupID IDFactory.Instantiator.newPeerGroupID(PeerGroupID parent, byte[] seed)
          Creates a new PeerGroupID instance with the specified parent group.
 

Methods in net.jxta.id with parameters of type PeerGroupID
static CodatID IDFactory.newCodatID(PeerGroupID groupID)
          Creates a new CodatID Instance.
static CodatID IDFactory.newCodatID(PeerGroupID groupID, byte[] seed)
          Creates a new CodatID instance.
static CodatID IDFactory.newCodatID(PeerGroupID groupID, InputStream in)
          Creates a new CodatID instance.
static CodatID IDFactory.newCodatID(PeerGroupID groupID, byte[] seed, InputStream in)
          Creates a new CodatID instance.
static PeerID IDFactory.newPeerID(PeerGroupID groupID)
          Creates a new PeerID instance.
static PeerID IDFactory.newPeerID(PeerGroupID groupID, byte[] seed)
          Creates a new PeerID instance.
static PeerGroupID IDFactory.newPeerGroupID(PeerGroupID parent)
          Creates a new PeerGroupID instance with the specified parent group.
static PeerGroupID IDFactory.newPeerGroupID(PeerGroupID parent, byte[] seed)
          Creates a new PeerGroupID instance with the specified parent group.
static PipeID IDFactory.newPipeID(PeerGroupID groupID)
          Creates a new PipeID instance.
static PipeID IDFactory.newPipeID(PeerGroupID groupID, byte[] seed)
          Creates a new PipeID instance.
 CodatID IDFactory.Instantiator.newCodatID(PeerGroupID groupID)
          Creates a new CodatID Instance.
 CodatID IDFactory.Instantiator.newCodatID(PeerGroupID groupID, byte[] seed)
          Creates a new CodatID instance.
 CodatID IDFactory.Instantiator.newCodatID(PeerGroupID groupID, InputStream in)
          Creates a new CodatID instance.
 CodatID IDFactory.Instantiator.newCodatID(PeerGroupID groupID, byte[] seed, InputStream in)
          Creates a new CodatID instance.
 PeerID IDFactory.Instantiator.newPeerID(PeerGroupID groupID)
          Creates a new PeerID instance.
 PeerID IDFactory.Instantiator.newPeerID(PeerGroupID groupID, byte[] seed)
          Creates a new PeerID instance.
 PeerGroupID IDFactory.Instantiator.newPeerGroupID(PeerGroupID parent)
          Creates a new PeerGroupID instance with the specified parent group.
 PeerGroupID IDFactory.Instantiator.newPeerGroupID(PeerGroupID parent, byte[] seed)
          Creates a new PeerGroupID instance with the specified parent group.
 PipeID IDFactory.Instantiator.newPipeID(PeerGroupID groupID)
          Creates a new PipeID instance.
 PipeID IDFactory.Instantiator.newPipeID(PeerGroupID groupID, byte[] seed)
          Creates a new PipeID instance.
 

Uses of PeerGroupID in net.jxta.meter
 

Methods in net.jxta.meter that return PeerGroupID
 PeerGroupID MonitorEvent.getPeerGroupID()
          PeerGroup of reported event
 

Constructors in net.jxta.meter with parameters of type PeerGroupID
MonitorEvent(PeerGroupID peerGroupID, MonitorReport monitorReport)
           
 

Uses of PeerGroupID in net.jxta.peergroup
 

Fields in net.jxta.peergroup declared as PeerGroupID
static PeerGroupID PeerGroupID.worldPeerGroupID
          The well known Unique Identifier of the world peergroup.
static PeerGroupID PeerGroupID.defaultNetPeerGroupID
          The well known Unique Identifier of the net peergroup.
 

Methods in net.jxta.peergroup that return PeerGroupID
abstract  PeerGroupID PeerGroupID.getParentPeerGroupID()
          Returns the parent peer group id of this peer group id, if any.
 PeerGroupID PeerGroup.getPeerGroupID()
          Return the Peer Group ID of this Peer Group.
 PeerGroupID LightWeightPeerGroup.getPeerGroupID()
          Return the Peer Group ID of this Peer Group.
 

Methods in net.jxta.peergroup with parameters of type PeerGroupID
static void PeerGroupFactory.setNetPGID(PeerGroupID id)
          Static Method to initialize the net peer group ID.
 PeerGroup PeerGroup.newGroup(PeerGroupID gid, Advertisement impl, String name, String description)
          Instantiates a new group from its elementary pieces and publishes the corresponding PeerGroupAdvertisement.
 PeerGroup PeerGroup.newGroup(PeerGroupID gid)
          Instantiate a group from its Peer Group ID only.
 boolean PeerGroup.GlobalRegistry.registerInstance(PeerGroupID gid, PeerGroup pg)
          Registers a new instance.
 boolean PeerGroup.GlobalRegistry.unRegisterInstance(PeerGroupID gid, PeerGroup pg)
          Unregisters a group instance (normaly because the group is being stopped.
 PeerGroup PeerGroup.GlobalRegistry.lookupInstance(PeerGroupID gid)
          Returns a running instance of the peergroup with given ID if any exists.
 PeerGroup LightWeightPeerGroup.newGroup(PeerGroupID gid, Advertisement impl, String name, String description)
          Instantiates a new group from its elementary pieces and publishes the corresponding PeerGroupAdvertisement. The pieces are: the groups implementation adv, the group id, the name and description.

The typical use of this routine is creating a whole new group based on a newly created and possibly unpublished implementation adv.

This is a convenience method equivalent to either:

 newGrp = thisGroup.loadModule(gid, impl);
 newGrp.publishGroup(name, description);
 

or, but only if the implementation advertisement has been published:

 newPGAdv = AdvertisementFactory.newAdvertisement(
                 PeerGroupAdvertisement.getAdvertisementType());
 newPGAdv.setPeerGroupID(gid);
 newPGAdv.setModuleSpecID(impl.getModuleSpecID());
 newPGAdv.setName(name);
 newPGAdv.setDescription(description);
 newGrp = thisGroup.newGroup(newPGAdv);
 
 PeerGroup LightWeightPeerGroup.newGroup(PeerGroupID gid)
          Instantiate a group from its Peer Group ID only. Use this when using a group that has already been published and discovered.

The typical uses of this routine are therefore:

  • Instantiating a peer group which is assumed to exist and whose Peer Group ID is already known.
  • Creating a new peer group instance using an already published Group advertisement, typically published for that purpose. All other referenced advertisements must also be available.

To create a group from a known implAdv, just use PeerGroup.loadModule(ID,Advertisement) or even:

grp = new GroupSubClass(); grp.init(parentGroup, gid, impladv);

then, REMEMBER TO PUBLISH THE GROUP IF IT IS ALL NEW.

 

Uses of PeerGroupID in net.jxta.protocol
 

Methods in net.jxta.protocol that return PeerGroupID
 PeerGroupID RdvAdvertisement.getGroupID()
          get the group id
 PeerGroupID PeerGroupAdvertisement.getPeerGroupID()
          Returns the id of the group.
 PeerGroupID PeerAdvertisement.getPeerGroupID()
          Returns the id of the peergroup this peer advertisement is for.
 

Methods in net.jxta.protocol with parameters of type PeerGroupID
 void RdvAdvertisement.setGroupID(PeerGroupID id)
          set the group Id
 void PeerGroupAdvertisement.setPeerGroupID(PeerGroupID gid)
          Sets the id of the group.
 void PeerAdvertisement.setPeerGroupID(PeerGroupID gid)
          Returns the id of the peergroup this peer advertisement is for.
 


JXTA J2SE