Package org.sonatype.nexus.bootstrap.monitor

Examples of org.sonatype.nexus.bootstrap.monitor.CommandMonitorTalker.send()


    long period = 1000;

    // Then ping for a bit and finally give up and ask it to halt
    while (true) {
      try {
        talker.send(PingCommand.NAME);
      }
      catch (ConnectException e) {
        // likely its shutdown already
        break;
      }
View Full Code Here


      }

      // If we have waited long enough, then ask remote to halt
      if (System.currentTimeMillis() - started > max) {
        try {
          talker.send(HaltCommand.NAME);
          break;
        }
        catch (Exception e) {
          // ignore, not sure there is much we can do
          break;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.