code: private void setState(State newState) {
          m_logger.debug("Entering state: {}", newState.toString());
          synchronized (m_stateChangeLock) {
              m_state = newState;
              m_stateChangeLock.notifyAll();
          }
      }
docs: Set the service's state and log the change. Notify all waiters of state change.