use of org.thingsboard.server.common.msg.queue.RuleNodeException in project thingsboard by thingsboard.
the class TbToRuleNodeActorMsg method onTbActorStopped.
@Override
public void onTbActorStopped(TbActorStopReason reason) {
String message = reason == TbActorStopReason.STOPPED ? "Rule node stopped" : "Failed to initialize rule node!";
msg.getCallback().onFailure(new RuleNodeException(message, ctx.getRuleChainName(), ctx.getSelf()));
}
Aggregations