Package org.apache.storm.utils
Class ServerConfigUtils
java.lang.Object
org.apache.storm.utils.ServerConfigUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
absoluteHealthCheckDir
(Map<String, Object> conf) static int
static File
getLogMetaDataFile
(String fname) static File
getTopoLogsGroups
(Map<String, Object> topologyConf) getTopoLogsUsers
(Map<String, Object> topologyConf) static String
masterInbox
(Map<String, Object> conf) static String
masterInimbusDir
(Map<String, Object> conf) static String
masterLocalDir
(Map<String, Object> conf) static String
masterStormDistRoot
(Map<String, Object> conf) static String
masterStormDistRoot
(Map<String, Object> conf, String stormId) static String
masterStormJarPath
(String stormRoot) static LocalState
nimbusTopoHistoryState
(Map<String, Object> conf) static ServerConfigUtils
Provide an instance of this class for delegates to use.static String
supervisorIsupervisorDir
(Map<String, Object> conf) static LocalState
supervisorState
(Map<String, Object> conf) supervisorStateImpl
(Map<String, Object> conf) static String
supervisorTmpDir
(Map<String, Object> conf)
-
Field Details
-
FILE_SEPARATOR
-
NIMBUS_DO_NOT_REASSIGN
- See Also:
-
RESOURCES_SUBDIR
- See Also:
-
-
Constructor Details
-
ServerConfigUtils
public ServerConfigUtils()
-
-
Method Details
-
setInstance
Provide an instance of this class for delegates to use. To mock out delegated methods, provide an instance of a subclass that overrides the implementation of the delegated method.- Parameters:
u
- a ServerConfigUtils instance- Returns:
- the previously set instance
-
masterLocalDir
- Throws:
IOException
-
masterInimbusDir
- Throws:
IOException
-
nimbusTopoHistoryState
- Throws:
IOException
-
masterInbox
- Throws:
IOException
-
masterStormDistRoot
- Throws:
IOException
-
masterStormDistRoot
public static String masterStormDistRoot(Map<String, Object> conf, String stormId) throws IOException- Throws:
IOException
-
getTopoLogsUsers
-
getTopoLogsGroups
-
supervisorTmpDir
- Throws:
IOException
-
supervisorIsupervisorDir
- Throws:
IOException
-
supervisorState
- Throws:
IOException
-
absoluteHealthCheckDir
-
getLogMetaDataFile
-
getLogMetaDataFile
-
masterStormJarPath
-
supervisorStateImpl
- Throws:
IOException
-
nimbusTopoHistoryStateImpl
- Throws:
IOException
-
getLocalizerUpdateBlobInterval
-