Class GatewayConfiguration


  • public class GatewayConfiguration
    extends java.lang.Object
    • 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
      • mutableConfigs

        public java.util.Map<java.lang.String,​java.lang.Integer> mutableConfigs
    • Constructor Detail

      • GatewayConfiguration

        public GatewayConfiguration​(java.util.Properties startupProps)
                             throws java.io.IOException
        Throws:
        java.io.IOException
    • 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()