Class ChannelProtocolConfiguration


  • public class ChannelProtocolConfiguration
    extends org.jgroups.conf.ProtocolConfiguration
    Here we introduced a variables lookup in the LogicalDOC configuration file
    Since:
    6.5
    Author:
    Marco Meschieri - LogicalDOC
    • Constructor Detail

      • ChannelProtocolConfiguration

        public ChannelProtocolConfiguration​(String protocol_name,
                                            Map<String,​String> properties)
      • ChannelProtocolConfiguration

        public ChannelProtocolConfiguration​(String config_str)
                                     throws Exception
        Throws:
        Exception
    • Method Detail

      • substituteVariables

        public void substituteVariables()
        Overrides:
        substituteVariables in class org.jgroups.conf.ProtocolConfiguration
      • substituteVariable

        public static String substituteVariable​(String val)
        Replaces variables of ${var:default} with System.getProperty(variable, default). If no variables are found, returns the same string, otherwise a copy of the string with variables substituted
        Parameters:
        val - value of the variable
        Returns:
        A string with variables replaced, or the same string if no variables found
      • getProperty

        public static String getProperty​(String s)
      • getPropertiesString

        public String getPropertiesString()
        Overrides:
        getPropertiesString in class org.jgroups.conf.ProtocolConfiguration