Project JXTA

net.jxta.impl.peergroup
Class StartNetPeerGroup

java.lang.Object
  extended bynet.jxta.impl.peergroup.StartNetPeerGroup
All Implemented Interfaces:
Application, Module

public class StartNetPeerGroup
extends Object
implements Application

This code is responsible for configuring and starting the NetPeerGroup.

Right now it starts an arbitrary peergroup; almost identical to platform. (It actually borrows its adv).


Field Summary
(package private)  ID assignedID
           
(package private)  Advertisement impl
           
(package private)  PeerGroup pg
           
 
Fields inherited from interface net.jxta.platform.Module
START_AGAIN_PROGRESS, START_AGAIN_STALLED, START_OK
 
Constructor Summary
StartNetPeerGroup()
           
 
Method Summary
 void init(PeerGroup pg, ID assignedID, Advertisement impl)
          
 int startApp(String[] arg)
          
 void stopApp()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pg

PeerGroup pg

assignedID

ID assignedID

impl

Advertisement impl
Constructor Detail

StartNetPeerGroup

public StartNetPeerGroup()
Method Detail

stopApp

public void stopApp()

Specified by:
stopApp in interface Module

init

public void init(PeerGroup pg,
                 ID assignedID,
                 Advertisement impl)
          throws PeerGroupException

Specified by:
init in interface Module
Throws:
PeerGroupException

startApp

public int startApp(String[] arg)

Specified by:
startApp in interface Module

JXTA J2SE