public class NAFConfig extends Object
Modifier and Type | Class and Description |
---|---|
static class |
NAFConfig.Defs |
Modifier and Type | Field and Description |
---|---|
int |
baseport |
static String |
DIRTOKEN_CONF |
static String |
DIRTOKEN_LOGS |
static String |
DIRTOKEN_ROOT |
static String |
DIRTOKEN_TMP |
static String |
DIRTOKEN_VAR |
String |
path_conf |
String |
path_logs |
String |
path_root |
String |
path_tmp |
String |
path_var |
static String |
PFX_CLASSPATH |
static int |
RSVPORT_ANON |
static int |
RSVPORT_NAFMAN |
static String |
SYSPROP_BASEPORT |
static String |
SYSPROP_DIRPATH_CONF |
static String |
SYSPROP_DIRPATH_LOGS |
static String |
SYSPROP_DIRPATH_ROOT |
static String |
SYSPROP_DIRPATH_TMP |
static String |
SYSPROP_DIRPATH_VAR |
int |
threadpoolSize |
Modifier and Type | Method and Description |
---|---|
void |
announce(Logger log) |
int |
assignPort(int id) |
static Object |
createEntity(XmlConfig cfg,
Class<?> dflt_clss,
Class<?> basetype,
boolean hasName,
Class<?>[] ctorSig,
Object[] ctorArgs) |
XmlConfig |
getDispatcher(String name) |
XmlConfig[] |
getDispatchers() |
XmlConfig |
getDNS() |
XmlConfig |
getNafman() |
String |
getPath(String path,
Class<?> clss) |
String |
getPath(XmlConfig cfg,
String xpath,
String propname,
boolean mdty,
String dflt,
Class<?> clss) |
int |
getPort(int id) |
URL |
getURL(XmlConfig cfg,
String xpath,
String propname,
boolean mdty,
String dflt,
Class<?> clss) |
boolean |
isAnonymousBasePort() |
static NAFConfig |
load(NAFConfig.Defs defs) |
static NAFConfig |
load(String cfgpath) |
static NAFConfig |
load(String cfgpath,
NAFConfig.Defs defaults) |
static NAFConfig |
synthesise(String cfgxml) |
public static final String SYSPROP_DIRPATH_ROOT
public static final String SYSPROP_DIRPATH_CONF
public static final String SYSPROP_DIRPATH_VAR
public static final String SYSPROP_DIRPATH_TMP
public static final String SYSPROP_DIRPATH_LOGS
public static final String SYSPROP_BASEPORT
public static final String DIRTOKEN_ROOT
public static final String DIRTOKEN_CONF
public static final String DIRTOKEN_VAR
public static final String DIRTOKEN_TMP
public static final String DIRTOKEN_LOGS
public static final int RSVPORT_NAFMAN
public static final int RSVPORT_ANON
public static final String PFX_CLASSPATH
public final String path_root
public final String path_conf
public final String path_var
public final String path_logs
public final String path_tmp
public final int baseport
public final int threadpoolSize
public static NAFConfig load(String cfgpath, NAFConfig.Defs defaults) throws IOException
IOException
public static NAFConfig load(String cfgpath) throws IOException
IOException
public static NAFConfig load(NAFConfig.Defs defs) throws IOException
IOException
public static NAFConfig synthesise(String cfgxml) throws IOException
IOException
public XmlConfig[] getDispatchers()
public XmlConfig getNafman()
public XmlConfig getDNS()
public String getPath(XmlConfig cfg, String xpath, String propname, boolean mdty, String dflt, Class<?> clss) throws IOException
IOException
public String getPath(String path, Class<?> clss) throws IOException
IOException
public URL getURL(XmlConfig cfg, String xpath, String propname, boolean mdty, String dflt, Class<?> clss) throws IOException
IOException
public int assignPort(int id)
public int getPort(int id)
public boolean isAnonymousBasePort()
public void announce(Logger log)
Copyright 2010-2018 Grey Software (Yusef Badri). All Rights Reserved.