Class GlobalConfiguration
- java.lang.Object
-
- org.mases.datadistributionmanager.BaseConfiguration
-
- org.mases.datadistributionmanager.GlobalConfiguration
-
- All Implemented Interfaces:
IConfiguration
- Direct Known Subclasses:
CommonConfiguration
public abstract class GlobalConfiguration extends BaseConfiguration
The global configuration class
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringGlobalLogLevelKeystatic java.lang.StringMastershipLibraryKeystatic java.lang.StringMaxMessageSizeKeystatic java.lang.StringProtocolKeystatic java.lang.StringProtocolLibraryKeystatic java.lang.StringServerLostTimeoutKey
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DDM_LOG_LEVELgetGlobalLogLevel()The global log valuejava.lang.StringgetMastershipLibrary()The mastership library to usejava.lang.IntegergetMaxMessageSize()The max message size managedjava.lang.StringgetProtocol()The protocol to use (e.g.java.lang.StringgetProtocolLibrary()The protocol library to usejava.lang.IntegergetServerLostTimeout()The timeout on server lostvoidsetGlobalLogLevel(DDM_LOG_LEVEL level)The global log valuevoidsetMastershipLibrary(java.lang.String protolib)The mastership library to usevoidsetMaxMessageSize(java.lang.Integer msgSize)The max message size managedvoidsetProtocol(java.lang.String protocol)The protocol to use (e.g.voidsetProtocolLibrary(java.lang.String protolib)The protocol library to usevoidsetServerLostTimeout(java.lang.Integer timeout)The timeout on server lost-
Methods inherited from class org.mases.datadistributionmanager.BaseConfiguration
getConfiguration
-
-
-
-
Field Detail
-
ProtocolKey
public static final java.lang.String ProtocolKey
- See Also:
- Constant Field Values
-
ProtocolLibraryKey
public static final java.lang.String ProtocolLibraryKey
- See Also:
- Constant Field Values
-
MastershipLibraryKey
public static final java.lang.String MastershipLibraryKey
- See Also:
- Constant Field Values
-
MaxMessageSizeKey
public static final java.lang.String MaxMessageSizeKey
- See Also:
- Constant Field Values
-
ServerLostTimeoutKey
public static final java.lang.String ServerLostTimeoutKey
- See Also:
- Constant Field Values
-
GlobalLogLevelKey
public static final java.lang.String GlobalLogLevelKey
- See Also:
- Constant Field Values
-
-
Method Detail
-
getProtocol
public java.lang.String getProtocol()
The protocol to use (e.g. kafka, opendds)- Returns:
- The protocol
-
setProtocol
public void setProtocol(java.lang.String protocol)
The protocol to use (e.g. kafka, opendds)- Parameters:
protocol- The protocol
-
getProtocolLibrary
public java.lang.String getProtocolLibrary()
The protocol library to use- Returns:
- The protocol library
-
setProtocolLibrary
public void setProtocolLibrary(java.lang.String protolib)
The protocol library to use- Parameters:
protolib- The protocol library
-
getMastershipLibrary
public java.lang.String getMastershipLibrary()
The mastership library to use- Returns:
- The mastership library
-
setMastershipLibrary
public void setMastershipLibrary(java.lang.String protolib)
The mastership library to use- Parameters:
protolib- The mastership library
-
getMaxMessageSize
public java.lang.Integer getMaxMessageSize()
The max message size managed- Returns:
- The max message size
-
setMaxMessageSize
public void setMaxMessageSize(java.lang.Integer msgSize)
The max message size managed- Parameters:
msgSize- The max message size
-
getServerLostTimeout
public java.lang.Integer getServerLostTimeout()
The timeout on server lost- Returns:
- The server lost timeout in ms
-
setServerLostTimeout
public void setServerLostTimeout(java.lang.Integer timeout)
The timeout on server lost- Parameters:
timeout- The server lost timeout in ms
-
getGlobalLogLevel
public DDM_LOG_LEVEL getGlobalLogLevel()
The global log value- Returns:
- The global log value
-
setGlobalLogLevel
public void setGlobalLogLevel(DDM_LOG_LEVEL level)
The global log value- Parameters:
level- The global log value
-
-