in fix/core/src/main/java/deltix/connector/fix/FixTradeConnector.java [298:315]
protected void onStatusUpdate(SessionStatus previous, SessionStatus next) {
LOG.info("Connector %s status has been changed %s -> %s")
.with(name)
.with(previous)
.with(next);
if (next == SessionStatus.APPLICATION_CONNECTED) {
statusIndicator.setOrdered(TradeConnectorStatusIndicator.CONNECTED);
sessionStatus = deltix.ember.message.trade.SessionStatus.CONNECTED;
fireSessionStatusEvent(sessionStatus);
} else if (previous == SessionStatus.APPLICATION_CONNECTED) {
statusIndicator.setOrdered(TradeConnectorStatusIndicator.DISCONNECTED);
sessionStatus = deltix.ember.message.trade.SessionStatus.DISCONNECTED;
fireSessionStatusEvent(sessionStatus);
} else if (shutdownRequested && next == SessionStatus.DISCONNECTED) {
fireShutdownResponse();
}
}