hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/statemachine/DatanodeStateMachine.java
public synchronized void stopDaemon() {
    try {
      context.setState(DatanodeStates.SHUTDOWN);
      this.close();
      LOG.info("Ozone container server stopped.");
    } catch (IOException e) {
      LOG.error("Stop ozone container server failed.", e);
    }
  }
/**
   * Stop the daemon thread of the datanode state machine.
   */
Stop the daemon thread of the datanode state machine.
Stop the daemon thread of the datanode state machine .
public synchronized void stopDaemon() {
    try {
      context.setState(DatanodeStates.SHUTDOWN);
      this.close();
      LOG.info("Ozone container server stopped.");
    } catch (IOException e) {
      LOG.error("Stop ozone container server failed.", e);
    }
  }
public synchronized void stopDaemon ( ) { try { context . setState ( DatanodeStates . SHUTDOWN ) ; this . close ( ) ; LOG . info ( "Ozone container server stopped." ) ; } catch ( IOException e ) { LOG . error ( "Stop ozone container server failed." , e ) ; } }
Stop the daemon thread of the datanode state machine.
Stop the daemon thread of the datanode state machine .