Class SchedulerController
java.lang.Object
org.imixs.workflow.engine.scheduler.SchedulerController
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
WorkflowSchedulerController
The SchedulerController is a front-end controller to start and stop
schedulers. A scheduler configuration is defined by the item type="scheduler"
and the item name.
The class can be subclassed to add specific data to the scheduler configuration.
- Version:
- 1.0
- Author:
- rsoika
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
void
init()
This method load the config entity after postContstruct.millisToShortDHMS
(int duration) converts time (in milliseconds) to human-readable format "<dd:>hh:mm:ss"void
refresh()
This method updates the scheduler configuration with the current timer informationvoid
restartScheduler
(jakarta.faces.event.ActionEvent event) void
Saves the current scheduler configuration.void
setConfiguration
(ItemCollection configuration) void
void
setSchedulerClass
(String schedulerClass) void
starts the timer servicevoid
-
Constructor Details
-
SchedulerController
public SchedulerController()
-
-
Method Details
-
init
@PostConstruct public void init()This method load the config entity after postContstruct. If no Entity exists than the ConfigService EJB creates a new config entity. -
getName
-
setName
-
getSchedulerClass
-
setSchedulerClass
-
getConfiguration
-
setConfiguration
-
saveConfiguration
public void saveConfiguration()Saves the current scheduler configuration. -
refresh
public void refresh()This method updates the scheduler configuration with the current timer information -
getSchedulerService
-
startScheduler
starts the timer service -
stopScheduler
public void stopScheduler() -
restartScheduler
- Throws:
Exception
-
millisToShortDHMS
converts time (in milliseconds) to human-readable format "<dd:>hh:mm:ss"- Returns:
-