org.jgroups.conf
public class XmlConfigurator extends Object implements ProtocolStackConfigurator
Version: 1.0
| Field Summary | |
|---|---|
| static String | ATTR_INHERIT |
| static String | ATTR_NAME |
| static String | ATTR_VALUE |
| static String | ELMT_CLASS |
| static String | ELMT_DESCRIPTION |
| static String | ELMT_PROT |
| static String | ELMT_PROT_NAME |
| static String | ELMT_PROT_OVERRIDE |
| static String | ELMT_PROT_PARAMS |
| protected static Log | log |
| Constructor Summary | |
|---|---|
| protected | XmlConfigurator(String stackName, ProtocolData[] protocols) |
| protected | XmlConfigurator(String stackName) |
| Method Summary | |
|---|---|
| void | add(ProtocolData data) |
| static XmlConfigurator | getInstance(URL url) |
| static XmlConfigurator | getInstance(InputStream stream) |
| static XmlConfigurator | getInstance(Element el) |
| static XmlConfigurator | getInstanceOldFormat(URL url) |
| static XmlConfigurator | getInstanceOldFormat(InputStream stream) |
| String | getName() |
| ProtocolData[] | getProtocolStack() |
| String | getProtocolStackString(boolean convert) |
| String | getProtocolStackString() |
| static void | main(String[] args) |
| void | override(ProtocolData data) |
| protected static XmlConfigurator | parse(InputStream stream) |
| protected static XmlConfigurator | parse(Element root_element)
CAUTION: crappy code ahead ! |
| protected static XmlConfigurator | parseOldFormat(InputStream stream) |
| protected static ProtocolData | parseProtocolData(Node protocol)
CAUTION: crappy code ahead ! |
| protected static ProtocolParameter[] | parseProtocolParameters(Element protparams)
there should be 4 Element Nodes if we are not overriding
1. protocol-name
2. description
3. class-name
4. protocol-params
If we are overriding we should have
1. protocol-name
2. protocol-params |
| static String | replace(String input, String expr, String replacement) |
Parameters: convert If false: print old plain output, else print new XML format
Returns: String with protocol stack in specified format