Package org.sonar.process

Examples of org.sonar.process.StopWatcher


  public void start(Props props) {
    if (props.valueAsBoolean(ProcessConstants.ENABLE_STOP_COMMAND, false)) {
      // stop application when file <temp>/app.stop is created
      File tempDir = props.nonNullValueAsFile(ProcessConstants.PATH_TEMP);
      ProcessCommands commands = new ProcessCommands(tempDir, "app");
      stopWatcher = new StopWatcher(commands, this);
      stopWatcher.start();
    }
    monitor.start(createCommands(props));
    monitor.awaitTermination();
  }
View Full Code Here

TOP

Related Classes of org.sonar.process.StopWatcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.