Class RelayConfig
- java.lang.Object
-
- org.jgroups.protocols.relay.config.RelayConfig
-
public final class RelayConfig extends java.lang.Object
Parses and maintains the RELAY2 configuration (in memory)- Since:
- 3.2
- Author:
- Bela Ban
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RelayConfig.BridgeConfig
static class
RelayConfig.ForwardConfig
static class
RelayConfig.ProgrammaticBridgeConfig
static class
RelayConfig.PropertiesBridgeConfig
static class
RelayConfig.SiteConfig
-
Field Summary
Fields Modifier and Type Field Description 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
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
protected static void
match(java.lang.String expected_name, java.lang.String name)
static void
parse(java.io.InputStream input, java.util.Map<java.lang.String,RelayConfig.SiteConfig> map)
Parses site names and their configuration (e.g.static void
parse(XmlNode root, java.util.Map<java.lang.String,RelayConfig.SiteConfig> map)
protected static void
parseBridges(RelayConfig.SiteConfig site_config, XmlNode root)
protected static void
parseBridgesAndForwards(RelayConfig.SiteConfig site_config, XmlNode root)
protected static void
parseForwards(RelayConfig.SiteConfig site_config, XmlNode root)
protected static void
parseSites(java.util.Map<java.lang.String,RelayConfig.SiteConfig> map, XmlNode root)
-
-
-
Field Detail
-
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
-
-
Method Detail
-
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
-
parse
public static void parse(XmlNode root, java.util.Map<java.lang.String,RelayConfig.SiteConfig> map) throws java.lang.Exception
- Throws:
java.lang.Exception
-
parseSites
protected static void parseSites(java.util.Map<java.lang.String,RelayConfig.SiteConfig> map, XmlNode root) throws java.lang.Exception
- Throws:
java.lang.Exception
-
parseBridgesAndForwards
protected static void parseBridgesAndForwards(RelayConfig.SiteConfig site_config, XmlNode root) throws java.lang.Exception
- Throws:
java.lang.Exception
-
parseBridges
protected static void parseBridges(RelayConfig.SiteConfig site_config, XmlNode root) throws java.lang.Exception
- Throws:
java.lang.Exception
-
parseForwards
protected static void parseForwards(RelayConfig.SiteConfig site_config, XmlNode root) throws java.lang.Exception
- Throws:
java.lang.Exception
-
match
protected static void match(java.lang.String expected_name, java.lang.String name) 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
-
-