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.StringChannelSeekTimeoutKeystatic java.lang.StringCommitSyncKeystatic java.lang.StringCommitTimeoutKeystatic java.lang.StringConsumerTimeoutKeystatic java.lang.StringCreateChannelTimeoutKeystatic java.lang.StringEventSyncKeystatic java.lang.StringInitialOffsetKeystatic java.lang.StringKeepAliveTimeoutKeystatic java.lang.StringProducerTimeoutKeystatic java.lang.StringReceiveTimeoutKey-
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 ofCommonConfigurationCommonConfiguration(IConfiguration originalConf)Duplicates a configuration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.IntegergetChannelSeekTimeout()The timeout on seek channelbooleangetCommitSync()True to commit message in syncjava.lang.IntegergetCommitTimeout()The timeout on channel message commitjava.lang.IntegergetConsumerTimeout()The timeout on channel message consumejava.lang.IntegergetCreateChannelTimeout()The timeout on create channelbooleangetEventSync()True to emit message receive events in syncjava.lang.LonggetInitialOffset()The initial offset of the channeljava.lang.IntegergetKeepAliveTimeout()The timeout on channel keep alivejava.lang.IntegergetProducerTimeout()The timeout on channel message producejava.lang.IntegergetReceiveTimeout()The timeout on channel receivevoidsetChannelSeekTimeout(java.lang.Integer timeout)The timeout on seek channelvoidsetCommitSync(java.lang.Boolean value)True to commit message in syncvoidsetCommitTimeout(java.lang.Integer timeout)The timeout on channel message commitvoidsetConsumerTimeout(java.lang.Integer timeout)The timeout on channel message consumevoidsetCreateChannelTimeout(java.lang.Integer timeout)The timeout on create channelvoidsetEventSync(java.lang.Boolean value)True to emit message receive events in syncvoidsetInitialOffset(java.lang.Long offset)The initial offset of the channelvoidsetKeepAliveTimeout(java.lang.Integer timeout)The timeout on channel keep alivevoidsetProducerTimeout(java.lang.Integer timeout)The timeout on channel message producevoidsetReceiveTimeout(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-IConfigurationto 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
-
-