Package com.mapr.fs.gateway.conf
Class GatewayConfiguration
- java.lang.Object
-
- com.mapr.fs.gateway.conf.GatewayConfiguration
-
public class GatewayConfiguration extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description java.util.concurrent.atomic.AtomicBooleanallowUpdatesintGATEWAY_ALTENATE_MFS_PORT_OFFSETintGATEWAY_LOG_FILE_SIZE_MBjava.lang.StringGATEWAY_LOG_LEVELintGATEWAY_MARLIN_LOG_COMPACTION_PERCENTAGE_TOPIC_INCREASElongGATEWAY_MARLIN_LOG_COMPACTION_STATS_UPDATE_INTERVAL_MSlongGATEWAY_MARLIN_LOG_COMPACTION_TOPIC_REFRESH_INTERVAL_MSlongGATEWAY_MARLIN_LOG_COMPACTION_WAIT_UPPER_BOUND_MSintGATEWAY_NUM_FLUSH_THREADSintGATEWAY_NUM_RECEIVE_THREADSintGATEWAY_PUT_MEM_MBintGATEWAY_RPC_PORTjava.lang.Stringhostnamejava.util.Map<java.lang.String,java.lang.Integer>mutableConfigsjava.lang.StringParamJvmAcceptableDelayjava.lang.StringPATH_SEPjava.lang.StringserverIdjava.util.concurrent.atomic.AtomicBooleanupdateFSProperties
-
Constructor Summary
Constructors Constructor Description GatewayConfiguration(java.util.Properties startupProps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetBooleanProperty(java.lang.String key, boolean defaultValue)java.lang.StringgetConfFileName()java.lang.StringgetGatewayIdentifierString()intgetGatewayPort()java.lang.StringgetHostName()intgetIntegerProperty(java.lang.String key, int defaultValue)java.lang.StringgetLogFilePath()java.lang.StringgetLogLevel()intgetLogSizeMb()longgetLongProperty(java.lang.String key, long defaultValue)java.lang.StringgetMapRClusterConfFile()java.lang.StringgetMapRHostId()java.lang.StringgetMapRHostNameFile()java.lang.StringgetMapRInstallDir()intgetMarlinLcPercentageTopicIncrease()longgetMarlinLcStatsUpdateIntervalMs()longgetMarlinLcTopicRefreshIntervalMs()longgetMarlinLcWaitUpperBoundMs()intgetMfsPortOffset()intgetNumFlushThreads()intgetNumReceiveThreads()java.util.PropertiesgetProperties()java.lang.StringgetProperty(java.lang.String key)java.lang.StringgetProperty(java.lang.String key, java.lang.String defaultValue)intgetPutMemMb()java.lang.StringgetServerId()java.lang.StringgetServerTicketFileLocation()voidreadHostNameAndIdFromFile()voidsetBooleanProperty(java.lang.String key, boolean value)voidsetConfFile(java.lang.String confFileName)voidsetHostName(java.lang.String hostName)voidsetIntegerProperty(java.lang.String key, int value)voidsetProperty(java.lang.String key, java.lang.String value)voidstore(java.io.FileOutputStream fileOutputStream, java.lang.String comment)
-
-
-
Field Detail
-
updateFSProperties
public java.util.concurrent.atomic.AtomicBoolean updateFSProperties
-
allowUpdates
public java.util.concurrent.atomic.AtomicBoolean allowUpdates
-
GATEWAY_RPC_PORT
public int GATEWAY_RPC_PORT
-
GATEWAY_ALTENATE_MFS_PORT_OFFSET
public int GATEWAY_ALTENATE_MFS_PORT_OFFSET
-
GATEWAY_NUM_RECEIVE_THREADS
public int GATEWAY_NUM_RECEIVE_THREADS
-
GATEWAY_NUM_FLUSH_THREADS
public int GATEWAY_NUM_FLUSH_THREADS
-
GATEWAY_PUT_MEM_MB
public int GATEWAY_PUT_MEM_MB
-
GATEWAY_LOG_FILE_SIZE_MB
public int GATEWAY_LOG_FILE_SIZE_MB
-
GATEWAY_MARLIN_LOG_COMPACTION_STATS_UPDATE_INTERVAL_MS
public long GATEWAY_MARLIN_LOG_COMPACTION_STATS_UPDATE_INTERVAL_MS
-
GATEWAY_MARLIN_LOG_COMPACTION_TOPIC_REFRESH_INTERVAL_MS
public long GATEWAY_MARLIN_LOG_COMPACTION_TOPIC_REFRESH_INTERVAL_MS
-
GATEWAY_MARLIN_LOG_COMPACTION_PERCENTAGE_TOPIC_INCREASE
public int GATEWAY_MARLIN_LOG_COMPACTION_PERCENTAGE_TOPIC_INCREASE
-
GATEWAY_MARLIN_LOG_COMPACTION_WAIT_UPPER_BOUND_MS
public long GATEWAY_MARLIN_LOG_COMPACTION_WAIT_UPPER_BOUND_MS
-
GATEWAY_LOG_LEVEL
public java.lang.String GATEWAY_LOG_LEVEL
-
ParamJvmAcceptableDelay
public final java.lang.String ParamJvmAcceptableDelay
- See Also:
- Constant Field Values
-
hostname
public java.lang.String hostname
-
serverId
public java.lang.String serverId
-
PATH_SEP
public final java.lang.String PATH_SEP
- See Also:
- Constant Field Values
-
mutableConfigs
public java.util.Map<java.lang.String,java.lang.Integer> mutableConfigs
-
-
Method Detail
-
getMapRInstallDir
public java.lang.String getMapRInstallDir()
-
getServerTicketFileLocation
public java.lang.String getServerTicketFileLocation()
-
getLogFilePath
public java.lang.String getLogFilePath()
-
getMapRClusterConfFile
public java.lang.String getMapRClusterConfFile()
-
getMapRHostNameFile
public java.lang.String getMapRHostNameFile()
-
getMapRHostId
public java.lang.String getMapRHostId()
-
setConfFile
public void setConfFile(java.lang.String confFileName)
-
getConfFileName
public java.lang.String getConfFileName()
-
getProperty
public java.lang.String getProperty(java.lang.String key)
-
getProperties
public java.util.Properties getProperties()
-
getProperty
public java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
-
setProperty
public void setProperty(java.lang.String key, java.lang.String value)
-
getBooleanProperty
public boolean getBooleanProperty(java.lang.String key, boolean defaultValue)
-
setBooleanProperty
public void setBooleanProperty(java.lang.String key, boolean value)
-
getLongProperty
public long getLongProperty(java.lang.String key, long defaultValue)
-
getIntegerProperty
public int getIntegerProperty(java.lang.String key, int defaultValue)
-
setIntegerProperty
public void setIntegerProperty(java.lang.String key, int value)
-
getGatewayPort
public int getGatewayPort()
-
getMfsPortOffset
public int getMfsPortOffset()
-
getNumReceiveThreads
public int getNumReceiveThreads()
-
getNumFlushThreads
public int getNumFlushThreads()
-
getPutMemMb
public int getPutMemMb()
-
getLogSizeMb
public int getLogSizeMb()
-
getLogLevel
public java.lang.String getLogLevel()
-
getMarlinLcTopicRefreshIntervalMs
public long getMarlinLcTopicRefreshIntervalMs()
-
getMarlinLcStatsUpdateIntervalMs
public long getMarlinLcStatsUpdateIntervalMs()
-
getMarlinLcPercentageTopicIncrease
public int getMarlinLcPercentageTopicIncrease()
-
getMarlinLcWaitUpperBoundMs
public long getMarlinLcWaitUpperBoundMs()
-
store
public void store(java.io.FileOutputStream fileOutputStream, java.lang.String comment) throws java.io.IOException- Throws:
java.io.IOException
-
getServerId
public java.lang.String getServerId()
-
getHostName
public java.lang.String getHostName()
-
setHostName
public void setHostName(java.lang.String hostName)
-
readHostNameAndIdFromFile
public void readHostNameAndIdFromFile() throws java.io.IOException- Throws:
java.io.IOException
-
getGatewayIdentifierString
public java.lang.String getGatewayIdentifierString()
-
-