org.objectweb.proactive.p2p.service
Class P2PFirstContact

java.lang.Object
  extended by org.objectweb.proactive.p2p.service.P2PFirstContact
All Implemented Interfaces:
java.io.Serializable, Active, P2PConstants, ProActiveInternalObject, RunActive

public class P2PFirstContact
extends java.lang.Object
implements java.io.Serializable, RunActive, P2PConstants, ProActiveInternalObject

Activity to contact a first group of peers in parallel of the P2PService activity.

Author:
Alexandre di Costanzo Created on Jan 4, 2005
See Also:
Serialized Form

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
P2PFirstContact()
          The empty constructor for ProActive.newActive().
P2PFirstContact(java.util.Vector peers, P2PAcquaintanceManager acquaintances, P2PService local)
          Construct a new P2PFirstContact.
 
Method Summary
 void runActivity(Body body)
          Sequancialy try to contact all peer and add them in the group of acquaintances.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

P2PFirstContact

public P2PFirstContact()
The empty constructor for ProActive.newActive().


P2PFirstContact

public P2PFirstContact(java.util.Vector peers,
                       P2PAcquaintanceManager acquaintances,
                       P2PService local)
Construct a new P2PFirstContact.

Parameters:
peers - list of peers.
acquaintances - ProActive group of acquaintances.
local - local P2P service.
Method Detail

runActivity

public void runActivity(Body body)
Sequancialy try to contact all peer and add them in the group of acquaintances.

Specified by:
runActivity in interface RunActive
Parameters:
body - the body of the active object being started
See Also:
RunActive.runActivity(org.objectweb.proactive.Body)


Copyright 2001-2007 INRIA All Rights Reserved.