Package org.jgroups.conf
Class XmlConfigurator
java.lang.Object
org.jgroups.conf.XmlConfigurator
- All Implemented Interfaces:
ProtocolStackConfigurator
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedXmlConfigurator(String stackName) protectedXmlConfigurator(String stackName, ProtocolData[] protocols) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ProtocolData data) static XmlConfiguratorgetInstance(InputStream stream) static XmlConfiguratorgetInstance(URL url) static XmlConfiguratorgetInstance(Element el) static XmlConfiguratorgetInstanceOldFormat(InputStream stream) static XmlConfiguratorgetInstanceOldFormat(URL url) getName()getProtocolStackString(boolean convert) static voidvoidoverride(ProtocolData data) protected static XmlConfiguratorparse(InputStream stream) protected static XmlConfiguratorprotected static XmlConfiguratorparseOldFormat(InputStream stream) protected static ProtocolDataparseProtocolData(Node protocol) protected static ProtocolParameter[]parseProtocolParameters(Element protparams) static String
-
Field Details
-
ATTR_NAME
- See Also:
-
ATTR_VALUE
- See Also:
-
ATTR_INHERIT
- See Also:
-
ELMT_PROT_OVERRIDE
- See Also:
-
ELMT_PROT
- See Also:
-
ELMT_PROT_NAME
- See Also:
-
ELMT_CLASS
- See Also:
-
ELMT_DESCRIPTION
- See Also:
-
ELMT_PROT_PARAMS
- See Also:
-
log
protected static final org.apache.commons.logging.Log log
-
-
Constructor Details
-
XmlConfigurator
-
XmlConfigurator
-
-
Method Details
-
getInstance
- Throws:
IOException
-
getInstanceOldFormat
- Throws:
IOException
-
getInstance
- Throws:
IOException
-
getInstanceOldFormat
- Throws:
IOException
-
getInstance
- Throws:
IOException
-
getProtocolStackString
- Parameters:
convert- If false: print old plain output, else print new XML format- Returns:
- String with protocol stack in specified format
-
getProtocolStackString
- Specified by:
getProtocolStackStringin interfaceProtocolStackConfigurator
-
getProtocolStack
- Specified by:
getProtocolStackin interfaceProtocolStackConfigurator
-
getName
-
override
- Throws:
IOException
-
add
-
parseOldFormat
- Throws:
IOException
-
parse
- Throws:
IOException
-
parse
- Throws:
IOException
-
parseProtocolData
- Throws:
IOException
-
parseProtocolParameters
- Throws:
IOException
-
main
- Throws:
Exception
-
replace
-