public class AsyncControllerCommandImpl extends ControllerCommandImpl implements AsyncCommand
AsyncCommand
interface. A long running job that needs to be scheduled by the
scheduler can extends from this class. An AsyncControllerCommandImpl
will be invoked by the scheduler.
The scheduler will not update the SCHSTATUS
table when it returns from the execute method of the
AsyncControllerCommandImpl
. Instead, the command will be passed the job instance id
(from the SCHSTATUS
table) and the job reference id (from the SCHCONFIG
table).
The command would typically dispatch a job to be run on a separate thread and then return.
The job will update the SCHSTATUS
table when it finishes execution.defaultCommandClassName
Constructor and Description |
---|
AsyncControllerCommandImpl()
This is the default constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getJobInstanceId()
This method gets the instance id for this job as set in the
SCHSTATUS table. |
java.lang.Long |
getJobReferenceId()
This method gets the reference id for this job as set in the
SCHCONFIG table. |
TypedProperty |
getResponseProperties()
This method gets the response properties.
|
void |
setJobInstanceId(java.lang.Long val)
This method sets the instance id for this job as set in the
SCHSTATUS table. |
void |
setJobReferenceId(java.lang.Long val)
This method sets the reference id for this job as set in the
SCHCONFIG table. |
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setRequestProperties, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, performExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
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
execute
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, setAccCheck
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public AsyncControllerCommandImpl()
public final java.lang.Long getJobInstanceId()
SCHSTATUS
table.getJobInstanceId
in interface AsyncCommand
public final java.lang.Long getJobReferenceId()
SCHCONFIG
table.getJobReferenceId
in interface AsyncCommand
public final void setJobInstanceId(java.lang.Long val)
SCHSTATUS
table.setJobInstanceId
in interface AsyncCommand
val
- This is the job instance id.public final void setJobReferenceId(java.lang.Long val)
SCHCONFIG
table.setJobReferenceId
in interface AsyncCommand
val
- This is the job reference id.public TypedProperty getResponseProperties()
getResponseProperties
in interface ControllerCommand
getResponseProperties
in class ControllerCommandImpl