Package org.apache.storm.utils
Class ServerConfigUtils
- java.lang.Object
-
- org.apache.storm.utils.ServerConfigUtils
-
public class ServerConfigUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
FILE_SEPARATOR
static String
NIMBUS_DO_NOT_REASSIGN
static String
RESOURCES_SUBDIR
-
Constructor Summary
Constructors Constructor Description ServerConfigUtils()
-
Method Summary
-
-
-
Field Detail
-
FILE_SEPARATOR
public static final String FILE_SEPARATOR
-
NIMBUS_DO_NOT_REASSIGN
public static final String NIMBUS_DO_NOT_REASSIGN
- See Also:
- Constant Field Values
-
RESOURCES_SUBDIR
public static final String RESOURCES_SUBDIR
- See Also:
- Constant Field Values
-
-
Method Detail
-
setInstance
public static ServerConfigUtils setInstance(ServerConfigUtils u)
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
public static String masterLocalDir(Map<String,Object> conf) throws IOException
- Throws:
IOException
-
masterInimbusDir
public static String masterInimbusDir(Map<String,Object> conf) throws IOException
- Throws:
IOException
-
nimbusTopoHistoryState
public static LocalState nimbusTopoHistoryState(Map<String,Object> conf) throws IOException
- Throws:
IOException
-
masterInbox
public static String masterInbox(Map<String,Object> conf) throws IOException
- Throws:
IOException
-
masterStormDistRoot
public static String masterStormDistRoot(Map<String,Object> conf) throws IOException
- Throws:
IOException
-
masterStormDistRoot
public static String masterStormDistRoot(Map<String,Object> conf, String stormId) throws IOException
- Throws:
IOException
-
supervisorTmpDir
public static String supervisorTmpDir(Map<String,Object> conf) throws IOException
- Throws:
IOException
-
supervisorIsupervisorDir
public static String supervisorIsupervisorDir(Map<String,Object> conf) throws IOException
- Throws:
IOException
-
supervisorState
public static LocalState supervisorState(Map<String,Object> conf) throws IOException
- Throws:
IOException
-
getLogMetaDataFile
public static File getLogMetaDataFile(Map<String,Object> conf, String id, Integer port)
-
supervisorStateImpl
public LocalState supervisorStateImpl(Map<String,Object> conf) throws IOException
- Throws:
IOException
-
nimbusTopoHistoryStateImpl
public LocalState nimbusTopoHistoryStateImpl(Map<String,Object> conf) throws IOException
- Throws:
IOException
-
-