uk.ac.ic.doc.automed.p2p.son
Class ChordNetworkHelper
java.lang.Object
uk.ac.ic.doc.automed.p2p.son.ChordNetworkHelper
public class ChordNetworkHelper
- extends java.lang.Object
- Version:
- 1.0
Department of Computing, Imperial College
- Author:
- Duc M Le dmle@doc.ic.ac.uk
Method Summary |
static SMRController |
startBootStrapHostInstance(java.lang.String selfHost,
int selfPort,
java.lang.Object pid,
java.util.Properties nwkProps)
|
static SMRController |
startHostInstance(java.lang.String selfHost,
int selfPort,
java.lang.Object pid,
java.lang.String initialContact,
java.util.Properties nwkProps)
|
static SMRController |
startQueryPeerInstance(java.lang.String selfHost,
int selfPort,
java.lang.Object pid,
java.lang.String initialContact,
java.util.Properties nwkProps)
|
static void |
startVirtualPeers(java.lang.String[] selfHosts,
int[] selfPorts,
java.lang.Object[] pids,
java.lang.String initialContact,
java.util.Properties nwkProps)
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 |
ChordNetworkHelper
protected ChordNetworkHelper()
startBootStrapHostInstance
public static SMRController startBootStrapHostInstance(java.lang.String selfHost,
int selfPort,
java.lang.Object pid,
java.util.Properties nwkProps)
throws SMRException
- Throws:
SMRException
startHostInstance
public static SMRController startHostInstance(java.lang.String selfHost,
int selfPort,
java.lang.Object pid,
java.lang.String initialContact,
java.util.Properties nwkProps)
throws SMRException
- Throws:
SMRException
startQueryPeerInstance
public static SMRController startQueryPeerInstance(java.lang.String selfHost,
int selfPort,
java.lang.Object pid,
java.lang.String initialContact,
java.util.Properties nwkProps)
throws SMRException
- Throws:
SMRException
startVirtualPeers
public static void startVirtualPeers(java.lang.String[] selfHosts,
int[] selfPorts,
java.lang.Object[] pids,
java.lang.String initialContact,
java.util.Properties nwkProps)
throws SMRException
- Start k number of P-Grid peers on the localhost
- Parameters:
baseid
- base id from which to number the peerspeerNumbers
- the number of peers to startbasePort
- the base port from which to number the
local ports of the virtual peers
- Throws:
SMRException