public interface JobRuntimeMBean extends RuntimeMBean
| Modifier and Type | Field and Description |
|---|---|
static String |
CANCELLED
State indicating the Job has been cancelled
|
static String |
RUNNING
State indicating that the job is running.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancel this job and prevent it from executing again in any server, not just
this server.
|
String |
getDescription()
Get the description of the submitted
commonj.timers.TimerListener. |
String |
getID()
The unique ID corresponding to this job
|
long |
getLastLocalExecutionTime()
Returns the most recent execution time of this job in the local server.
|
long |
getLocalExecutionCount()
Returns the number of times this job was executed locally.
|
long |
getPeriod()
Returns the specified periodicity of this job
|
String |
getState()
Returns the state of the task.
|
long |
getTimeout()
Returns when the job will be executed next
|
Serializable |
getTimerListener()
Get the
TimerListener associated with this job. |
addPropertyChangeListener, removePropertyChangeListenergetMBeanInfo, getName, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setName, setParentgetAttribute, getAttributes, invoke, setAttribute, setAttributespostDeregister, postRegister, preDeregister, preRegisteraddNotificationListener, getNotificationInfo, removeNotificationListenerstatic final String RUNNING
static final String CANCELLED
Serializable getTimerListener()
TimerListener associated with this job. This
call involves a database roundtrip and should be used too frequently.String getDescription()
commonj.timers.TimerListener.
Returns commonj.timers.TimerListener#toString.String getID()
long getPeriod()
long getTimeout()
long getLastLocalExecutionTime()
long getLocalExecutionCount()
void cancel()
String getState()