public class CmdMap extends Object
Constructor and Description |
---|
CmdMap() |
Modifier and Type | Method and Description |
---|---|
static HashMap<String,List<String>> |
getCmdMap(String benchName)
Scans the bin directories and command map file and returns the command
map.
|
static String[] |
getPathExt()
Obtains a list of path extensions valid in this environment.
|
static HashMap<String,List<String>> |
getServiceBinMap(String serviceName)
Obtains the command map for a service/tool deployment.
|
static void |
main(String[] args)
Main to test the command map.
|
static void |
replaceFirst(List orig,
List replacement)
Replace the first element of the command list with the relacement.
|
public static HashMap<String,List<String>> getCmdMap(String benchName) throws Exception
benchName
- The name of the benchmark,
null if the map is not benchmark-specificException
- Something went wrong obtaining the command map.public static HashMap<String,List<String>> getServiceBinMap(String serviceName) throws Exception
serviceName
- The name of the serviceException
- Something went wrong obtaining the command map.public static String[] getPathExt()
public static void replaceFirst(List orig, List replacement)
orig
- The original command listreplacement
- The replacement for the first entry in the list