Examples of ShutdownHook


Examples of org.atmosphere.cpr.AtmosphereConfig.ShutdownHook

        return super.initialize(id, uri, config);
    }

    public void setUp() {
        topic = HAZELCAST_INSTANCE.<String>getTopic(getID());
        config.shutdownHook(new ShutdownHook() {
            @Override
            public void shutdown() {
                HAZELCAST_INSTANCE.shutdown();
                isClosed.set(true);
            }
View Full Code Here

Examples of org.saf.shutdownhook.ShutdownHook

 
  private void init() {
    this.applicationChecker = new ApplicationChecker(this);
    this.applicationCheckerThread =
      new Thread(this.applicationChecker, "memory checker");
    this.shutdownHook = new ShutdownHook()
    this.shutdownHook.addShutdownHookListener(this);
    this.shutdownHook.addShutdownHookListener(this.applicationChecker);
    this.shutdownHookThread =
      new Thread(shutdownHook, SHUTDOWN_HOOK_NAME);
  }
View Full Code Here

Examples of voxo.server.threads.ShutdownHook

    this.hbThread.start();
    if(debug)
      verbose.addConsoleMsg(Messages.getString("ServerController.DBG_InitHeartBeatThreadNotice"), EnumSet.of(EnumVerbose.ToConsole)); //$NON-NLS-1$
   
    // Thread shutdown control
    Runtime.getRuntime().addShutdownHook(new ShutdownHook(nr, hb));
    if(debug)
      verbose.addConsoleMsg(Messages.getString("ServerController.DBG_InitShutdownHookNotice"), EnumSet.of(EnumVerbose.ToConsole)); //$NON-NLS-1$

    // Finished init
    verbose.addConsoleMsg(Messages.getString("ServerController.DBG_InitServerOnlineNotice"), EnumSet.of(EnumVerbose.ToConsole)); //$NON-NLS-1$
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.