Search in sources :

Example 6 with RuleNodeException

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()));
}
Also used : RuleNodeException(org.thingsboard.server.common.msg.queue.RuleNodeException)

Aggregations

RuleNodeException (org.thingsboard.server.common.msg.queue.RuleNodeException)6 TbMsg (org.thingsboard.server.common.msg.TbMsg)3 TbRuleNodeUpdateException (org.thingsboard.server.actors.TbRuleNodeUpdateException)2 RuleNodeId (org.thingsboard.server.common.data.id.RuleNodeId)2 RuleEngineException (org.thingsboard.server.common.msg.queue.RuleEngineException)2 ArrayList (java.util.ArrayList)1 Collections (java.util.Collections)1 HashMap (java.util.HashMap)1 List (java.util.List)1 Map (java.util.Map)1 Set (java.util.Set)1 UUID (java.util.UUID)1 Collectors (java.util.stream.Collectors)1 Slf4j (lombok.extern.slf4j.Slf4j)1 TbRelationTypes (org.thingsboard.rule.engine.api.TbRelationTypes)1 ActorSystemContext (org.thingsboard.server.actors.ActorSystemContext)1 TbActorCtx (org.thingsboard.server.actors.TbActorCtx)1 TbActorRef (org.thingsboard.server.actors.TbActorRef)1 TbEntityActorId (org.thingsboard.server.actors.TbEntityActorId)1 DefaultActorService (org.thingsboard.server.actors.service.DefaultActorService)1