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.
jobId
(required): This is the job reference number of the scheduled job to remove.
URL
(required): This is the URL to redirect to after the command has finished executing.
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.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
RemoveJobCmdImpl()
This is the default constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
AccessVector |
getResources()
This method gets the resources for the command.
|
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.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public RemoveJobCmdImpl()
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
AccessVector
object containing the store to which the job belongs.ECException
- This is thrown if there was a problem getting the store of the specified job.public void performExecute() throws ECException
SCHACTIVE
table and sets the ACTIVE
flag in the SCHCONFIG
record to D.performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- This is thrown if there was a problem obtaining the record to delete.public void setJobRefNum(java.lang.Long jobrefnum)
jobrefnum
- This is the job reference number of the job to remove.public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
ECApplicationException
if a required parameter is missing.setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
reqParms
- This is a TypedProperty
object that represents the parameters specified to the command.ECApplicationException
- This is thrown if a parameter was not specified.public void setUrl(java.lang.String url)
url
- This is the redirect URL.public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- This is thrown if the job reference number was missing or if the URL was not specified.