WebSphere:*,type=WASScheduler
MBean WASScheduler
Exposes Scheduler API through JMX and also provides statistic info.
Attribute Summary | |
java.lang.Long | pollInterval |
java.lang.Integer | daemonThreads |
java.lang.Integer | querySize |
com.ibm.websphere.management.statistics.Stats | stats |
Operation Summary | |
void | startDaemon( Starts all of the Scheduler Daemon threads |
void | stopDaemon() Stops all of the Scheduler Daemon threads |
com.ibm.websphere.scheduler.TaskInfo[] | findTasksByName( Finds all TaskInfo objects with a specified name and index range. |
com.ibm.websphere.scheduler.TaskStatus[] | findTaskStatusByName( Finds all TaskStatus objects with a specified name that were created by the caller's application. |
com.ibm.websphere.scheduler.TaskStatus | create( Creates a task in the persistent store based upon the data found in the TaskInfo object. |
java.lang.Object | createTaskInfo( Creates an instance of the specified TaskInfo interface class. |
com.ibm.websphere.scheduler.TaskStatus | cancel( Cancels a task. |
com.ibm.websphere.scheduler.TaskStatus | getStatus( Retrieves the current status of a task. |
com.ibm.websphere.scheduler.TaskInfo | getTask( Retrieves the current task. |
com.ibm.websphere.scheduler.TaskStatus | purge( Deletes a completed or cancelled task from the persistent store. |
com.ibm.websphere.scheduler.TaskStatus | resume( Resumes a task which has been suspended. |
com.ibm.websphere.scheduler.TaskStatus | suspend( Suspends a task. |
Attribute Detail |
public java.lang.Long pollInterval
public java.lang.Integer daemonThreads
public java.lang.Integer querySize
public com.ibm.websphere.management.statistics.Stats stats
Operation Detail |
public void startDaemon(java.lang.Integer delay
)
delay
-
The number of milliseconds to wait before each Scheduler daemon thread starts the first poll.
public void stopDaemon()
public com.ibm.websphere.scheduler.TaskInfo[] findTasksByName(java.lang.String name,
java.lang.Integer beginIndex,
java.lang.Integer endIndex
)
name
-
The name of the task to be found.beginIndex
-
The beginning index of the tasks to retrieve (0 is the first element).endIndex
-
The end index of the tasks to retrieve. If endIndex is greater than the total number of tasks, then the endIndex is ignored.
public com.ibm.websphere.scheduler.TaskStatus[] findTaskStatusByName(java.lang.String name,
java.lang.Integer beginIndex,
java.lang.Integer endIndex
)
name
-
The name of the task to be found.beginIndex
-
The beginning index of the tasks to retrieve (0 is the first element).endIndex
-
The end index of the tasks to retrieve. If endIndex is greater than the total number of tasks, then the endIndex is ignored.
public com.ibm.websphere.scheduler.TaskStatus create(com.ibm.websphere.scheduler.TaskInfo taskinfo
)
taskinfo
-
Any object that implements the TaskInfo interface.
public java.lang.Object createTaskInfo(java.lang.Class taskInfoInterface
)
taskInfoInterface
-
The interface of the TaskInfo implementation you would like to create.
public com.ibm.websphere.scheduler.TaskStatus cancel(java.lang.String taskId,
java.lang.Boolean purgeAlso
)
taskId
-
The Task ID of the task which is to be canceled.purgeAlso
-
Specifies that the task should be purged immediately.
public com.ibm.websphere.scheduler.TaskStatus getStatus(java.lang.String taskId
)
taskId
-
The Task ID of the task that was assigned when created.
public com.ibm.websphere.scheduler.TaskInfo getTask(java.lang.String taskId
)
taskId
-
The Task ID of the task that was assigned when created.
public com.ibm.websphere.scheduler.TaskStatus purge(java.lang.String taskId
)
taskId
-
The Task ID of the task to be deleted.
public com.ibm.websphere.scheduler.TaskStatus resume(java.lang.String taskId
)
taskId
-
The Task ID of the task to be resumed.
public com.ibm.websphere.scheduler.TaskStatus suspend(java.lang.String taskId
)
taskId
-
The Task ID of the task to be suspended.