public interface EventSchedulerService
| Modifier and Type | Method and Description |
|---|---|
EventGenerator |
createEventGenerator(java.lang.String id,
java.lang.String eventType)
Creates an event generator which will be resposnible for generating a single event or a sequence of events of
the supplied type on a defined time basis.
|
void |
discardEventGenerator(java.lang.String id)
Removes an event generator from the Event Scheduler service.
|
Enumerator |
enumerateEventGenerators()
Enumerates all currently active event generators
|
EventGenerator |
getEventGenerator(java.lang.String id)
If the id is not
null it returns the event generator with the supplied id if such exists in the database. |
EventGenerator createEventGenerator(java.lang.String id, java.lang.String eventType) throws ManagementException
start() method.id - identifier of this event generator. The identifier must be unique and it is responsibility
of the application to ensure its uniqueness. For avoiding id collisions it is recommended to
prefix the event identifier with the string following java package naming convention. Build-in mPRM
modules use identifiers prefixed with "mprm.".eventType - type of the generated by this EventGenerator events.ManagementException - if an error occurs while creating generatorEventGenerator getEventGenerator(java.lang.String id) throws ManagementException
null it returns the event generator with the supplied id if such exists in the database.
If the id is null the method returns this event generator will produce
the next event first.id - the id of the event generator.ManagementException - if an error occurs while constructing the result.Enumerator enumerateEventGenerators() throws ManagementException
ManagementException - if an error occurs while constructing the result.void discardEventGenerator(java.lang.String id)
throws ManagementException
id - the id of the event generator to be discardedManagementException - if an error occurs while discarding event generatorCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.