ComponentActor.init calls createProcessor on every init attempt: the
mailbox retries a failed start, and re-initializes an INIT_FAILED actor
(failed start, or failed restart after a configuration update) on the
next RuleNodeUpdatedMsg, reusing the same actor instance. Reusing the
snapshot from actor creation there would keep a stale configuration and
ignore later fixes, so later attempts read the rule node from the
database, as before.
- Resolve affected tenants in PartitionChangeEvent.getAffectedTenants(),
returning null (all tenants) for non rule engine events, empty diffs and
shared queue changes.
- HashPartitionService adds isolated tenants whose managed status changed
without a change of their own queue keys.
- PartitionChangeMsg: forAllTenants/forTenants factories instead of a null
sentinel; affected tenants excluded from toString().
- Fold the AppActor log line into the existing DefaultActorService one.
- Tests: priority ordering in ActorSystemTest, AppActorTest on a real actor
system, DefaultActorServiceTest through onTbApplicationEvent, the
managed-status scenario in HashPartitionServiceTest.
TbActorSystem/TbActorCtx already supported broadcasting to a filtered
subset of children, and separately broadcasting to all children at a
given priority, but not both together. Expose the existing internal
implementation (already used for the priority-only case) as a public
filtered + prioritized overload, so callers can target a subset of
children without giving up delivery priority.
* Moved resetting ruleEngineStats to Consumer
* Moved counters to Map in TbCoreConsumerStats
* Added actuator and MetricsService
* Added metrics to core and rule_engine consumers
* Replaced summary with counters
* Removed most setters and getters from TbRuleEngine stats
* Added stats to Transport consumer
* Added JsInvoke actuator stats
* Removed MetricsService