|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.faban.harness.util.CmdMap
public class CmdMap
Checks the binary paths and the command mapping file and creates the exec map.
Constructor Summary | |
---|---|
CmdMap()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CmdMap()
Method Detail |
---|
public static HashMap<String,List<String>> getCmdMap(String benchName) throws Exception
benchName
- The name of the benchmark,
null if the map is not benchmark-specific
Exception
- Something went wrong obtaining the command map.public static HashMap<String,List<String>> getServiceBinMap(String serviceName) throws Exception
serviceName
- The name of the service
Exception
- 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 listpublic static void main(String[] args) throws Exception
args
- The command line argument
Exception
- If the mapping shows any errors
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |