public class DataChannelFactoryBuilder extends Object
| Constructor and Description |
|---|
DataChannelFactoryBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static DataChannelFactory |
construct(ReplicationNetworkConfig repNetConfig)
Construct a DataChannelFactory from the specified network
configuration.
|
static DataChannelFactory |
construct(ReplicationNetworkConfig repNetConfig,
LoggerFactory loggerFactory)
Construct a DataChannelFactory from the specified access
configuration.
|
static DataChannelFactory |
construct(ReplicationNetworkConfig repNetConfig,
String logContext)
Construct a DataChannelFactory from the specified access
configuration.
|
static DataChannelFactory |
constructDefault()
Construct the "default" DataChannelFactory that arises from an empty
DataChannelFactory configuration.
|
static LoggerFactory |
makeLoggerFactory(EnvironmentImpl envImpl)
Creates a logger factory based on an EnvironmentImpl
|
static LoggerFactory |
makeLoggerFactory(String prefix)
Creates a logger factory based on a fixed string
|
public static DataChannelFactory constructDefault()
public static DataChannelFactory construct(ReplicationNetworkConfig repNetConfig) throws IllegalArgumentException
je.rep.channelType.
If set to sslthen the internal SSL implementation is
is used. If set to custom then a custom channel
factory is constructed based on the setting of
je.rep.dataChannelFactoryClass
If set to basic or not set, SimpleChannelFactory
is instantiated.repNetConfig - The configuration to control factory buildingIllegalArgumentException - if an invalid configuration
property value or combination of values was specified.public static DataChannelFactory construct(ReplicationNetworkConfig repNetConfig, String logContext) throws IllegalArgumentException
je.rep.channelType.
If set to sslthen the internal SSL implementation is
is used. If set to custom then a custom channel
factory is constructed based on the setting of
je.rep.dataChannelFactoryClass
If set to basic or not set, SimpleChannelFactory
is instantiated.repNetConfig - The configuration to control factory buildinglogContext - A null-allowable String that contributes to the
logging identifier for the factory.IllegalArgumentException - if an invalid configuration
property value or combination of values was specified.public static DataChannelFactory construct(ReplicationNetworkConfig repNetConfig, LoggerFactory loggerFactory) throws IllegalArgumentException
je.rep.channelType.
If set to sslthen the internal SSL implementation is
is used. If set to custom then a custom channel
factory is constructed based on the setting of
je.rep.dataChannelFactoryClass
If set to basic or not set, SimpleChannelFactory
is instantiated.repNetConfig - The configuration to control factory buildingloggerFactory - A null-allowable LoggerFactory for use in channel
factory constructionIllegalArgumentException - if an invalid configuration
property value or combination of values was specified.public static LoggerFactory makeLoggerFactory(EnvironmentImpl envImpl)
envImpl - a non-null EnvironmentImplpublic static LoggerFactory makeLoggerFactory(String prefix)
prefix - a fixed string to be used as logger prefixCopyright © 2024. All rights reserved.