org.eodisp.remote.util
Class JxtaNetworkManager

java.lang.Object
  extended by org.eodisp.remote.util.JxtaNetworkManager

public class JxtaNetworkManager
extends java.lang.Object

Manages the JXTA Network infrastructure lifetime.

Version:
$Id:$
Author:
ibirrer

Field Summary
(package private) static org.apache.log4j.Logger logger
          Log4J logger for this class
 
Constructor Summary
JxtaNetworkManager(net.jxta.protocol.ConfigParams platformConfig, java.net.URI storeHome, java.net.URI netPeerGroupUri)
           
 
Method Summary
 net.jxta.peergroup.PeerGroup getNetPeerGroup()
          Gets the netPeerGroup object
 boolean isConnected()
           
 boolean isStarted()
           
 void start()
          Creates and starts the JXTA NetPeerGroup using a platform configuration template.
 void stop()
          Stops and dereference the NetPeerGroup
 void waitForRendeyvousConnection(long timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static org.apache.log4j.Logger logger
Log4J logger for this class

Constructor Detail

JxtaNetworkManager

public JxtaNetworkManager(net.jxta.protocol.ConfigParams platformConfig,
                          java.net.URI storeHome,
                          java.net.URI netPeerGroupUri)
Method Detail

start

public void start()
           throws net.jxta.exception.PeerGroupException
Creates and starts the JXTA NetPeerGroup using a platform configuration template. This class also registers a listener for rendezvous events

Throws:
net.jxta.exception.PeerGroupException

isStarted

public boolean isStarted()

isConnected

public boolean isConnected()

waitForRendeyvousConnection

public void waitForRendeyvousConnection(long timeout)

stop

public void stop()
Stops and dereference the NetPeerGroup


getNetPeerGroup

public net.jxta.peergroup.PeerGroup getNetPeerGroup()
Gets the netPeerGroup object

Returns:
The netPeerGroup value