Examples of shutdown()


Examples of org.jboss.gravia.runtime.Runtime.shutdown()

    @Override
    public void handleAfterSuite(AfterSuite event) throws Throwable {
        Runtime runtime = getSuiteObjectStore().get(Runtime.class);
        if (runtime != null && !runtime.shutdownComplete()) {
            Assert.assertTrue(runtime.shutdown().awaitShutdown(20, TimeUnit.SECONDS));
            RuntimeLocator.releaseRuntime();
        }
        super.handleAfterSuite(event);
    }
}
View Full Code Here

Examples of org.jboss.jca.core.connectionmanager.pool.mcp.ManagedConnectionPool.shutdown()

      if (clearMcpPools.size() > 0)
      {
         for (ManagedConnectionPool mcp : clearMcpPools)
         {
            mcp.shutdown();
            mcpPools.values().remove(mcp);
         }
      }
   }
View Full Code Here

Examples of org.jboss.kernel.spi.dependency.KernelController.shutdown()

         // If we had a kernel
         if (tempKernelReference != null)
         {
            // Shut it down
            KernelController controller = tempKernelReference.getController();
            controller.shutdown();
         }
      }
      catch (final Exception e)
      {
         log.warn("Error stopping " + KernelController.class.getName(), e);
View Full Code Here

Examples of org.jboss.msc.service.ServiceContainer.shutdown()

                        });
                    } finally {
                        processState.setRunning();
                    }
                } catch (Throwable t) {
                    container.shutdown();
                    if (t instanceof StackOverflowError) {
                        ROOT_LOGGER.errorBootingContainer(t, bootStackSize, BOOT_STACK_SIZE_PROPERTY);
                    } else {
                        ROOT_LOGGER.errorBootingContainer(t);
                    }
View Full Code Here

Examples of org.jboss.netty.bootstrap.ClientBootstrap.shutdown()

        }

        sh.channel.close().awaitUninterruptibly();
        ch.channel.close().awaitUninterruptibly();
        sc.close().awaitUninterruptibly();
        cb.shutdown();
        sb.shutdown();

        cb.releaseExternalResources();
        sb.releaseExternalResources();
View Full Code Here

Examples of org.jboss.netty.bootstrap.ConnectionlessBootstrap.shutdown()

        cc.write(buf, sc.getLocalAddress());

        assertTrue(latch.await(10, TimeUnit.SECONDS));
        sc.close().awaitUninterruptibly();
        cc.close().awaitUninterruptibly();
        cb.shutdown();
        sb.shutdown();
        cb.releaseExternalResources();
        sb.releaseExternalResources();
    }
}
View Full Code Here

Examples of org.jboss.netty.bootstrap.ServerBootstrap.shutdown()

        sh.channel.close().awaitUninterruptibly();
        ch.channel.close().awaitUninterruptibly();
        sc.close().awaitUninterruptibly();
        cb.shutdown();
        sb.shutdown();

        cb.releaseExternalResources();
        sb.releaseExternalResources();

        if (sh.exception.get() != null && !(sh.exception.get() instanceof IOException)) {
View Full Code Here

Examples of org.jboss.netty.channel.ChannelFactory.shutdown()

     * {@link ChannelFactory#shutdown()}.
     */
    public void shutdown() {
        ChannelFactory factory = this.factory;
        if (factory != null) {
            factory.shutdown();
        }
    }
    /**
     * Returns {@code true} if and only if the specified {@code map} is an
     * ordered map, like {@link LinkedHashMap} is.
View Full Code Here

Examples of org.jboss.remoting.callback.ServerInvokerCallbackHandler.shutdown()

            {
               Iterator it = TestInvocationHandler.callbackHandlers.iterator();
               while (it.hasNext())
               {
                  ServerInvokerCallbackHandler callbackHandler = (ServerInvokerCallbackHandler) it.next();
                  callbackHandler.shutdown();
                  log.info("shut down: " + callbackHandler);
               }
               TestInvocationHandler.callbackHandlers.clear();
            }
            synchronized(lock)
View Full Code Here

Examples of org.jboss.remoting.transport.socket.ServerThread.shutdown()

               Set threads = clientpool.getContents();
               Iterator it = threads.iterator();
               while (it.hasNext())
               {
                  ServerThread t = (ServerThread) it.next();
                  t.shutdown();
               }

               ssi.setMaxPoolSize(0);
               log.info("server is disabled");
            }
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.