p2pMapReduce.test.networkModule
Class NetworkModulePrototipe

java.lang.Object
  extended by p2pMapReduce.impl.networkModule.jxta.JxtaNetworkModule
      extended by p2pMapReduce.test.networkModule.NetworkModulePrototipe
All Implemented Interfaces:
java.util.EventListener, net.jxta.rendezvous.RendezvousListener, NetworkModuleIF

public class NetworkModulePrototipe
extends JxtaNetworkModule


Field Summary
 
Fields inherited from class p2pMapReduce.impl.networkModule.jxta.JxtaNetworkModule
ADV_EXPIRATION_TIME, ADV_EXPIRATION_TIME_ATTR, ADV_LIFE_TIME, ADV_LIFE_TIME_ATTR, ADV_LIFETIME_ATTR, DEFAULT_PEER_NAME, DIRECT_FIND_WAITING_TIME, DIRECT_FIND_WAITING_TIME_ATTR, GROUP_FIND_WAITING_TIME, GROUP_FIND_WAITING_TIME_ATTR, GROUP_ID, IS_GATEWAY_ATTR, JXTA_HOME_ATTR, JXTA_PEER_MODE_ATTR, P2P_MAPREDUCE_GROUP_NAME, PERIODIC_FIND_TIMEOUT, PERIODIC_FIND_TIMEOUT_ATTR, PERIODIC_PUBLISH_TIMEOUT, PERIODIC_PUBLISH_TIMEOUT_ATTR, RDV_AUTO_START, RDV_SEEDS_ATTR, RDV_WAITING_TIME, RDV_WAITING_TIME_ATTR
 
Constructor Summary
NetworkModulePrototipe(NetworkConfiguration networkConfiguration)
           
 
Method Summary
 NodeInfo getNodeInfo()
          Return the same instance of NodeInfo returned by the joinNetwork() method.
 net.jxta.peergroup.PeerGroup getP2pMapReduceGroup()
           
 NodeInfo joinNetwork()
          Call this method once to enter the P2PMapReduce network.
 
Methods inherited from class p2pMapReduce.impl.networkModule.jxta.JxtaNetworkModule
addEventListener, becomeMaster, becomeSlave, connectedOrRDV, connectionClosed, find, getActiveConnection, getAllAvailableNodes, getAllAvailableNodesFromLocalCache, getAllAvailableNodesFromLocalCache, getAllMasters, getAllNodes, getAllNodesFromLocalCache, getAllSlaves, getAvailableNodeFromLocalCache, getConnection, getConnection, getFtpManager, getNetPeerGroup, getNetworkManager, getNodeModule, getNumMasters, getNumNodes, getNumSlaves, getOtherMasters, getOtherSlaves, isAlive, nodeFailure, publish, putConnection, removeConnection, rendezvousEvent, send, send, setNodeModule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkModulePrototipe

public NetworkModulePrototipe(NetworkConfiguration networkConfiguration)
Method Detail

joinNetwork

public NodeInfo joinNetwork()
Description copied from interface: NetworkModuleIF
Call this method once to enter the P2PMapReduce network. The method returns an instance of NodeInfo containing all the information about the node associated to this network module. A reference to this NodeInfo instance will be maintained from this module and can be retrieved in the future by calling NetworkModuleIF.getNodeInfo(). All the updates to the node information will affect this NodeInfo instance. It also: - publishes this NodeInfo by calling publish() - make this NetworkModule capable to receive remote connection from other nodes. - starts an FTP server

Specified by:
joinNetwork in interface NetworkModuleIF
Overrides:
joinNetwork in class JxtaNetworkModule
Returns:

getNodeInfo

public NodeInfo getNodeInfo()
Description copied from interface: NetworkModuleIF
Return the same instance of NodeInfo returned by the joinNetwork() method.

Specified by:
getNodeInfo in interface NetworkModuleIF
Overrides:
getNodeInfo in class JxtaNetworkModule
Returns:
the same instance of NodeInfo returned by joinNetwork() or null if joinNetwork() has never be executed with success.

getP2pMapReduceGroup

public net.jxta.peergroup.PeerGroup getP2pMapReduceGroup()
Overrides:
getP2pMapReduceGroup in class JxtaNetworkModule