JXTA

net.jxta.instantp2p.desktop
Class InstantP2P

java.lang.Object
  |
  +--net.jxta.instantp2p.desktop.InstantP2P

public class InstantP2P
extends java.lang.Object
implements net.jxta.platform.Application


Field Summary
static WorkerThread worker
          The Thread that executes lower priority work - this is done so the GUI can update during that time.
 
Constructor Summary
InstantP2P()
           
 
Method Summary
 net.jxta.protocol.PeerGroupAdvertisement getAdvertisement()
           
static OptionDialog getDialog()
           
static java.awt.Frame getFrame()
           
static java.lang.String getPeerName()
           
static WorkerThread getWorkerThread()
          Returns a WorkerThread that can be used to execute potentially blocking calls.
 void init(net.jxta.peergroup.PeerGroup group, net.jxta.document.Advertisement adv)
           
 int startApp(java.lang.String[] str)
           
 void stopApp()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

worker

public static WorkerThread worker
The Thread that executes lower priority work - this is done so the GUI can update during that time.
Constructor Detail

InstantP2P

public InstantP2P()
Method Detail

init

public void init(net.jxta.peergroup.PeerGroup group,
                 net.jxta.document.Advertisement adv)
          throws net.jxta.exception.PeerGroupException
Specified by:
init in interface net.jxta.platform.Application

startApp

public int startApp(java.lang.String[] str)
Specified by:
startApp in interface net.jxta.platform.Application

stopApp

public void stopApp()
Specified by:
stopApp in interface net.jxta.platform.Application

getAdvertisement

public net.jxta.protocol.PeerGroupAdvertisement getAdvertisement()

getPeerName

public static java.lang.String getPeerName()

getDialog

public static OptionDialog getDialog()

getWorkerThread

public static WorkerThread getWorkerThread()
Returns a WorkerThread that can be used to execute potentially blocking calls.

getFrame

public static java.awt.Frame getFrame()

JXTA