public class GetExecHistoryTask extends SessionedTask<java.util.List<ExecRecord>>
| Modifier and Type | Field and Description |
|---|---|
static java.util.Comparator<Metadata> |
_execRecordDateComparator |
| Constructor and Description |
|---|
GetExecHistoryTask(int lastN)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<ExecRecord> |
_execute()
Subclasses implement this method
|
static java.util.List<ExecRecord> |
getExecHistory(ConfigService configService, java.lang.String session, int lastN)
Convenience method for returning the last N execution records for the given session.
|
assertExists, assertLocation, assertNONResource, assertNotExists, assertNotLocationData, assertNotNull, assertNotNullElement, assertResource, assertSimple, call, doExecute, doExecute, doExecute, doExecute, expand, getConfigContext, getConfigMBean, getConfigService, getDescription, getSession, isLocation, isReadOnlyTransaction, requiresSystemTransactionpublic static final java.util.Comparator<Metadata> _execRecordDateComparator
public GetExecHistoryTask(int lastN)
lastN - the max number of exec. records to return. If there are more records than this number, the most recent N records are returned. If N is negative, all records are returned.public static java.util.List<ExecRecord> getExecHistory(ConfigService configService, java.lang.String session, int lastN)
configService - the config service instancesession - the session to execute against; null indicates corelastN - the max number of exec. records to return. If there are more records than this number, the most recent N records are returned. If N is negative, all records are returned.protected java.util.List<ExecRecord> _execute() throws NotFoundException
SessionedTask_execute in class SessionedTask<java.util.List<ExecRecord>>NotFoundException