uk.ac.ic.doc.automed.p2p.son
Class PGridNetworkHelper

java.lang.Object
  extended by uk.ac.ic.doc.automed.p2p.son.PGridNetworkHelper

public class PGridNetworkHelper
extends java.lang.Object

Version:
1.0 Department of Computing, Imperial College
Author:
Duc M Le dmle@doc.ic.ac.uk

Constructor Summary
protected PGridNetworkHelper()
           
 
Method Summary
static void startBootStrapHostInstance(int pid, int localPort)
           
static SMRControllerPGrid startQueryPeerInstance(int pid, int localPort)
           
static void startVirtualHost(int pid, int localPort)
           
static void startVirtualPeers(int baseid, int peerNumbers, int basePort)
          Start k number of P-Grid peers on the localhost
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PGridNetworkHelper

protected PGridNetworkHelper()
Method Detail

startBootStrapHostInstance

public static void startBootStrapHostInstance(int pid,
                                              int localPort)

startVirtualHost

public static void startVirtualHost(int pid,
                                    int localPort)

startQueryPeerInstance

public static SMRControllerPGrid startQueryPeerInstance(int pid,
                                                        int localPort)

startVirtualPeers

public static void startVirtualPeers(int baseid,
                                     int peerNumbers,
                                     int basePort)
Start k number of P-Grid peers on the localhost

Parameters:
baseid - base id from which to number the peers
peerNumbers - the number of peers to start
basePort - the base port from which to number the local ports of the virtual peers