|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines a JXTA peer group application. All JXTA applications need to implement this interface. The Jxta platform is initializing applications via the init method.
Applications are passed the peer group they are created within. From the peergroup object, applications can acccess all the peer group services. Each application will be passed the peergroup they are started in. The initial root peer group is the NetPeerGroup.
Each peer group defines a default application that is started as part the peer group initialization process. The Default application can be a the JXTA Shell if interactive access to the peer group is given or any other JXTA Applications.
PeerGroup
,
PeerGroupAdvertisement
Method Summary | |
void |
init(PeerGroup group,
Advertisement adv)
Initialize the application passing it ist peer group handle. |
int |
startApp(java.lang.String[] arg)
Some applications will wait for start() being called, before proceeding beyond a certain point. |
void |
stopApp()
One can ask an application to stop. |
Method Detail |
public void init(PeerGroup group, Advertisement adv) throws PeerGroupException
group
- PeerGroup this application is started frompublic int startApp(java.lang.String[] arg)
public void stopApp()
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |