Commit d8ac388395254edbdbbc9e7c1eb14261cc46507d
1 parent
ba1dc4db
Fixed NPE in DataEntry objects and logging statistics of rule chains/nodes
Showing
9 changed files
with
23 additions
and
8 deletions
... | ... | @@ -50,6 +50,9 @@ public class RuleNodeActor extends ComponentActor<RuleNodeId, RuleNodeActorMessa |
50 | 50 | case RULE_TO_SELF_MSG: |
51 | 51 | onRuleNodeToSelfMsg((RuleNodeToSelfMsg) msg); |
52 | 52 | break; |
53 | + case STATS_PERSIST_TICK_MSG: | |
54 | + onStatsPersistTick(id); | |
55 | + break; | |
53 | 56 | default: |
54 | 57 | return false; |
55 | 58 | } | ... | ... |
... | ... | @@ -159,11 +159,11 @@ public abstract class ComponentActor<T extends EntityId, P extends ComponentMsgP |
159 | 159 | } |
160 | 160 | } |
161 | 161 | |
162 | - protected void logLifecycleEvent(ComponentLifecycleEvent event) { | |
162 | + private void logLifecycleEvent(ComponentLifecycleEvent event) { | |
163 | 163 | logLifecycleEvent(event, null); |
164 | 164 | } |
165 | 165 | |
166 | - protected void logLifecycleEvent(ComponentLifecycleEvent event, Exception e) { | |
166 | + private void logLifecycleEvent(ComponentLifecycleEvent event, Exception e) { | |
167 | 167 | systemContext.persistLifecycleEvent(tenantId, id, event, e); |
168 | 168 | } |
169 | 169 | ... | ... |
... | ... | @@ -15,4 +15,12 @@ |
15 | 15 | */ |
16 | 16 | package org.thingsboard.server.actors.stats; |
17 | 17 | |
18 | -public final class StatsPersistTick {} | |
18 | +import org.thingsboard.server.common.msg.MsgType; | |
19 | +import org.thingsboard.server.common.msg.TbActorMsg; | |
20 | + | |
21 | +public final class StatsPersistTick implements TbActorMsg{ | |
22 | + @Override | |
23 | + public MsgType getMsgType() { | |
24 | + return MsgType.STATS_PERSIST_TICK_MSG; | |
25 | + } | |
26 | +} | ... | ... |