Class CommonConfiguration
- java.lang.Object
-
- org.mases.datadistributionmanager.BaseConfiguration
-
- org.mases.datadistributionmanager.GlobalConfiguration
-
- org.mases.datadistributionmanager.CommonConfiguration
-
- All Implemented Interfaces:
IConfiguration
- Direct Known Subclasses:
KafkaConfiguration
,MastershipConfiguration
,OpenDDSConfiguration
public abstract class CommonConfiguration extends GlobalConfiguration
The common configuration class
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ChannelSeekTimeoutKey
static java.lang.String
CommitSyncKey
static java.lang.String
CommitTimeoutKey
static java.lang.String
ConsumerTimeoutKey
static java.lang.String
CreateChannelTimeoutKey
static java.lang.String
EventSyncKey
static java.lang.String
InitialOffsetKey
static java.lang.String
KeepAliveTimeoutKey
static java.lang.String
ProducerTimeoutKey
static java.lang.String
ReceiveTimeoutKey
-
Fields inherited from class org.mases.datadistributionmanager.GlobalConfiguration
GlobalLogLevelKey, MastershipLibraryKey, MaxMessageSizeKey, ProtocolKey, ProtocolLibraryKey, ServerLostTimeoutKey
-
-
Constructor Summary
Constructors Constructor Description CommonConfiguration(java.lang.String protocol, java.lang.String protolib)
Initialize a new instance ofCommonConfiguration
CommonConfiguration(IConfiguration originalConf)
Duplicates a configuration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integer
getChannelSeekTimeout()
The timeout on seek channelboolean
getCommitSync()
True to commit message in syncjava.lang.Integer
getCommitTimeout()
The timeout on channel message commitjava.lang.Integer
getConsumerTimeout()
The timeout on channel message consumejava.lang.Integer
getCreateChannelTimeout()
The timeout on create channelboolean
getEventSync()
True to emit message receive events in syncjava.lang.Long
getInitialOffset()
The initial offset of the channeljava.lang.Integer
getKeepAliveTimeout()
The timeout on channel keep alivejava.lang.Integer
getProducerTimeout()
The timeout on channel message producejava.lang.Integer
getReceiveTimeout()
The timeout on channel receivevoid
setChannelSeekTimeout(java.lang.Integer timeout)
The timeout on seek channelvoid
setCommitSync(java.lang.Boolean value)
True to commit message in syncvoid
setCommitTimeout(java.lang.Integer timeout)
The timeout on channel message commitvoid
setConsumerTimeout(java.lang.Integer timeout)
The timeout on channel message consumevoid
setCreateChannelTimeout(java.lang.Integer timeout)
The timeout on create channelvoid
setEventSync(java.lang.Boolean value)
True to emit message receive events in syncvoid
setInitialOffset(java.lang.Long offset)
The initial offset of the channelvoid
setKeepAliveTimeout(java.lang.Integer timeout)
The timeout on channel keep alivevoid
setProducerTimeout(java.lang.Integer timeout)
The timeout on channel message producevoid
setReceiveTimeout(java.lang.Integer timeout)
The timeout on channel receive-
Methods inherited from class org.mases.datadistributionmanager.GlobalConfiguration
getGlobalLogLevel, getMastershipLibrary, getMaxMessageSize, getProtocol, getProtocolLibrary, getServerLostTimeout, setGlobalLogLevel, setMastershipLibrary, setMaxMessageSize, setProtocol, setProtocolLibrary, setServerLostTimeout
-
Methods inherited from class org.mases.datadistributionmanager.BaseConfiguration
getConfiguration
-
-
-
-
Field Detail
-
CreateChannelTimeoutKey
public static final java.lang.String CreateChannelTimeoutKey
- See Also:
- Constant Field Values
-
ChannelSeekTimeoutKey
public static final java.lang.String ChannelSeekTimeoutKey
- See Also:
- Constant Field Values
-
ReceiveTimeoutKey
public static final java.lang.String ReceiveTimeoutKey
- See Also:
- Constant Field Values
-
KeepAliveTimeoutKey
public static final java.lang.String KeepAliveTimeoutKey
- See Also:
- Constant Field Values
-
ConsumerTimeoutKey
public static final java.lang.String ConsumerTimeoutKey
- See Also:
- Constant Field Values
-
ProducerTimeoutKey
public static final java.lang.String ProducerTimeoutKey
- See Also:
- Constant Field Values
-
CommitTimeoutKey
public static final java.lang.String CommitTimeoutKey
- See Also:
- Constant Field Values
-
CommitSyncKey
public static final java.lang.String CommitSyncKey
- See Also:
- Constant Field Values
-
EventSyncKey
public static final java.lang.String EventSyncKey
- See Also:
- Constant Field Values
-
InitialOffsetKey
public static final java.lang.String InitialOffsetKey
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CommonConfiguration
public CommonConfiguration(java.lang.String protocol, java.lang.String protolib)
Initialize a new instance ofCommonConfiguration
- Parameters:
protocol
- The protocol to useprotolib
- The protocol library to use
-
CommonConfiguration
public CommonConfiguration(IConfiguration originalConf)
Duplicates a configuration- Parameters:
originalConf
-IConfiguration
to duplicate
-
-
Method Detail
-
getCreateChannelTimeout
public java.lang.Integer getCreateChannelTimeout()
The timeout on create channel- Returns:
- The create channel timeout in ms
-
setCreateChannelTimeout
public void setCreateChannelTimeout(java.lang.Integer timeout)
The timeout on create channel- Parameters:
timeout
- The create channel timeout in ms
-
getChannelSeekTimeout
public java.lang.Integer getChannelSeekTimeout()
The timeout on seek channel- Returns:
- The seek timeout in ms
-
setChannelSeekTimeout
public void setChannelSeekTimeout(java.lang.Integer timeout)
The timeout on seek channel- Parameters:
timeout
- The seek timeout in ms
-
getReceiveTimeout
public java.lang.Integer getReceiveTimeout()
The timeout on channel receive- Returns:
- The receive timeout in ms
-
setReceiveTimeout
public void setReceiveTimeout(java.lang.Integer timeout)
The timeout on channel receive- Parameters:
timeout
- The receive timeout
-
getKeepAliveTimeout
public java.lang.Integer getKeepAliveTimeout()
The timeout on channel keep alive- Returns:
- The keep-alive timeout in ms
-
setKeepAliveTimeout
public void setKeepAliveTimeout(java.lang.Integer timeout)
The timeout on channel keep alive- Parameters:
timeout
- The keep-alive timeout in ms
-
getConsumerTimeout
public java.lang.Integer getConsumerTimeout()
The timeout on channel message consume- Returns:
- The consumer timeout in ms
-
setConsumerTimeout
public void setConsumerTimeout(java.lang.Integer timeout)
The timeout on channel message consume- Parameters:
timeout
- The consumer timeout in ms
-
getProducerTimeout
public java.lang.Integer getProducerTimeout()
The timeout on channel message produce- Returns:
- The producer timeout in ms
-
setProducerTimeout
public void setProducerTimeout(java.lang.Integer timeout)
The timeout on channel message produce- Parameters:
timeout
- The producer timeout in ms
-
getCommitTimeout
public java.lang.Integer getCommitTimeout()
The timeout on channel message commit- Returns:
- The commit timeout in ms
-
setCommitTimeout
public void setCommitTimeout(java.lang.Integer timeout)
The timeout on channel message commit- Parameters:
timeout
- The commit timeout in ms
-
getCommitSync
public boolean getCommitSync()
True to commit message in sync- Returns:
- True to commit message in sync
-
setCommitSync
public void setCommitSync(java.lang.Boolean value)
True to commit message in sync- Parameters:
value
- True to commit message in sync
-
getEventSync
public boolean getEventSync()
True to emit message receive events in sync- Returns:
- True to emit message receive events in sync
-
setEventSync
public void setEventSync(java.lang.Boolean value)
True to emit message receive events in sync- Parameters:
value
- True to emit message receive events in sync
-
getInitialOffset
public java.lang.Long getInitialOffset()
The initial offset of the channel- Returns:
- The initial offset of the channel
-
setInitialOffset
public void setInitialOffset(java.lang.Long offset)
The initial offset of the channel- Parameters:
offset
- The initial offset of the channel
-
-