Examples of shutdownAll()


Examples of com.google.dataconnector.util.ShutdownManager.shutdownAll()

    final ShutdownManager shutdownManager = injector.getInstance(ShutdownManager.class);
    // Add shutdown hook to call shutdown if control c or OS SIGTERM is received.
    Runtime.getRuntime().addShutdownHook(new Thread() {
      @Override
      public void run() {
        shutdownManager.shutdownAll();
      }
    });

    // Starts the client in a loop that exponentially backs off.
    while (true) {
View Full Code Here

Examples of com.google.dataconnector.util.ShutdownManager.shutdownAll()

          break;
        }
        injector.getInstance(Client.class).parseFlagsValidateAndConnect(args);
      } catch (Exception e) { // This is an outside server loop. Catch everything.
        LOG.error("Agent died.", e);
        shutdownManager.shutdownAll();
      }
    }
  }

  /**
 
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.