org.jgroups.protocols.relay.config
Class RelayConfig

java.lang.Object
  extended by 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

Nested Class Summary
static class RelayConfig.BridgeConfig
           
static class RelayConfig.ForwardConfig
           
static class RelayConfig.ProgrammaticBridgeConfig
           
static class RelayConfig.PropertiesBridgeConfig
           
static class RelayConfig.SiteConfig
           
 
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
           
 
Constructor Summary
RelayConfig()
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected static void match(java.lang.String expected_name, java.lang.String name, boolean is_element)
           
static void parse(java.io.InputStream input, java.util.Map<java.lang.String,RelayConfig.SiteConfig> map)
          Parses site names and their configuration (e.g.
protected static void parseBridges(RelayConfig.SiteConfig site_config, org.w3c.dom.Node root)
           
protected static void parseBridgesAndForwards(RelayConfig.SiteConfig site_config, org.w3c.dom.Node root)
           
protected static void parseForwards(RelayConfig.SiteConfig site_config, org.w3c.dom.Node root)
           
protected static void parseSites(java.util.Map<java.lang.String,RelayConfig.SiteConfig> map, org.w3c.dom.Node root)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

RelayConfig

public RelayConfig()
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

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.