Class MastershipConfiguration
- java.lang.Object
-
- org.mases.datadistributionmanager.BaseConfiguration
-
- org.mases.datadistributionmanager.GlobalConfiguration
-
- org.mases.datadistributionmanager.CommonConfiguration
-
- org.mases.datadistributionmanager.configuration.MastershipConfiguration
-
- All Implemented Interfaces:
IConfiguration
public class MastershipConfiguration extends CommonConfiguration
The configuration class for mastership based on DataDistributionMastershipManager
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MastershipGlobalConfigurationBasePropertyKey
-
Fields inherited from class org.mases.datadistributionmanager.CommonConfiguration
ChannelSeekTimeoutKey, CommitSyncKey, CommitTimeoutKey, ConsumerTimeoutKey, CreateChannelTimeoutKey, EventSyncKey, InitialOffsetKey, KeepAliveTimeoutKey, ProducerTimeoutKey, ReceiveTimeoutKey
-
Fields inherited from class org.mases.datadistributionmanager.GlobalConfiguration
GlobalLogLevelKey, MastershipLibraryKey, MaxMessageSizeKey, ProtocolKey, ProtocolLibraryKey, ServerLostTimeoutKey
-
-
Constructor Summary
Constructors Constructor Description MastershipConfiguration(java.lang.String libraryName, IConfiguration originalConf)
Duplicates a configurationMastershipConfiguration(IConfiguration originalConf)
Duplicates a configuration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getProperty(java.lang.String property)
Generic getter for all configuration propertiesvoid
setProperty(java.lang.String property, java.lang.String value)
Generic setter for all configuration properties-
Methods inherited from class org.mases.datadistributionmanager.CommonConfiguration
getChannelSeekTimeout, getCommitSync, getCommitTimeout, getConsumerTimeout, getCreateChannelTimeout, getEventSync, getInitialOffset, getKeepAliveTimeout, getProducerTimeout, getReceiveTimeout, setChannelSeekTimeout, setCommitSync, setCommitTimeout, setConsumerTimeout, setCreateChannelTimeout, setEventSync, setInitialOffset, setKeepAliveTimeout, setProducerTimeout, setReceiveTimeout
-
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
-
MastershipGlobalConfigurationBasePropertyKey
public static final java.lang.String MastershipGlobalConfigurationBasePropertyKey
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MastershipConfiguration
public MastershipConfiguration(IConfiguration originalConf)
Duplicates a configuration- Parameters:
originalConf
-IConfiguration
to duplicate
-
MastershipConfiguration
public MastershipConfiguration(java.lang.String libraryName, IConfiguration originalConf)
Duplicates a configuration- Parameters:
libraryName
- The mastership library name (or full path) to useoriginalConf
-IConfiguration
to duplicate
-
-
Method Detail
-
getProperty
public java.lang.String getProperty(java.lang.String property)
Generic getter for all configuration properties- Parameters:
property
- The property name- Returns:
- The property value
-
setProperty
public void setProperty(java.lang.String property, java.lang.String value)
Generic setter for all configuration properties- Parameters:
property
- The property namevalue
- The property value
-
-