Class ChannelProtocolConfiguration

java.lang.Object
org.jgroups.conf.ProtocolConfiguration
com.logicaldoc.enterprise.cluster.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 Details

    • ChannelProtocolConfiguration

      public ChannelProtocolConfiguration(String protocolName, Map<String,String> properties)
    • ChannelProtocolConfiguration

      public ChannelProtocolConfiguration(String configStr) throws Exception
      Throws:
      Exception
  • Method Details

    • 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