Examples of stop()


Examples of org.mule.api.schedule.Scheduler.stop()

     *                   </p>
     */
    public void stopPoll(String flowName) throws Exception
    {
        Scheduler scheduler = getScheduler(flowName);
        scheduler.stop();
    }

    /**
     * <p>
     * Starts a poll that is stopped
View Full Code Here

Examples of org.mule.api.service.Service.stop()

        assertNotNull(message);
        assertEquals("Received: Test Client Send message", message.getPayloadAsString());

        // The SpringRegistry is read-only so we can't unregister the service!
        //muleContext.getRegistry().unregisterComponent("vmComponent");
        c.stop();

        try
        {
            client.send(endpoint, "Test Client Send message", null);
        }
View Full Code Here

Examples of org.mule.api.transport.Connector.stop()

        localConnector.start();

        assertNotNull(localConnector);
        assertTrue(localConnector.isStarted());
        assertTrue(!localConnector.isDisposed());
        localConnector.stop();
        assertTrue(!localConnector.isStarted());
        assertTrue(!localConnector.isDisposed());
        localConnector.dispose();
        assertTrue(!localConnector.isStarted());
        assertTrue(localConnector.isDisposed());
View Full Code Here

Examples of org.mule.api.transport.MessageDispatcher.stop()

        assertTrue(dispatcher.isConnected());

        dispatcher.start();
        assertTrue(dispatcher.getLifecycleState().isStarted());

        dispatcher.stop();
        assertTrue(dispatcher.getLifecycleState().isStopped());

        dispatcher.disconnect();
        assertFalse(dispatcher.isConnected());
View Full Code Here

Examples of org.mule.api.transport.MessageRequester.stop()

        assertTrue(requester.isConnected());

        requester.start();
        assertTrue(requester.getLifecycleState().isStarted());

        requester.stop();
        assertTrue(requester.getLifecycleState().isStopped());

        requester.disconnect();
        assertFalse(requester.isConnected());
View Full Code Here

Examples of org.mule.construct.Flow.stop()

        // before new flow
        processedEvent.getMessage().setInvocationProperty("newKey", "newValue");
        assertEquals("newValue", processedEvent.getMessage().getInvocationProperty("newKey"));
        assertEquals("newValue", event.getMessage().getInvocationProperty("newKey"));

        flow.stop();
        flow.dispose();
    }

}
View Full Code Here

Examples of org.mule.module.launcher.application.Application.stop()

        deploymentService.start();

        assertApplicationDeploymentSuccess(applicationDeploymentListener, dummyAppDescriptor.id);
        final Application app = findApp(dummyAppDescriptor.id, 1);
        app.stop();
        assertStatus(app, ApplicationStatus.STOPPED);

        deploymentService.undeploy(app);
    }
View Full Code Here

Examples of org.mule.module.launcher.domain.Domain.stop()

        deploymentService.start();

        assertDeploymentSuccess(domainDeploymentListener, dummyDomainDescriptor.id);
        final Domain domain = findADomain(dummyDomainDescriptor.id, 1);
        domain.stop();

        deploymentService.undeploy(domain);
    }

    @Test
View Full Code Here

Examples of org.mule.processor.AsyncInterceptingMessageProcessor.stop()

        // before async
        message.setProperty("newKey", "newValue", PropertyScope.INVOCATION);
        assertEquals("newValue", message.getInvocationProperty("newKey"));
        assertNull(event.getSession().getProperty("newKey"));

        async.stop();
    }

    /**
     * MuleSession is not copied when async intercepting processor is used
     */
 
View Full Code Here

Examples of org.mule.registry.Assembly.stop()

  public String stop(String serviceAssemblyName) throws Exception {
    Assembly assembly = this.registry.getAssembly(serviceAssemblyName);
    if (assembly == null) {
      throw new JBIException("Assembly not deployed: " + serviceAssemblyName);
    }
    return assembly.stop();
  }

  public String shutDown(String serviceAssemblyName) throws Exception {
    Assembly assembly = this.registry.getAssembly(serviceAssemblyName);
    if (assembly == null) {
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.