public class RemoveJobCmdImpl extends ControllerCommandImpl implements RemoveJobCmd
This class removes jobs from the scheduler so that they will no longer be processed.
The parameters handled by this command are as follows.
This command first validates that the required parameters are specified. Then it takes the specified job and changes its configuration so is has an ACTIVE value of "D". Then the row in the SCHACTIVE and SCHBRDCST tables that are linked to the job are removed.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
Constructor and Description |
---|
RemoveJobCmdImpl()
This is the default constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Long | getJobRefNum()
This method gets the job reference number for the job to be removed.
|
AccessVector | getResources()
This method gets the resources for the command.
|
protected java.lang.String | getUrl()
This method gets the URL to which we should be redirected when this job finishes execution.
|
void | performExecute()
This method removes the record from the SCHACTIVE table and sets the ACTIVE flag in the SCHCONFIG record to D.
|
void | setJobRefNum(java.lang.Long jobrefnum)
This method sets the job reference number for the job to be removed.
|
void | setRequestProperties(TypedProperty reqParms)
This method extracts the required parameters from the request properties and sets them locally in the command.
|
void | setUrl(java.lang.String url)
This method sets the URL to which we should be redirected at the end of the command.
|
void | validateParameters()
This method verifies the values of the parameters specified.
|
public static final java.lang.String COPYRIGHT
public RemoveJobCmdImpl()
protected java.lang.Long getJobRefNum()
public AccessVector getResources() throws ECException
protected java.lang.String getUrl()
public void performExecute() throws ECException
public void setJobRefNum(java.lang.Long jobrefnum)
public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
public void setUrl(java.lang.String url)
public void validateParameters() throws ECException