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 |
Operation Summary | |
---|---|
void | startDaemon( Starts all of the Scheduler Daemon threads |
void | stopDaemon() Stops all of the Scheduler Daemon threads |
TaskInfo[] | findTasksByName( Finds all TaskInfo objects with a specified name and index range. |
TaskStatus[] | findTaskStatusByName( Finds all TaskStatus objects with a specified name that were created by the caller's application. |
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. |
TaskStatus | cancel( Cancels a task. |
TaskStatus | getStatus( Retrieves the current status of a task. |
TaskInfo | getTask( Retrieves the current task. |
TaskStatus | purge( Deletes a completed or cancelled task from the persistent store. |
TaskStatus | resume( Resumes a task which has been suspended. |
TaskStatus | suspend( Suspends a task. |
Attribute Detail |
---|
public java.lang.Long pollInterval
public java.lang.Integer daemonThreads
public java.lang.Integer querySize
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 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 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 TaskStatus create(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 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 TaskStatus getStatus(java.lang.String taskId
)
taskId
-
The Task ID of the task that was assigned when created.public TaskInfo getTask(java.lang.String taskId
)
taskId
-
The Task ID of the task that was assigned when created.public TaskStatus purge(java.lang.String taskId
)
taskId
-
The Task ID of the task to be deleted.public TaskStatus resume(java.lang.String taskId
)
taskId
-
The Task ID of the task to be resumed.public TaskStatus suspend(java.lang.String taskId
)
taskId
-
The Task ID of the task to be suspended.