Class JDPCommandExecuter
java.lang.Object
|
+----JDPCommandExecuter
- public class JDPCommandExecuter
- extends Object
Class JDPCommandExecuter represents a class for running native commands on the
server where JaggServer is running.
-
results
-
-
success
-
-
JDPCommandExecuter(JDPUser)
- Creates a Command Executer.
-
JDPCommandExecuter(JDPUser, String, String, String, String)
- Creates a Command Executer and executes a command.
-
execCommand(String, String, String, String)
- Execute a command
-
getCommandError()
- Get the result of the last command.
-
getCommandResult()
- Get the result of the last command.
-
getCommandResultVector()
- Get the result vector of the last command.
success
public boolean success
results
public Vector results
JDPCommandExecuter
public JDPCommandExecuter(JDPUser user)
- Creates a Command Executer.
- Parameters:
- JDPUser - the global user parameter used to pass handles in JDP.
JDPCommandExecuter
public JDPCommandExecuter(JDPUser user,
String command,
String execMessage,
String compMessage,
String failMessage)
- Creates a Command Executer and executes a command.
- Parameters:
- JDPUser - the global user parameter used to pass handles in JDP.
- command - the command to run.
- execMessage - the message to display while the command is executing.
- compMessage - the message to display if the command completes successfully.
- failMessage - the message to display if the comand fails.
execCommand
public boolean execCommand(String command,
String execMessage,
String compMessage,
String failMessage)
- Execute a command
- Parameters:
- command - the command to run.
- execMessage - the message to display while the command is executing.
- compMessage - the message to display if the command completes successfully.
- failMessage - the message to display if the comand fails.
getCommandResult
public boolean getCommandResult()
- Get the result of the last command.
- Returns:
- the result of the last command.
getCommandError
public String getCommandError()
- Get the result of the last command.
- Returns:
- the result of the last command.
getCommandResultVector
public Vector getCommandResultVector()
- Get the result vector of the last command. The vector contains any output from
the execution of the command.
- Returns:
- the result of the last command.