Particiapnts now send status message after registration
This adds participants to the DB in Runtime
Issue-ID: POLICY-3588
Change-Id: Idb62b429a6e2e0047d6946d9718c78560a7cd659
Signed-off-by: saul.gill <saul.gill@est.tech>
public void handleParticipantRegisterAck(ParticipantRegisterAck participantRegisterAckMsg) {
LOGGER.debug("ParticipantRegisterAck message received as responseTo {}",
participantRegisterAckMsg.getResponseTo());
+ if (ParticipantHealthStatus.UNKNOWN.equals(this.healthStatus)) {
+ this.healthStatus = ParticipantHealthStatus.HEALTHY;
+ }
+
+ if (ParticipantState.UNKNOWN.equals(this.state)) {
+ this.state = ParticipantState.PASSIVE;
+ }
+ sender.sendParticipantStatus(makeHeartbeat(false));
}
/**