org.objectweb.proactive.p2p.service
Class StartP2PService

java.lang.Object
  extended by org.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
HIDE_P2PNODE_MONITORING, MAX_NODE, P2P_NODE_NAME, PROPERPY_XML_PATH, PROPERTY_ACQUISITION, PROPERTY_EXPLORING_MSG, PROPERTY_LOOKUP_FREQ, PROPERTY_MSG_MEMORY, PROPERTY_MULTI_PROC_NODES, PROPERTY_NO_SHARING, 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
static java.util.Vector checkingPeersUrl(java.util.Vector peerList)
          Add acquisition method and port number to URL of peers.
 P2PService getP2PService()
           
static void main(java.lang.String[] args)
           
 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)

checkingPeersUrl

public static java.util.Vector checkingPeersUrl(java.util.Vector peerList)
Add acquisition method and port number to URL of peers.


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()


Copyright 2001-2007 INRIA All Rights Reserved.