Examples of shutdown()


Examples of org.jboss.Main.shutdown()

      log.info("TestBean.CS: "+testBeanCS);
      log.info("TestBean.ClassLoader: "+testBean.getClass().getClassLoader());
     

      // Shutdown
      main.shutdown();
   }

   private void assertInstalled(Kernel kernel, String name)
   {
      KernelRegistry registry = kernel.getRegistry();
View Full Code Here

Examples of org.jboss.arquillian.core.spi.Manager.shutdown()

                manager.fire(new ProcessHttpRequest());
            } finally {
                manager.fire(new AfterRequest(request, response));
                manager.fire(new AfterSuite());

                manager.shutdown();
            }

        } catch (ClassNotFoundException e) {
            throw new IllegalStateException("Default service loader can't be found: " + DEFAULT_EXTENSION_CLASS, e);
        }
View Full Code Here

Examples of org.jboss.arquillian.test.spi.TestRunnerAdaptor.shutdown()

                  try
                  {
                     if(adaptor != null)
                     {
                        adaptor.afterSuite();
                        adaptor.shutdown();
                     }
                  }
                  finally
                  {
                     State.clean();
View Full Code Here

Examples of org.jboss.as.process.ProcessControllerClient.shutdown()

    @Override
    public void stopLocalHost() {
        final ProcessControllerClient client = injectedProcessControllerConnection.getValue().getClient();
        try {
            client.shutdown();
        } catch (IOException e) {
            throw new RuntimeException("Error closing down host", e);
        }
    }
View Full Code Here

Examples of org.jboss.as.protocol.mgmt.ManagementChannelHandler.shutdown()

        handler.addHandlerFactory(new ModelControllerClientOperationHandler(getController(), handler));
        handler.addHandlerFactory(new MasterDomainControllerOperationHandlerImpl(domainController));
        final Channel.Key key = channel.addCloseHandler(new CloseHandler<Channel>() {
            @Override
            public void handleClose(Channel closed, IOException exception) {
                handler.shutdown();
                try {
                    handler.awaitCompletion(100, TimeUnit.MILLISECONDS);
                } catch (Exception e) {
                    ROOT_LOGGER.serviceShutdownIncomplete(e);
                } finally {
View Full Code Here

Examples of org.jboss.as.protocol.mgmt.ManagementMessageHandler.shutdown()

    /** {@inheritDoc} */
    public synchronized void stop(StopContext context) {
        final ManagementMessageHandler handler = this.handler;
        if(handler != null) {
            handler.shutdown();
            try {
                if(! handler.awaitCompletion(100, TimeUnit.MILLISECONDS)) {
                    ControllerLogger.ROOT_LOGGER.debugf("HostController server client did not complete shutdown within timeout");
                }
            } catch (Exception e) {
View Full Code Here

Examples of org.jboss.as.protocol.mgmt.support.SimpleHandlers.SimpleClient.shutdown()

            }
        };
        final AsyncFuture<Integer> future = client.execute(request);
        final AsyncFuture.Status completed = future.await(1, TimeUnit.SECONDS);
        Assert.assertEquals(completed, AsyncFuture.Status.WAITING);
        client.shutdown();
        boolean done = client.awaitCompletion(1, TimeUnit.SECONDS);
        Assert.assertFalse(done);
        latch.countDown();
        done = client.awaitCompletion(2, TimeUnit.SECONDS);
        Assert.assertTrue(done);
View Full Code Here

Examples of org.jboss.as.subsystem.test.KernelServices.shutdown()

        KernelServices servicesA = super.installInController(additionalInit, subsystemXml);
        //Get the model and the persisted xml from the first controller
        ModelNode modelA = servicesA.readWholeModel();
        String marshalled = servicesA.getPersistedSubsystemXml();
        servicesA.shutdown();

        Assert.assertTrue(marshalled.contains(Namespace.JMX_1_1.getUriString()));
        marshalled = marshalled.replace(Namespace.JMX_1_1.getUriString(), Namespace.JMX_1_0.getUriString());

        System.out.println(marshalled);
View Full Code Here

Examples of org.jboss.bootstrap.NoInitServerImpl.shutdown()

      // Startup and shutdown
      try
      {
         server.start();
         server.shutdown();
      }
      catch (Exception e)
      {
         e.printStackTrace();
         TestCase.fail("Startup/shutdown sequence without proper configuration should be clean, got exception: " + e);
View Full Code Here

Examples of org.jboss.bootstrap.api.as.server.JBossASServer.shutdown()

      ServerProxyHandler handler = new ServerProxyHandler(adaptor, serverJMXName);
      Class<?>[] ifaces = {JBossASServer.class};
      ClassLoader tcl = Thread.currentThread().getContextClassLoader();
      JBossASServer server = (JBossASServer) Proxy.newProxyInstance(tcl, ifaces, handler);
      server.shutdown();

      System.out.println("Shutdown message has been posted to the server.");
      System.out.println("Server shutdown may take a while - check logfiles for completion");
      jmxc.close();
   }
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.