Examples of stop()


Examples of org.codehaus.activemq.service.MessageContainerManager.stop()

        if (containerManagers != null) {
            for (int i = 0; i < containerManagers.length; i++) {
                final MessageContainerManager containerManager = containerManagers[i];
                template.run(new Callback() {
                    public void execute() throws Throwable {
                        containerManager.stop();
                    }
                });
            }
        }
        if (transactionManager != null) {
View Full Code Here

Examples of org.codehaus.activemq.service.Service.stop()

            JMSException firstException = null;

            for (Iterator iter = new ArrayList(transportConnectors).iterator(); iter.hasNext();) {
                Service connector = (Service) iter.next();
                try {
                    connector.stop();
                }
                catch (JMSException e) {
                    if (firstException == null) {
                        firstException = e;
                    }
View Full Code Here

Examples of org.codehaus.activemq.transport.vm.VmTransportChannel.stop()

        assertEquals("receiveCapacity", 20, vmChannel.getReceiveCapacity());
        assertEquals("asyncSend", true, vmChannel.isAsyncSend());
        vmChannel.start();
        assertTrue("has send channel", vmChannel.getSendChannel() != null);
        assertTrue("has receive channel", vmChannel.getReceiveChannel() != null);
        vmChannel.stop();

        vmChannel = (VmTransportChannel) createChannel("vm://localhost?receiveCapacity=20");
        vmChannel.start();
        assertTrue("has no send channel", vmChannel.getSendChannel() == null);
        assertTrue("has receive channel", vmChannel.getReceiveChannel() == null);
View Full Code Here

Examples of org.codehaus.cargo.container.InstalledLocalContainer.stop()

            XsdToCobolStringResult results = api.translate();

            check("cultureinfo", "xsd", results.getCobolXsd());
            check("cultureinfo", "cpy", results.getCobolStructure());
        } finally {
            webapp.stop();
        }

    }

    /**
 
View Full Code Here

Examples of org.codehaus.plexus.embed.Embedder.stop()

            artifactFactory = (ArtifactFactory) embedder.lookup(ArtifactFactory.ROLE);
            artifactResolver = (ArtifactResolver) embedder.lookup(ArtifactResolver.ROLE);

            setUpRepositories(embedder);

            embedder.stop();

        } catch (DuplicateRealmException ex) {
            throw new TuscanyDependencyException(ex);
        } catch (PlexusContainerException ex) {
            throw new TuscanyDependencyException(ex);
View Full Code Here

Examples of org.codehaus.plexus.scheduler.DefaultScheduler.stop()

                // shutdown the scheduler, otherwise Quartz scheduler and Threads still exists
                Field schedulerField = taskScheduler.getClass().getDeclaredField( "scheduler" );
                schedulerField.setAccessible( true );

                DefaultScheduler scheduler = (DefaultScheduler) schedulerField.get( taskScheduler );
                scheduler.stop();
            }
            catch ( Exception e )
            {  
                log.error( "Error occurred while stopping scheduler.", e );
            }
View Full Code Here

Examples of org.codehaus.redback.components.scheduler.DefaultScheduler.stop()

                    // shutdown the scheduler, otherwise Quartz scheduler and Threads still exists
                    Field schedulerField = repositoryTaskScheduler.getClass().getDeclaredField( "scheduler" );
                    schedulerField.setAccessible( true );

                    DefaultScheduler scheduler = (DefaultScheduler) schedulerField.get( repositoryTaskScheduler );
                    scheduler.stop();
                }
                catch ( Exception e )
                {
                    e.printStackTrace();
                }
View Full Code Here

Examples of org.codehaus.xfire.server.http.XFireHttpServer.stop()

    // Endpoint httpServer = Endpoint.publish(LOCALHOST_URL, exporter.getServiceBean());
   
    checkHelloServiceSayHello(remoteHelloService);
    checkHelloServiceFault(remoteHelloService);
       
    httpServer.stop();
  }
 
  private void checkHelloServiceSayHello(HelloService helloService) throws HelloFaultMessage {
    HelloRequest request = new HelloRequest();
    request.setToWho("World!");
View Full Code Here

Examples of org.codehaus.xharness.tasks.ServiceDef.stop()

        registry.getFormatter();
        trCtrl.setReturnValue(formatter);
       
        MockControl tkCtrl = MockClassControl.createControl(ServiceDef.class);
        ServiceDef task = (ServiceDef)tkCtrl.getMock();
        task.stop();

        MockControl tlCtrl = MockClassControl.createControl(TestLogger.class);
        TestLogger parent = (TestLogger)tlCtrl.getMock();
        parent.getFullName();
        tlCtrl.setReturnValue("bar");
View Full Code Here

Examples of org.codemap.util.StopWatch.stop()

                if (nearestNeighbor == null) {
                    mcolor = colorScheme().getHillColor();
                } else {
                    mcolor = colors.forLocation(nearestNeighbor.getPoint());                   
                }
                nnStopWatch.stop();
                // make rgb
                int baseIndex = i*3;
                imageBytes[baseIndex++] = (byte) mcolor.getRed(); // R
                imageBytes[baseIndex++] = (byte) mcolor.getGreen(); // G
                imageBytes[baseIndex++] = (byte) mcolor.getBlue(); // B
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.