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 Summary
Constructors Constructor Description ChannelProtocolConfiguration(String config_str)
ChannelProtocolConfiguration(String protocol_name, Map<String,String> properties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPropertiesString()
static String
getProperty(String s)
static String
substituteVariable(String val)
Replaces variables of ${var:default} with System.getProperty(variable, default).void
substituteVariables()
-
-
-
Method Detail
-
substituteVariables
public void substituteVariables()
- Overrides:
substituteVariables
in classorg.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
-
getPropertiesString
public String getPropertiesString()
- Overrides:
getPropertiesString
in classorg.jgroups.conf.ProtocolConfiguration
-
-