org.jgroups.protocols.relay.config
Class RelayConfig
java.lang.Object
org.jgroups.protocols.relay.config.RelayConfig
public class RelayConfig
- extends java.lang.Object
Parses and maintains the RELAY2 configuration (in memory)
- Since:
- 3.2
- Author:
- Bela Ban
Field Summary |
protected static java.lang.String |
BRIDGE
|
protected static java.lang.String |
BRIDGES
|
protected static java.lang.String |
FORWARD
|
protected static java.lang.String |
FORWARDS
|
protected static java.lang.String |
RELAY_CONFIG
|
protected static java.lang.String |
SITE
|
protected static java.lang.String |
SITES
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RELAY_CONFIG
protected static final java.lang.String RELAY_CONFIG
- See Also:
- Constant Field Values
SITES
protected static final java.lang.String SITES
- See Also:
- Constant Field Values
SITE
protected static final java.lang.String SITE
- See Also:
- Constant Field Values
BRIDGES
protected static final java.lang.String BRIDGES
- See Also:
- Constant Field Values
BRIDGE
protected static final java.lang.String BRIDGE
- See Also:
- Constant Field Values
FORWARDS
protected static final java.lang.String FORWARDS
- See Also:
- Constant Field Values
FORWARD
protected static final java.lang.String FORWARD
- See Also:
- Constant Field Values
RelayConfig
public RelayConfig()
parse
public static void parse(java.io.InputStream input,
java.util.Map<java.lang.String,RelayConfig.SiteConfig> map)
throws java.lang.Exception
- Parses site names and their configuration (e.g. "nyc" --> SiteConfig) into the map passed as argument
- Throws:
java.lang.Exception
parseSites
protected static void parseSites(java.util.Map<java.lang.String,RelayConfig.SiteConfig> map,
org.w3c.dom.Node root)
throws java.lang.Exception
- Throws:
java.lang.Exception
parseBridgesAndForwards
protected static void parseBridgesAndForwards(RelayConfig.SiteConfig site_config,
org.w3c.dom.Node root)
throws java.lang.Exception
- Throws:
java.lang.Exception
parseBridges
protected static void parseBridges(RelayConfig.SiteConfig site_config,
org.w3c.dom.Node root)
throws java.lang.Exception
- Throws:
java.lang.Exception
parseForwards
protected static void parseForwards(RelayConfig.SiteConfig site_config,
org.w3c.dom.Node root)
throws java.lang.Exception
- Throws:
java.lang.Exception
match
protected static void match(java.lang.String expected_name,
java.lang.String name,
boolean is_element)
throws java.lang.Exception
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 1998-2012 Bela Ban / Red Hat. All Rights Reserved.