public class ConfigUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FILE_SEPARATOR |
static String |
NIMBUS_DO_NOT_REASSIGN |
static String |
RESOURCES_SUBDIR |
Constructor and Description |
---|
ConfigUtils() |
public static final String RESOURCES_SUBDIR
public static final String NIMBUS_DO_NOT_REASSIGN
public static final String FILE_SEPARATOR
public static ConfigUtils setInstance(ConfigUtils 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.
u
- a Utils instancepublic static String getLogDir()
public static int samplingRate(Map conf)
public static String masterLocalDir(Map conf) throws IOException
IOException
public static String masterStormDistRoot(Map conf) throws IOException
IOException
public static String masterStormDistRoot(Map conf, String stormId) throws IOException
IOException
public static Map<String,Object> readSupervisorStormConfGivenPath(Map<String,Object> conf, String stormConfPath) throws IOException
IOException
public static StormTopology readSupervisorStormCodeGivenPath(String stormCodePath, AdvancedFSOps ops) throws IOException
IOException
public static String masterInbox(Map conf) throws IOException
IOException
public static String masterInimbusDir(Map conf) throws IOException
IOException
public static String supervisorLocalDir(Map conf) throws IOException
IOException
public String supervisorLocalDirImpl(Map conf) throws IOException
IOException
public static String supervisorIsupervisorDir(Map conf) throws IOException
IOException
public static String supervisorStormDistRoot(Map conf) throws IOException
IOException
public String supervisorStormDistRootImpl(Map conf) throws IOException
IOException
public static String supervisorStormDistRoot(Map conf, String stormId) throws IOException
IOException
public String supervisorStormDistRootImpl(Map conf, String stormId) throws IOException
IOException
public static String supervisorTmpDir(Map conf) throws IOException
IOException
public static LocalState supervisorState(Map conf) throws IOException
IOException
public LocalState supervisorStateImpl(Map conf) throws IOException
IOException
public static LocalState nimbusTopoHistoryState(Map conf) throws IOException
IOException
public LocalState nimbusTopoHistoryStateImpl(Map conf) throws IOException
IOException
public static Map<String,Object> readSupervisorStormConf(Map<String,Object> conf, String stormId) throws IOException
IOException
public Map<String,Object> readSupervisorStormConfImpl(Map<String,Object> conf, String stormId) throws IOException
IOException
public static StormTopology readSupervisorTopology(Map conf, String stormId, AdvancedFSOps ops) throws IOException
IOException
public StormTopology readSupervisorTopologyImpl(Map conf, String stormId, AdvancedFSOps ops) throws IOException
IOException
public static String workerArtifactsPidPath(Map conf, String id, Integer port)
public static File getWorkerDirFromRoot(String logRoot, String id, Integer port)
public static LocalState workerState(Map conf, String id) throws IOException
IOException
public static Map overrideLoginConfigWithSystemProperty(Map conf)
public static List<String> getValueAsList(String name, Map<String,Object> conf)
Get the given config value as a List <String>, if possible.
name
- conf
- IllegalArgumentException
- if conf is nullNullPointerException
- if name is null and the conf map doesn’t support null keysCopyright © 2019 The Apache Software Foundation. All Rights Reserved.