Examples of AbstractConnector

  • org.mortbay.jetty.AbstractConnector
    Abstract Connector implementation. This abstract implemenation of the Connector interface provides: @author gregwTODO - allow multiple Acceptor threads
  • org.mule.transport.AbstractConnector
    AbstractConnector provides base functionality for all connectors provided with Mule. Connectors are the mechanism used to connect to external systems and protocols in order to send and receive data.

    The AbstractConnector provides getter and setter methods for endpoint name, transport name and protocol. It also provides methods to stop and start connectors and sets up a dispatcher threadpool which allows deriving connectors the possibility to dispatch work to separate threads. This functionality is controlled with the doThreading property on the threadingProfiles for dispatchers and receivers. The lifecycle for a connector is -

    1. Create
    2. Initialise
    3. Connect
    4. Connect receivers
    5. Start
    6. Start Receivers
    7. Stop
    8. Stop Receivers
    9. Disconnect
    10. Disconnect Receivers
    11. Dispose
    12. Dispose Receivers

  • Examples of org.mule.transport.AbstractConnector

                                                                       String protocol,
                                                                       MuleContext context,
                                                                       EndpointSource source) throws Exception
        {
            // need to build endpoint this way to avoid depenency to any endpoint jars
            final AbstractConnector connector = (AbstractConnector) ClassUtils.loadClass(
                "org.mule.tck.testmodels.mule.TestConnector", AbstractMuleTestCase.class).newInstance();

            connector.setName("testConnector");
            context.getRegistry().applyLifecycle(connector);
            connector.registerSupportedProtocol(protocol);

            final EndpointBuilder endpointBuilder = new EndpointURIEndpointBuilder(
                "test:" + protocol + "://test", context);
            endpointBuilder.setConnector(connector);
            endpointBuilder.setName(name);
    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.