Class ForkConfig


  • public final class ForkConfig
    extends java.lang.Object
    Parses the fork-stacks-4.2.xsd schema. See conf/fork-stacks.xml for an example
    Since:
    3.4
    Author:
    Bela Ban
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String FORK_STACK  
      protected static java.lang.String FORK_STACKS  
      protected static java.lang.String ID  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      protected static void match​(java.lang.String expected_name, java.lang.String name)  
      static java.util.Map<java.lang.String,​java.util.List<ProtocolConfiguration>> parse​(java.io.InputStream input)
      Parses the input and returns a map of fork-stack IDs and lists of ProtocolConfigurations
      static java.util.Map<java.lang.String,​java.util.List<ProtocolConfiguration>> parse​(XmlNode root)  
      protected static void parseForkStack​(java.util.Map<java.lang.String,​java.util.List<ProtocolConfiguration>> map, XmlNode root)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • parse

        public static java.util.Map<java.lang.String,​java.util.List<ProtocolConfiguration>> parse​(java.io.InputStream input)
                                                                                                 throws java.lang.Exception
        Parses the input and returns a map of fork-stack IDs and lists of ProtocolConfigurations
        Throws:
        java.lang.Exception
      • parse

        public static java.util.Map<java.lang.String,​java.util.List<ProtocolConfiguration>> parse​(XmlNode root)
                                                                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • parseForkStack

        protected static void parseForkStack​(java.util.Map<java.lang.String,​java.util.List<ProtocolConfiguration>> map,
                                             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