public class CleanJobCmdImpl extends ControllerCommandImpl implements CleanJobCmd
This class removes job entries from scheduler status table if the job entry is completed.
The command exceptions the following parameters:
This command first verifies the values specified. Once the parameters are verified the status in the SCHSTATUS and SCHBRDCST tables that have an end time that is before the specified end time are removed. If a job number is specified, or the job status is removed and no job number is specified, then each job status will be removed. The response properties will contain the appropriate information to redirect to the specified URL(if specified) after execution.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
Constructor and Description |
---|
CleanJobCmdImpl()
This is the default constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
protected static java.sql.Timestamp | convertTime(java.lang.String time)
This method converts the input time value to a java.sql.Timestamp object.
|
java.sql.Timestamp | getEndTime()
Gets the end time of the job status to clean.
|
protected java.lang.Long | getJobRefNum()
Gets the job reference number for the job to be removed.
|
protected long | getMaxRecordsPerTransaction()
Returns the maximum number of records to clean per transaction.
|
AccessVector | getResources()
Returns the store the owns the job to be cleaned.
|
protected java.lang.String | getStringEndTime()
Gets the end time of the status to clean.
|
protected java.lang.String | getUrl()
Gets the URL to be redirected to at the end of the command.
|
void | performExecute()
Find all the status records for the specified job that is completed and has an end time less before the specified value.
|
void | setEndTime(java.sql.Timestamp endTime)
Sets the time value which indicates the status records that should be deleted.
|
void | setJobRefNum(java.lang.Long jobrefnum)
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 it locally in the command.
|
void | setStringEndTime(java.lang.String endTime)
Sets the time criteria used to clean job status entries.
|
void | setUrl(java.lang.String url)
Sets the URL to be redirected to at the end of the command.
|
void | validateParameters()
Validates the parameters passed to the command.
|
public static final java.lang.String COPYRIGHT
public CleanJobCmdImpl()
protected static java.sql.Timestamp convertTime(java.lang.String time) throws ECException
public java.sql.Timestamp getEndTime()
protected java.lang.Long getJobRefNum()
public AccessVector getResources() throws ECException
protected java.lang.String getStringEndTime()
protected java.lang.String getUrl()
public void performExecute() throws ECException
public void setEndTime(java.sql.Timestamp endTime)
public void setJobRefNum(java.lang.Long jobrefnum)
public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
public void setStringEndTime(java.lang.String endTime)
public void setUrl(java.lang.String url)
public void validateParameters() throws ECException
protected long getMaxRecordsPerTransaction()