org.objectweb.proactive.p2p.service
Class StartP2PService

java.lang.Object
  extended byorg.objectweb.proactive.p2p.service.StartP2PService
All Implemented Interfaces:
P2PConstants

public class StartP2PService
extends java.lang.Object
implements P2PConstants

Author:
Alexandre di Costanzo Created on Jan 4, 2005

Field Summary
 
Fields inherited from interface org.objectweb.proactive.p2p.service.util.P2PConstants
MAX_NODE, P2P_NODE_NAME, PROPERPY_XML_PATH, PROPERTY_ACQUISITION, PROPERTY_BOOKING_MAX, PROPERTY_BOOKING_NODES, PROPERTY_EXPLORING_MSG, PROPERTY_LOOKUP_FREQ, PROPERTY_MSG_MEMORY, PROPERTY_MULTI_PROC_NODES, PROPERTY_NOA, PROPERTY_NODES_ACQUISITION_T0, PROPERTY_PORT, PROPERTY_TTL, PROPERTY_TTU, SHARED_NODE_NAME, VN_NAME
 
Constructor Summary
StartP2PService()
          Construct a new StartP2PService .
StartP2PService(java.lang.String peerListFile)
          Construct a new StartP2PService with a list of peers for first contact.
StartP2PService(java.util.Vector peers)
          Construct a new StartP2PService with a list of peers for first contact.
 
Method Summary
 P2PService getP2PService()
           
static void main(java.lang.String[] args)
          Usage: java org.objectweb.proactive.p2p.service.StartP2PService [-acq acquisitionMethod] [-port portNumber] [-s Server ...]
 void start()
          Start a new active ProActive P2P service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StartP2PService

public StartP2PService()

Construct a new StartP2PService .

Acquisition method and port number for the ProActive Runtime are specified by ProActive Java system properties:


StartP2PService

public StartP2PService(java.lang.String peerListFile)

Construct a new StartP2PService with a list of peers for first contact.

Acquisition method and port number for the ProActive Runtime are specified by ProActive Java system properties:

Parameters:
peerListFile - a file with a list of peers.

StartP2PService

public StartP2PService(java.util.Vector peers)

Construct a new StartP2PService with a list of peers for first contact.

Acquisition method and port number for the ProActive Runtime are specified by ProActive Java system properties:

Parameters:
peers - list of peers.
Method Detail

main

public static void main(java.lang.String[] args)
Usage: java org.objectweb.proactive.p2p.service.StartP2PService [-acq acquisitionMethod] [-port portNumber] [-s Server ...] [-f ServerListFile]

Parameters:
args - acquisitionMethod portNumber Servers List File

start

public void start()
           throws ProActiveException

Start a new active ProActive P2P service.

Warning: it's not a thread.

Throws:
ProActiveException

getP2PService

public P2PService getP2PService()
Returns:
the active P2P service if started else null.


Copyright ? April 2005 INRIA All Rights Reserved.