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
IOExceptionpublic static String masterStormDistRoot(Map conf) throws IOException
IOExceptionpublic static String masterStormDistRoot(Map conf, String stormId) throws IOException
IOExceptionpublic static Map<String,Object> readSupervisorStormConfGivenPath(Map<String,Object> conf, String stormConfPath) throws IOException
IOExceptionpublic static StormTopology readSupervisorStormCodeGivenPath(String stormCodePath, AdvancedFSOps ops) throws IOException
IOExceptionpublic static String masterInbox(Map conf) throws IOException
IOExceptionpublic static String masterInimbusDir(Map conf) throws IOException
IOExceptionpublic static String supervisorLocalDir(Map conf) throws IOException
IOExceptionpublic String supervisorLocalDirImpl(Map conf) throws IOException
IOExceptionpublic static String supervisorIsupervisorDir(Map conf) throws IOException
IOExceptionpublic static String supervisorStormDistRoot(Map conf) throws IOException
IOExceptionpublic String supervisorStormDistRootImpl(Map conf) throws IOException
IOExceptionpublic static String supervisorStormDistRoot(Map conf, String stormId) throws IOException
IOExceptionpublic String supervisorStormDistRootImpl(Map conf, String stormId) throws IOException
IOExceptionpublic static String supervisorTmpDir(Map conf) throws IOException
IOExceptionpublic static LocalState supervisorState(Map conf) throws IOException
IOExceptionpublic LocalState supervisorStateImpl(Map conf) throws IOException
IOExceptionpublic static LocalState nimbusTopoHistoryState(Map conf) throws IOException
IOExceptionpublic LocalState nimbusTopoHistoryStateImpl(Map conf) throws IOException
IOExceptionpublic static Map<String,Object> readSupervisorStormConf(Map<String,Object> conf, String stormId) throws IOException
IOExceptionpublic Map<String,Object> readSupervisorStormConfImpl(Map<String,Object> conf, String stormId) throws IOException
IOExceptionpublic static StormTopology readSupervisorTopology(Map conf, String stormId, AdvancedFSOps ops) throws IOException
IOExceptionpublic StormTopology readSupervisorTopologyImpl(Map conf, String stormId, AdvancedFSOps ops) throws IOException
IOExceptionpublic 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
IOExceptionpublic 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 © 2022 The Apache Software Foundation. All Rights Reserved.