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
-
Field Summary
Fields inherited from class org.jgroups.conf.ProtocolConfiguration
protocol_prefix
-
Constructor Summary
ConstructorDescriptionChannelProtocolConfiguration
(String configStr) ChannelProtocolConfiguration
(String protocolName, Map<String, String> properties) -
Method Summary
Modifier and TypeMethodDescriptionstatic String
static String
substituteVariable
(String val) Replaces variables of ${var:default} with System.getProperty(variable, default).void
Methods inherited from class org.jgroups.conf.ProtocolConfiguration
addSubtree, getClassLoader, getOriginalProperties, getProperties, getProtocolName, getProtocolString, getProtocolString, getProtocolStringNewXml, getSubtrees, propertiesToString, toString
-
Constructor Details
-
ChannelProtocolConfiguration
-
ChannelProtocolConfiguration
- Throws:
Exception
-
-
Method Details
-
substituteVariables
public void substituteVariables()- Overrides:
substituteVariables
in classorg.jgroups.conf.ProtocolConfiguration
-
substituteVariable
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
-
getPropertiesString
- Overrides:
getPropertiesString
in classorg.jgroups.conf.ProtocolConfiguration
-