@ManagedResource(description="Controls execution of scheduled tasks")
public interface SchedulingMBean
SchedulingAPI
.Modifier and Type | Method and Description |
---|---|
boolean |
isActive() |
java.lang.String |
printActiveScheduledTasks() |
java.lang.String |
processScheduledTasks() |
java.lang.String |
removeExecutionHistory(java.lang.String age,
java.lang.String maxPeriod) |
void |
setActive(boolean value) |
boolean isActive()
SchedulingAPI.isActive()
void setActive(boolean value)
value
- true to activate schedulingSchedulingAPI.setActive(boolean)
@ManagedOperation(description="Print active scheduled tasks") java.lang.String printActiveScheduledTasks()
@ManagedOperation(description="Starts the processing once, regardless of \'active\' attribute") java.lang.String processScheduledTasks()
@ManagedOperation(description="Removes executions occurred earlier than \'age\' for tasks with period lesser than \'maxPeriod\'") @ManagedOperationParameter(name="age",description="Execution age in hours") @ManagedOperationParameter(name="maxPeriod",description="Max task period in hours") java.lang.String removeExecutionHistory(java.lang.String age, java.lang.String maxPeriod)