com.sun.faban.common
Interface CommandChecker

All Known Implementing Classes:
CmdAgentImpl

public interface CommandChecker

An interface impolemented by the command agent allowing it to check the command before it gets executed to ensure it executes in the agent's environment.

Author:
Akara Sucharitakul

Method Summary
 List<String> checkCommand(List<String> cmd, Map<String,List<String>> extMap)
          Checks and completes the command, if possible.
 List<String> checkJavaCommand(List<String> cmd, List<String> extClassPath)
          Checks and completes the java command, if possible.
 

Method Detail

checkCommand

List<String> checkCommand(List<String> cmd,
                          Map<String,List<String>> extMap)
Checks and completes the command, if possible.

Parameters:
cmd - The original command
extMap - The external map, if any
Returns:
The completed command

checkJavaCommand

List<String> checkJavaCommand(List<String> cmd,
                              List<String> extClassPath)
Checks and completes the java command, if possible.

Parameters:
cmd - The original command
extClassPath - The external class path.
Returns:
The completed java command