public class RuleEngineServiceImpl extends java.lang.Object implements RuleEngineService, cc.openxiot.gateway.device.typedef.listener.PropertyListener, cc.openxiot.gateway.device.typedef.listener.EventListener, TimerListener
| Constructor and Description |
|---|
RuleEngineServiceImpl(io.vertx.core.Vertx vertx,
java.util.function.Function<cn.geekcity.xiot.spec.device.Device,io.vertx.core.Future<cn.geekcity.xiot.spec.image.DeviceImage>> getImage,
cn.geekcity.xiot.spec.time.service.DayService day,
RuleService rule,
RuleAgentService agent,
cc.openxiot.gateway.device.typedef.manager.DeviceManager manager) |
| Modifier and Type | Method and Description |
|---|---|
void |
onEventOccurred(java.lang.String traceId,
cn.geekcity.xiot.spec.where.Where where,
cn.geekcity.xiot.spec.operation.EventOperation event) |
void |
onPropertyChanged(java.lang.String traceId,
cn.geekcity.xiot.spec.where.Where where,
cn.geekcity.xiot.spec.operation.PropertyOperation property) |
void |
onTimerTriggered(java.lang.String ruleId) |
io.vertx.core.Future<java.lang.Void> |
start()
启动
|
io.vertx.core.Future<java.lang.Void> |
stop()
停止
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatepublic RuleEngineServiceImpl(io.vertx.core.Vertx vertx,
java.util.function.Function<cn.geekcity.xiot.spec.device.Device,io.vertx.core.Future<cn.geekcity.xiot.spec.image.DeviceImage>> getImage,
cn.geekcity.xiot.spec.time.service.DayService day,
RuleService rule,
RuleAgentService agent,
cc.openxiot.gateway.device.typedef.manager.DeviceManager manager)
public io.vertx.core.Future<java.lang.Void> start()
RuleEngineServicestart in interface RuleEngineServicepublic io.vertx.core.Future<java.lang.Void> stop()
RuleEngineServicestop in interface RuleEngineServicepublic void onEventOccurred(java.lang.String traceId,
cn.geekcity.xiot.spec.where.Where where,
cn.geekcity.xiot.spec.operation.EventOperation event)
onEventOccurred in interface cc.openxiot.gateway.device.typedef.listener.EventListenerpublic void onPropertyChanged(java.lang.String traceId,
cn.geekcity.xiot.spec.where.Where where,
cn.geekcity.xiot.spec.operation.PropertyOperation property)
onPropertyChanged in interface cc.openxiot.gateway.device.typedef.listener.PropertyListenerpublic void onTimerTriggered(java.lang.String ruleId)
onTimerTriggered in interface TimerListener