public abstract class ReplicationNetworkConfig extends Object implements Cloneable, Serializable
Modifier and Type | Field and Description |
---|---|
static String |
CHANNEL_FACTORY_CLASS |
static String |
CHANNEL_FACTORY_PARAMS |
static String |
CHANNEL_LOG_NAME
A string providing a logging context identification string.
|
static String |
CHANNEL_TYPE
Configures the type of communication channel to use.
|
protected Properties |
props |
protected boolean |
validateParams |
Constructor and Description |
---|
ReplicationNetworkConfig()
Constructs a basic ReplicationNetworkConfig initialized with the system
default settings.
|
ReplicationNetworkConfig(Properties properties)
Constructs a basic ReplicationNetworkConfig initialized with the
provided propeties.
|
Modifier and Type | Method and Description |
---|---|
static void |
applyRepNetProperties(Properties sourceProps,
Properties updateProps) |
ReplicationNetworkConfig |
clone()
Returns a copy of this configuration object.
|
static ReplicationNetworkConfig |
create(File propFile)
Creates an ReplicationNetworkConfig which includes the properties
specified in the named properties file.
|
static ReplicationNetworkConfig |
create(Properties properties)
Creates an ReplicationNetworkConfig which includes the properties
specified in the properties parameter.
|
static ReplicationNetworkConfig |
createDefault()
Creates a default ReplicationNetworkConfig instance.
|
String |
getChannelFactoryClass() |
String |
getChannelFactoryParams() |
abstract String |
getChannelType()
Get the channel type setting for the replication service.
|
String |
getLogName()
Get the channel logging name setting for the replication service.
|
static Set<String> |
getRepNetPropertySet() |
protected boolean |
isValidConfigParam(String paramName)
Checks whether the named parameter is valid for this configuration type.
|
static void |
registerParams() |
ReplicationNetworkConfig |
setChannelFactoryClass(String factoryClass) |
void |
setChannelFactoryClassVoid(String factoryClass) |
ReplicationNetworkConfig |
setChannelFactoryParams(String factoryParams) |
void |
setChannelFactoryParamsVoid(String factoryParams) |
ReplicationNetworkConfig |
setConfigParam(String paramName,
String value)
Set this configuration parameter with this value.
|
ReplicationNetworkConfig |
setLogName(String logName)
Sets the channel logging name to be used for replication service access.
|
void |
setLogNameVoid(String logName) |
public static final String CHANNEL_TYPE
basic
ssl
basic
is the standard implementation, which uses ordinary,
unencrypted communication, and is represented by this the
ReplicationBasicConfig
class.
ssl
indicates that SSL is to be used for service
communication. When using SSL, an instance of
ReplicationSSLConfig
must be used.
Name | Type | Mutable | Default |
"je.rep.channelType" | String | No | "basic" |
public static final String CHANNEL_FACTORY_CLASS
public static final String CHANNEL_FACTORY_PARAMS
public static final String CHANNEL_LOG_NAME
Name | Type | Mutable | Default |
"je.rep.channelLogName" | String | No | "" |
protected final Properties props
protected final boolean validateParams
public ReplicationNetworkConfig()
public ReplicationNetworkConfig(Properties properties)
properties
- a set of properties which which to initialize the
instance propertiespublic static ReplicationNetworkConfig create(File propFile) throws IllegalArgumentException, FileNotFoundException
propFile
- a File from which the configuration properties will
be read.FileNotFoundException
- If the property file cannot be foundIllegalArgumentException
- If any properties read from the
properties parameter are invalid.public static ReplicationNetworkConfig create(Properties properties) throws IllegalArgumentException
properties
- Supported properties are described as the string
constants in this class.IllegalArgumentException
- If any properties read from the
properties parameter are invalid.public static ReplicationNetworkConfig createDefault()
public abstract String getChannelType()
public String getLogName()
public ReplicationNetworkConfig setLogName(String logName) throws IllegalArgumentException
logName
- the channel logging name to be used.IllegalArgumentException
- If the value of logName is invalid.public void setLogNameVoid(String logName) throws IllegalArgumentException
IllegalArgumentException
public String getChannelFactoryClass()
public ReplicationNetworkConfig setChannelFactoryClass(String factoryClass)
factoryClass
- the class name to usepublic void setChannelFactoryClassVoid(String factoryClass)
public String getChannelFactoryParams()
public ReplicationNetworkConfig setChannelFactoryParams(String factoryParams)
factoryParams
- a string encoding any parameters to be passed to
the class constructor.public void setChannelFactoryParamsVoid(String factoryParams)
public ReplicationNetworkConfig setConfigParam(String paramName, String value) throws IllegalArgumentException
paramName
- the configuration parameter name, one of the String
constants in this classvalue
- the configuration value.IllegalArgumentException
- if the paramName or value is invalid, or
if paramName is not a parameter that applies to ReplicationNetworkConfig.public ReplicationNetworkConfig clone()
public static void registerParams()
public static void applyRepNetProperties(Properties sourceProps, Properties updateProps) throws IllegalArgumentException
IllegalArgumentException
- if any of the contained property
entries have invalid valuesprotected boolean isValidConfigParam(String paramName)
paramName
- the configuration parameter name, one of the String
constants in this classCopyright (c) 2002, 2015 Oracle and/or its affiliates. All rights reserved.