public class ActivityCleanUpCmdImpl extends ControllerCommandImpl implements ActivityCleanUpCmd
In particular, this command does two tasks:
If maxIdleMinutes and maxRetainMinutes are the same and activities with a status 'E' are configured to be removed, all activities started maxIdleMinutes before are removed. This command can be used regardless whether the Activity Expiry feature is enabled or not. See the validateParameters method for the configuration details of this command.
Note:
Warning:
Use this command with extra caution. If the parameters are not set properly, it may remove activities that are still active and result in unhandled exceptions. As of d218975: - A commit-count of 10000 (ten thousand) is the default - The number of rows to be deleted is still "as many as possible" by default - Overrides are available to: - Change the commit-count to a larger number of records (commitCount), a smaller number of records, or to revert to all records (by specifying 0 or a negative number) - Change the "maximum number of rows to be modified" (maxRows) from "as many as possible" (specified by 0 or a negative number) to any number larger than 0Modifier and Type | Field and Description |
---|---|
static java.lang.String | CONST_COMMIT_COUNT
IBM copyright notice field.
|
static java.lang.String | CONST_MAX_ROWS
IBM copyright notice field.
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
ActivityCleanUpCmdImpl()
Constructs an ActivityCleanUpCmdImpl object.
|
Modifier and Type | Method and Description |
---|---|
void | performExecute()
This method executes the scheduled command to expire and/or remove activities.
|
void | validateParameters()
This method validates the configurable parameters of this command.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CONST_COMMIT_COUNT
public static final java.lang.String CONST_MAX_ROWS
public ActivityCleanUpCmdImpl()
public void performExecute() throws ECException
public void validateParameters() throws ECException