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.


Variable Index

 o results
 o success

Constructor Index

 o JDPCommandExecuter(JDPUser)
Creates a Command Executer.
 o JDPCommandExecuter(JDPUser, String, String, String, String)
Creates a Command Executer and executes a command.

Method Index

 o execCommand(String, String, String, String)
Execute a command
 o getCommandError()
Get the result of the last command.
 o getCommandResult()
Get the result of the last command.
 o getCommandResultVector()
Get the result vector of the last command.

Variables

 o success
 public boolean success
 o results
 public Vector results

Constructors

 o JDPCommandExecuter
 public JDPCommandExecuter(JDPUser user)
Creates a Command Executer.

Parameters:
JDPUser - the global user parameter used to pass handles in JDP.
 o 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.

Methods

 o 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.
 o getCommandResult
 public boolean getCommandResult()
Get the result of the last command.

Returns:
the result of the last command.
 o getCommandError
 public String getCommandError()
Get the result of the last command.

Returns:
the result of the last command.
 o 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.