private void fireStateChangedOperatorEvent() {
   TSAManagementEventPayload tsaManagementEventPayload =
       new TSAManagementEventPayload("TSA.L2.STATE_CHANGE");
   tsaManagementEventPayload.getAttributes().put("State", state.getName());
   TerracottaRemoteManagement.getRemoteManagementInstance()
       .sendEvent(tsaManagementEventPayload.toManagementEvent());
   operatorEventLogger.fireOperatorEvent(
       TerracottaOperatorEventFactory.createClusterNodeStateChangedEvent(state.getName()));
 }
  @Override
  public void l2StateChanged(StateChangedEvent sce) {
    State state = sce.getCurrentState();

    if (state.equals(StateManager.ACTIVE_COORDINATOR)) {
      server.updateActivateTime();
    }

    debugPrintln(
        "*****  msg=["
            + stateChangeNotificationInfo.getMsg(state)
            + "] attrName=["
            + stateChangeNotificationInfo.getAttributeName(state)
            + "] attrType=["
            + stateChangeNotificationInfo.getAttributeType(state)
            + "] stateName=["
            + state.getName()
            + "]");

    _sendNotification(
        stateChangeNotificationInfo.getMsg(state),
        stateChangeNotificationInfo.getAttributeName(state),
        stateChangeNotificationInfo.getAttributeType(state),
        Boolean.FALSE,
        Boolean.TRUE);
  }
 public void setCurrentL2State(State state) {
   map.put(L2_STATE_KEY, state.getName());
 }