org.eodisp.remote.jeri.jxta
Class JxtaNetwork

java.lang.Object
  extended by org.eodisp.remote.jeri.jxta.JxtaNetwork

public class JxtaNetwork
extends java.lang.Object

Static configuration of the JXTA transport layer for Jeri. Before the JXTA transport can work this class' registerJeriPeerGroup(PeerGroup) must be invoked to register the JXTA peer group that shall be used to do the communication upon.

Version:
$Id:$
Author:
ibirrer

Constructor Summary
JxtaNetwork()
           
 
Method Summary
(package private) static net.jxta.peergroup.PeerGroup getJeriPeerGroup()
          Returns the peer group that has been registered with the registerJeriPeerGroup(PeerGroup) method.
(package private) static net.jxta.protocol.PipeAdvertisement getJeriPipeAdvertisement()
          Returns the pipe advertisement of the Jeri pipe.
static void registerJeriPeerGroup(net.jxta.peergroup.PeerGroup peerGroup)
          Registers the JXTA peer group that is used in the JXTA transport layer for Jeri.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JxtaNetwork

public JxtaNetwork()
Method Detail

registerJeriPeerGroup

public static void registerJeriPeerGroup(net.jxta.peergroup.PeerGroup peerGroup)
Registers the JXTA peer group that is used in the JXTA transport layer for Jeri.

Parameters:
peerGroup - the peer group that is used for communication on the JXTA layer.
Throws:
java.lang.AssertionError - if the peer group has been registered already

getJeriPeerGroup

static net.jxta.peergroup.PeerGroup getJeriPeerGroup()
Returns the peer group that has been registered with the registerJeriPeerGroup(PeerGroup) method.

Returns:
the peer group that has been registered with the registerJeriPeerGroup(PeerGroup) method.

getJeriPipeAdvertisement

static net.jxta.protocol.PipeAdvertisement getJeriPipeAdvertisement()
Returns the pipe advertisement of the Jeri pipe.

Returns:
the pipe advertisement of the Jeri pipe.