|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ic.doc.automed.p2p.AppToolKit
public class AppToolKit
Nested Class Summary | |
---|---|
static class |
AppToolKit.NodeConfig
Inner class to define a server configuration |
Field Summary | |
---|---|
static java.lang.String |
AUTOMED_USER_DIR
|
static java.lang.String |
CFG_FILE_EXT
|
static java.lang.String |
DS_REPS_CFG_FILE_PREFIX
|
static java.lang.String |
PEER_REPS_CFG_FILE_PREFIX
|
Constructor Summary | |
---|---|
AppToolKit()
Creates a new instance of AppToolKit |
Method Summary | |
---|---|
static java.util.Properties |
getCommProperties(java.lang.String protocol)
Get communication properties for a specific protocol |
static java.lang.String |
getCommProtocol()
Get communication protocol attributes |
static AppToolKit.NodeConfig |
getConfig(java.lang.String cfgFile)
|
static AppToolKit.NodeConfig |
getConfig(java.lang.String cfgFile,
boolean setActive)
Return the P2PDirectory config |
static java.lang.String |
getDomain()
Return the P2PDirectory config. |
int |
getHelloProtocolChannel()
|
static int |
getIntProperty(java.lang.String propName,
java.lang.String defaultValue)
|
static int |
getKeepAliveTime()
|
static java.lang.String |
getLogServerAddress()
|
static int |
getLogServerPort()
|
static int |
getPeerDaemonPort()
|
static java.util.Properties |
getProperties()
|
static java.lang.String |
getProperty(java.lang.String prop,
java.lang.String defValue)
|
static java.lang.String |
getRegistryAddress()
|
static int |
getRegistryPort()
|
static java.lang.String |
getServerAddress()
|
static java.lang.String |
getServerAddress(java.lang.String protocol)
|
static int |
getServerPort()
|
static int |
getServerPort(java.lang.String protocol)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String AUTOMED_USER_DIR
public static final java.lang.String PEER_REPS_CFG_FILE_PREFIX
public static final java.lang.String DS_REPS_CFG_FILE_PREFIX
public static final java.lang.String CFG_FILE_EXT
Constructor Detail |
---|
public AppToolKit()
Method Detail |
---|
public static AppToolKit.NodeConfig getConfig(java.lang.String cfgFile) throws AutoMedException
AutoMedException
public static AppToolKit.NodeConfig getConfig(java.lang.String cfgFile, boolean setActive) throws AutoMedException
cfgFile
- location of the config file to readsetActive
- whether to use this file as the active configuration
AutoMedException
public static java.lang.String getDomain()
P2PConstants
. getConfig(String cfgFile)
instead.
public static java.lang.String getCommProtocol() throws ApplicationPropertyException
ApplicationPropertyException
public static int getServerPort() throws ApplicationPropertyException
ApplicationPropertyException
public static int getServerPort(java.lang.String protocol) throws ApplicationPropertyException
ApplicationPropertyException
public static java.lang.String getServerAddress() throws ApplicationPropertyException
ApplicationPropertyException
public static java.lang.String getLogServerAddress() throws ApplicationPropertyException
ApplicationPropertyException
public static int getLogServerPort() throws ApplicationPropertyException
ApplicationPropertyException
public static java.lang.String getServerAddress(java.lang.String protocol) throws ApplicationPropertyException
ApplicationPropertyException
public static int getPeerDaemonPort() throws ApplicationPropertyException
ApplicationPropertyException
public int getHelloProtocolChannel()
public static java.util.Properties getCommProperties(java.lang.String protocol) throws ApplicationPropertyException
ApplicationPropertyException
public static java.lang.String getRegistryAddress() throws ApplicationPropertyException
ApplicationPropertyException
public static int getRegistryPort() throws ApplicationPropertyException
ApplicationPropertyException
public static int getKeepAliveTime() throws ApplicationPropertyException
ApplicationPropertyException
public static java.util.Properties getProperties() throws ApplicationPropertyException
ApplicationPropertyException
public static java.lang.String getProperty(java.lang.String prop, java.lang.String defValue) throws ApplicationPropertyException
ApplicationPropertyException
public static int getIntProperty(java.lang.String propName, java.lang.String defaultValue) throws ApplicationPropertyException
ApplicationPropertyException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |