public class A3CML extends Object
Modifier and Type | Field and Description |
---|---|
(package private) static String |
ATT_ARGS
Syntaxic name for args attribute
|
(package private) static String |
ATT_CLASS
Syntaxic name for class attribute
|
(package private) static String |
ATT_DOMAIN
Syntaxic name for domain attribute
|
(package private) static String |
ATT_HOSTNAME
Syntaxic name for hostname attribute
|
(package private) static String |
ATT_ID
Syntaxic name for id attribute
|
(package private) static String |
ATT_NAME
Syntaxic name for name attribute
|
(package private) static String |
ATT_NETWORK
Syntaxic name for network attribute
|
(package private) static String |
ATT_PORT
Syntaxic name for port attribute
|
(package private) static String |
ATT_SERVER
Syntaxic name for server attribute
|
(package private) static String |
ATT_SID
Syntaxic name for sid attribute
|
(package private) static String |
ATT_VALUE
Syntaxic name for value attribute
|
(package private) static String |
ELT_CONFIG
Syntaxic name for config element
|
(package private) static String |
ELT_DOMAIN
Syntaxic name for domain element
|
(package private) static String |
ELT_JVM_ARGS
Syntaxic for server jvm arguments
|
(package private) static String |
ELT_NAT
Syntaxic name for nat element
|
(package private) static String |
ELT_NETWORK
Syntaxic name for network element
|
(package private) static String |
ELT_PROPERTY
Syntaxic name for property element
|
(package private) static String |
ELT_SERVER
Syntaxic name for server element
|
(package private) static String |
ELT_SERVICE
Syntaxic name for service element
|
(package private) static String |
TAB |
(package private) static String |
TAB2 |
Constructor and Description |
---|
A3CML() |
Modifier and Type | Method and Description |
---|---|
static A3CMLConfig |
getConfig(Reader reader)
Gets configuration of agent servers from a XML file.
|
static A3CMLConfig |
getXMLConfig()
Gets an agent server configuration from a XML file.
|
static A3CMLConfig |
getXMLConfig(String path) |
static A3CMLConfig |
getXMLConfig(String cfgDir,
String cfgFileName)
Gets an agent server configuration from a XML file.
|
static void |
toXML(A3CMLConfig config,
PrintWriter out) |
static void |
toXML(A3CMLConfig config,
String cfgDir,
String xmlFileName)
write a configuration in an A3CML file.
|
private static void |
writeToXMLServer(Object obj,
PrintWriter out) |
static final String ELT_CONFIG
static final String ELT_DOMAIN
static final String ELT_SERVER
static final String ELT_NETWORK
static final String ELT_SERVICE
static final String ELT_PROPERTY
static final String ELT_NAT
static final String ATT_ID
static final String ATT_NAME
static final String ATT_DOMAIN
static final String ATT_NETWORK
static final String ATT_HOSTNAME
static final String ATT_PORT
static final String ATT_SERVER
static final String ATT_CLASS
static final String ATT_ARGS
static final String ATT_VALUE
static final String ELT_JVM_ARGS
static final String ATT_SID
static final String TAB
static final String TAB2
public static final void toXML(A3CMLConfig config, String cfgDir, String xmlFileName) throws Exception
Exception
public static final void toXML(A3CMLConfig config, PrintWriter out) throws Exception
Exception
private static final void writeToXMLServer(Object obj, PrintWriter out)
public static A3CMLConfig getXMLConfig() throws Exception
A3CMLConfig
object.A3CMLConfig
object if file exists and is
correct, null otherwise.Exception
- unspecialized exception when reading and parsing the configuration filepublic static A3CMLConfig getXMLConfig(String cfgDir, String cfgFileName) throws Exception
A3CMLConfig
object.cfgDir
- directory of XML filecfgFile
- XML configuration fileA3CMLConfig
object if file exists and is
correct, null otherwise.Exception
- unspecialized exception when reading and parsing the configuration filepublic static A3CMLConfig getXMLConfig(String path) throws Exception
Exception
public static A3CMLConfig getConfig(Reader reader) throws Exception
Config
object.reader
- ReadercfgFileName
- configuration file name (XML file)Config
object if file exists and is
correct, null otherwise.Exception
- unspecialized exception when reading and parsing the configuration fileCopyright © 2015 ScalAgent D.T.. All Rights Reserved.