Class RulesRefresher
java.lang.Object
org.openhab.core.model.rule.jvmmodel.RulesRefresher
- All Implemented Interfaces:
ReadyService.ReadyTracker
The
RulesRefresher
is responsible for reloading rules resources every time.- Author:
- Oliver Libutzki - Initial contribution, Kai Kreuzer - added delayed execution, Maoliang Huang - refactor
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRulesRefresher
(ModelRepository modelRepository, ItemRegistry itemRegistry, ThingRegistry thingRegistry, ReadyService readyService) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
activate()
protected void
addActionService
(ActionService actionService) protected void
addThingActions
(ThingActions thingActions) protected void
void
onReadyMarkerAdded
(ReadyMarker readyMarker) Gets called when a newReadyMarker
was registered as being "ready".void
onReadyMarkerRemoved
(ReadyMarker readyMarker) Gets called when aReadyMarker
was unregistered.protected void
removeActionService
(ActionService actionService) protected void
removeThingActions
(ThingActions thingActions) protected void
scheduleRuleRefresh
(long delay)
-
Field Details
-
RULES_REFRESH_MARKER_TYPE
- See Also:
-
RULES_REFRESH
- See Also:
-
-
Constructor Details
-
RulesRefresher
public RulesRefresher(ModelRepository modelRepository, ItemRegistry itemRegistry, ThingRegistry thingRegistry, ReadyService readyService)
-
-
Method Details
-
activate
protected void activate() -
deactivate
protected void deactivate() -
addActionService
-
removeActionService
-
addThingActions
-
removeThingActions
-
scheduleRuleRefresh
protected void scheduleRuleRefresh(long delay) -
onReadyMarkerAdded
Description copied from interface:ReadyService.ReadyTracker
Gets called when a newReadyMarker
was registered as being "ready".- Specified by:
onReadyMarkerAdded
in interfaceReadyService.ReadyTracker
- Parameters:
readyMarker
-
-
onReadyMarkerRemoved
Description copied from interface:ReadyService.ReadyTracker
Gets called when aReadyMarker
was unregistered.- Specified by:
onReadyMarkerRemoved
in interfaceReadyService.ReadyTracker
- Parameters:
readyMarker
-
-