Package org.jgroups.conf
Class XmlConfigurator
java.lang.Object
org.jgroups.conf.XmlConfigurator
- All Implemented Interfaces:
ProtocolStackConfigurator
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
XmlConfigurator
(String stackName) protected
XmlConfigurator
(String stackName, ProtocolData[] protocols) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(ProtocolData data) static XmlConfigurator
getInstance
(InputStream stream) static XmlConfigurator
getInstance
(URL url) static XmlConfigurator
getInstance
(Element el) static XmlConfigurator
getInstanceOldFormat
(InputStream stream) static XmlConfigurator
getInstanceOldFormat
(URL url) getName()
getProtocolStackString
(boolean convert) static void
void
override
(ProtocolData data) protected static XmlConfigurator
parse
(InputStream stream) protected static XmlConfigurator
protected static XmlConfigurator
parseOldFormat
(InputStream stream) protected static ProtocolData
parseProtocolData
(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:
getProtocolStackString
in interfaceProtocolStackConfigurator
-
getProtocolStack
- Specified by:
getProtocolStack
in 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
-