Klasse SchedulerController
java.lang.Object
org.imixs.workflow.engine.scheduler.SchedulerController
- Alle implementierten Schnittstellen:
Serializable
- Bekannte direkte Unterklassen:
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
- Autor:
- rsoika
- Siehe auch:
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetName()voidinit()This method load the config entity after postContstruct.millisToShortDHMS(int duration) converts time (in milliseconds) to human-readable format "Ungültige Eingabe: "<"dd:>hh:mm:ss"voidrefresh()This method updates the scheduler configuration with the current timer informationvoidrestartScheduler(jakarta.faces.event.ActionEvent event) voidSaves the current scheduler configuration.voidsetConfiguration(ItemCollection configuration) voidvoidsetSchedulerClass(String schedulerClass) voidstarts the timer servicevoid
-
Konstruktordetails
-
SchedulerController
public SchedulerController()
-
-
Methodendetails
-
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- Löst aus:
ParseExceptionAccessDeniedExceptionException
-
stopScheduler
public void stopScheduler() -
restartScheduler
- Löst aus:
Exception
-
millisToShortDHMS
converts time (in milliseconds) to human-readable format "Ungültige Eingabe: "<"dd:>hh:mm:ss"- Gibt zurück:
-