easypastry.core
Class PastryKernel

java.lang.Object
  extended by easypastry.core.PastryKernel

public class PastryKernel
extends java.lang.Object


Field Summary
protected static CastHandler cast
           
protected static PastryConnection conn
           
protected static java.lang.String dhtName
           
protected static java.util.Properties dhtProps
           
protected static java.lang.String hostname
           
protected static rice.p2p.commonapi.Node node
           
 
Constructor Summary
PastryKernel()
           
 
Method Summary
static void close()
           
static CastHandler getCastHandler()
           
static DHTHandler getDHTHandler(rice.p2p.commonapi.Node node, java.lang.String context)
           
static DHTHandler getDHTHandler(java.lang.String context)
           
static DHTHandler getDHTHandler(java.lang.String context, java.lang.Object mergeClient)
           
static DHTHandler getDHTHandler(java.lang.String dhtPropsName, java.lang.String context)
           
static DHTHandler getDHTHandler(java.lang.String dhtPropsName, java.lang.String context, java.lang.Object mergeClient)
           
static java.lang.String getHostName()
           
static rice.p2p.commonapi.NodeHandle getNodeHandle()
           
static PastryConnection getPastryConnection()
           
static void init(java.lang.String configPath)
           
static void init(java.lang.String bhost, int bport, java.lang.String configPath)
           
static void init(java.lang.String bhost, java.lang.String configPath)
           
static java.util.Properties loadProps(java.lang.String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hostname

protected static java.lang.String hostname

conn

protected static PastryConnection conn

node

protected static rice.p2p.commonapi.Node node

dhtName

protected static java.lang.String dhtName

dhtProps

protected static java.util.Properties dhtProps

cast

protected static CastHandler cast
Constructor Detail

PastryKernel

public PastryKernel()
Method Detail

init

public static void init(java.lang.String configPath)
                 throws java.lang.Exception
Throws:
java.lang.Exception

init

public static void init(java.lang.String bhost,
                        java.lang.String configPath)
                 throws java.lang.Exception
Throws:
java.lang.Exception

init

public static void init(java.lang.String bhost,
                        int bport,
                        java.lang.String configPath)
                 throws java.lang.Exception
Throws:
java.lang.Exception

loadProps

public static java.util.Properties loadProps(java.lang.String path)
                                      throws java.io.IOException
Throws:
java.io.IOException

getHostName

public static java.lang.String getHostName()

getDHTHandler

public static DHTHandler getDHTHandler(java.lang.String dhtPropsName,
                                       java.lang.String context)
                                throws DHTException,
                                       java.io.IOException
Throws:
DHTException
java.io.IOException

getDHTHandler

public static DHTHandler getDHTHandler(rice.p2p.commonapi.Node node,
                                       java.lang.String context)
                                throws DHTException
Throws:
DHTException

getDHTHandler

public static DHTHandler getDHTHandler(java.lang.String context)
                                throws DHTException
Throws:
DHTException

getDHTHandler

public static DHTHandler getDHTHandler(java.lang.String dhtPropsName,
                                       java.lang.String context,
                                       java.lang.Object mergeClient)
                                throws DHTException,
                                       java.io.IOException
Throws:
DHTException
java.io.IOException

getDHTHandler

public static DHTHandler getDHTHandler(java.lang.String context,
                                       java.lang.Object mergeClient)
                                throws DHTException
Throws:
DHTException

getPastryConnection

public static PastryConnection getPastryConnection()

getCastHandler

public static CastHandler getCastHandler()

getNodeHandle

public static rice.p2p.commonapi.NodeHandle getNodeHandle()

close

public static void close()