Examples of shutdown()


Examples of org.apache.axis.transport.jms.SimpleJMSListener.shutdown()

            res = (Float) call.invoke(new Object[] {args[i]});
            System.out.println(args[i] + ": " + res);
        }

        // shutdown
        listener.shutdown();
        transport.shutdown();
    }

    public static void printUsage()
    {
View Full Code Here

Examples of org.apache.axis2.engine.ServiceLifeCycle.shutDown()

            if (serviceGroup != null) {
                for (Iterator<AxisService> services = serviceGroup.getServices(); services.hasNext();) {
                AxisService axisService = (AxisService) services.next();
                ServiceLifeCycle serviceLifeCycle = axisService.getServiceLifeCycle();
                if (serviceLifeCycle != null) {
                    serviceLifeCycle.shutDown(configCtx, axisService);
                }
            }
                configCtx.removeServiceGroupContext(serviceGroup);
                log.info(Messages.getMessage(DeploymentErrorMsgs.SERVICE_REMOVED,
                        fileName));
View Full Code Here

Examples of org.apache.axis2.modules.Module.shutdown()

            Iterator moduleitr = modules.values().iterator();
            while (moduleitr.hasNext()) {
                AxisModule axisModule = (AxisModule) moduleitr.next();
                Module module = axisModule.getModule();
                if (module != null) {
                    module.shutdown(configctx);
                }
            }
        }
        configctx.cleanupContexts();
        /*Shut down the services*/
 
View Full Code Here

Examples of org.apache.bookkeeper.bookie.Bookie.shutdown()

            clientConf.setZkServers(zkutil.getZooKeeperConnectString());
            clientConf.setZkLedgersRootPath(ZK_ROOT);
            BookKeeperAdmin.format(clientConf, false, false);

            Bookie b = new Bookie(conf);
            b.shutdown();
        } finally {
            FileUtils.deleteDirectory(tmpDir);
        }
    }
View Full Code Here

Examples of org.apache.bookkeeper.proto.BookieServer.shutdown()

    public void tearDownOneBookieServer() throws Exception {
        Random r = new Random();
        int bi = r.nextInt(bookiesList.size());
        BookieServer bs = bookiesList.get(bi);
        try {
            bs.shutdown();
        } catch (InterruptedException e) {
            LOG.error("Error tearing down", e);
        }
        bookiesList.remove(bi);
    }
View Full Code Here

Examples of org.apache.bookkeeper.proto.NIOServerFactory.shutdown()

            s.getOutputStream().write("\0\0\0\4\0\0\0\1".getBytes());
            s.getOutputStream().write("\0\0\0\4\0\0\0\2".getBytes());
            s.getInputStream().read();
        } finally {
            s.close();
            factory.shutdown();
        }
    }
}
View Full Code Here

Examples of org.apache.bookkeeper.replication.AutoRecoveryMain.shutdown()

        for (BookieServer server : bs) {
            server.shutdown();
            AutoRecoveryMain autoRecovery = autoRecoveryProcesses.get(server);
            if (autoRecovery != null && isAutoRecoveryEnabled()) {
                autoRecovery.shutdown();
                LOG.debug("Shutdown auto recovery for bookieserver:"
                        + server.getLocalAddress());
            }
        }
        bs.clear();
View Full Code Here

Examples of org.apache.bookkeeper.util.OrderedSafeExecutor.shutdown()

            bc.addEntry(addr, ledger, new byte[0], i, ChannelBuffers.wrappedBuffer(hello), cb, counter, 0);
        }
        counter.wait(0);
        System.out.println("Total = " + counter.total());
        channelFactory.releaseExternalResources();
        executor.shutdown();
    }
}
View Full Code Here

Examples of org.apache.cactus.integration.ant.container.Container.shutDown()

        // executed
        Container container = containers[0];
        container.startUp();
        assertEquals("The startup hook should have been executed, ",
            "true", getProject().getProperty("startup.executed"));
        container.shutDown();
        assertEquals("The shutdown hook should have been executed, ",
            "true", getProject().getProperty("shutdown.executed"));
    }

}
View Full Code Here

Examples of org.apache.camel.ShutdownableService.shutdown()

        // then try to shutdown
        if (value instanceof ShutdownableService) {
            ShutdownableService service = (ShutdownableService)value;
            LOG.trace("Shutting down service {}", value);
            service.shutdown();
        }
    }

    /**
     * Stops and shutdowns each element of the given {@code services} if {@code services}
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.