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
Getter:
administrator
operator
configurator
monitor
deployer
adminsecuritymanager
Setter:
administrator
operator
public java.lang.Integer daemonThreads
Getter:
administrator
operator
configurator
monitor
deployer
adminsecuritymanager
Setter:
administrator
operator
public java.lang.Integer querySize
Getter:
administrator
operator
configurator
monitor
deployer
adminsecuritymanager
Setter:
administrator
operator
Operation Detail |
---|
public void startDaemon(
java.lang.Integer delay
)
Starts all of the Scheduler Daemon threads
delay
-
The number of milliseconds to wait before each Scheduler daemon thread starts the first poll.
administrator
operator
public void stopDaemon()
Stops all of the Scheduler Daemon threads
administrator
operator
public TaskInfo[] findTasksByName(
java.lang.String name,
java.lang.Integer beginIndex,
java.lang.Integer endIndex
)
Finds all TaskInfo objects with a specified name and index range.
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.
administrator
operator
public TaskStatus[] findTaskStatusByName(
java.lang.String name,
java.lang.Integer beginIndex,
java.lang.Integer endIndex
)
Finds all TaskStatus objects with a specified name that were created by the caller's application.
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.
administrator
operator
public TaskStatus create(
TaskInfo taskinfo
)
Creates a task in the persistent store based upon the data found in the TaskInfo object.
taskinfo
-
Any object that implements the TaskInfo interface.
administrator
operator
public java.lang.Object createTaskInfo(
java.lang.Class taskInfoInterface
)
Creates an instance of the specified TaskInfo interface class.
taskInfoInterface
-
The interface of the TaskInfo implementation you would like to create.
administrator
operator
public TaskStatus cancel(
java.lang.String taskId,
java.lang.Boolean purgeAlso
)
Cancels a task.
taskId
-
The Task ID of the task which is to be canceled. purgeAlso
-
Specifies that the task should be purged immediately.
administrator
operator
public TaskStatus getStatus(
java.lang.String taskId
)
Retrieves the current status of a task.
taskId
-
The Task ID of the task that was assigned when created.
administrator
operator
public TaskInfo getTask(
java.lang.String taskId
)
Retrieves the current task.
taskId
-
The Task ID of the task that was assigned when created.
administrator
operator
public TaskStatus purge(
java.lang.String taskId
)
Deletes a completed or cancelled task from the persistent store.
taskId
-
The Task ID of the task to be deleted.
administrator
operator
public TaskStatus resume(
java.lang.String taskId
)
Resumes a task which has been suspended.
taskId
-
The Task ID of the task to be resumed.
administrator
operator
public TaskStatus suspend(
java.lang.String taskId
)
Suspends a task.
taskId
-
The Task ID of the task to be suspended.
administrator
operator