Examples of shutdown()


Examples of org.sdnplatform.sync.internal.SyncManager.shutdown()

                                                 "nodes", nodeString);
                syncManagers[i].doUpdateConfiguration();
                waitForConnection(syncManagers[i], (short)1, false, 2000);
            }
        } finally {
            oldNode.shutdown();
        }
        waitForFullMesh(2000);

        client1.put("newkey", "newvalue");
        waitForValue(client2, "key", "value", 2000, "client4");
View Full Code Here

Examples of org.sdnplatform.sync.internal.config.bootstrap.Bootstrap.shutdown()

                        for (HostAndPort host : hosts) {
                            if (bs.bootstrap(host, localNode))
                                break;
                        }
                    } finally {
                        bs.shutdown();
                    }
                    if (logger.isDebugEnabled()) {
                        logger.debug("[{}] Successfully bootstrapped",
                                     unsyncStoreClient.getValue(LOCAL_NODE_ID));
                    }
View Full Code Here

Examples of org.securegraph.Graph.shutdown()

            }

            LOGGER.info("shutdown: Graph");
            if (InjectHelper.hasInjector()) {
                Graph graph = InjectHelper.getInstance(Graph.class);
                graph.shutdown();
            }

            Thread.sleep(1000);

            if (!LumifyTestClusterConfigurationLoader.isTestServer()) {
View Full Code Here

Examples of org.servicemix.jbi.container.JBIContainer.shutDown()

     
      assertEquals(1, receiver1.getMessageList().getMessageCount());
      assertEquals(1, receiver2.getMessageList().getMessageCount());
      assertEquals(0, sender.responses.size());
    } finally {
      container.shutDown();
    }
  }
 
  private ActivationSpec createReceiverAS(String id, Object component) {
    ActivationSpec as = new ActivationSpec(id, component);
View Full Code Here

Examples of org.servicemix.jbi.framework.ComponentMBeanImpl.shutDown()

        String result = "NOT FOUND: " + componentName;
        ObjectName objName = getComponentByName(componentName);
        if (objName != null) {
            ComponentMBeanImpl mbean = (ComponentMBeanImpl) beanMap.get(objName);
            if (mbean != null) {
                mbean.shutDown();
                result = mbean.getCurrentState();
            }
        }
        return result;
    }
View Full Code Here

Examples of org.sonatype.nexus.internal.httpclient.HttpClientFactoryImpl.shutdown()

        server.stop();
      }
    }
    finally {
      if (httpClientFactory != null) {
        httpClientFactory.shutdown();
      }
      unsetParameters();
    }
  }
View Full Code Here

Examples of org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.shutdown()

        // register a shutdown hook with the JVM
        Runtime.getRuntime().addShutdownHook(new Thread() {
            @Override
            public void run() {
                System.out.println("Shutting down BigOperationWorker");
                listenerContainer.shutdown();
            }
        });

        // start up the listener. this will block until JVM is killed.
        listenerContainer.start();
View Full Code Here

Examples of org.springframework.roo.shell.eclipse.Bootstrap.shutdown()

    if (bootstrap != null) {
      final Bootstrap shutdownBootstrap = bootstrap;
      Job shutdownJob = new Job("Shutdown Roo") {
        @Override
        protected IStatus run(IProgressMonitor monitor) {
          shutdownBootstrap.shutdown();
          return Status.OK_STATUS;
        }
      };
      shutdownJob.schedule();
    }
View Full Code Here

Examples of org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor.shutdown()

        latch.await(30000L, TimeUnit.MILLISECONDS);
        assertEquals("Latch should be zero", 0, latch.getCount());

        long delta = System.currentTimeMillis() - start;
        assertTrue("Should be faster than 20000 millis, took " + delta + " millis", delta < 20000L);
        executor.shutdown();
    }

    protected CamelContext createCamelContext() throws Exception {
        CamelContext camelContext = super.createCamelContext();
View Full Code Here

Examples of org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler.shutdown()

      }
  }

  logger.debug("Stopping app...");

  scheduler.shutdown();
  context.close();

  logger.debug("Application stopped.");

  System.exit(0);
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.