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.eclipse.jetty.server.AbstractConnector

         *
         * @return A new internal Jetty connector.
         */
        @Override
        protected AbstractConnector createConnector() {
            AbstractConnector result = null;
            SslContextFactory sslContextFactory = null;

            try {
                sslContextFactory = new RestletSslContextFactory(
                        org.restlet.ext.ssl.internal.SslUtils
    View Full Code Here

    Examples of org.eclipse.jetty.server.AbstractConnector

         *
         * @return A new internal Jetty connector.
         */
        @Override
        protected AbstractConnector createConnector() {
            AbstractConnector result = null;

            // Create and configure the Jetty HTTP connector
            switch (getType()) {
            case 1:
                // Selecting NIO connector
    View Full Code Here

    Examples of org.eclipse.jetty.server.AbstractConnector

               
            ++servantCount;
        }
       
        protected void setupThreadPool() {
            AbstractConnector aconn = (AbstractConnector) connector;
            if (isSetThreadingParameters()) {
                ThreadPool pool = aconn.getThreadPool();
                if (pool == null) {
                    pool = aconn.getServer().getThreadPool();
                }
                if (pool == null) {
                    pool = new QueuedThreadPool();
                    aconn.getServer().setThreadPool(pool);
                    aconn.setThreadPool(pool);
                }
                //threads for the acceptors and selectors are taken from
                //the pool so we need to have room for those
                int acc = aconn.getAcceptors() * 2;
                if (getThreadingParameters().isSetMaxThreads()
                    && getThreadingParameters().getMaxThreads() <= acc) {
                    throw new Fault(new Message("NOT_ENOUGH_THREADS", LOG,
                                                port,
                                                acc + 1,
    View Full Code Here

    Examples of org.eclipse.jetty.server.AbstractConnector

               
            ++servantCount;
        }
       
        protected void setupThreadPool() {
            AbstractConnector aconn = (AbstractConnector) connector;
            if (isSetThreadingParameters()) {
                ThreadPool pool = aconn.getThreadPool();
                if (pool == null) {
                    pool = new QueuedThreadPool();
                    aconn.setThreadPool(pool);
                }
                if (pool instanceof QueuedThreadPool) {
                    QueuedThreadPool pl = (QueuedThreadPool)pool;
                    if (getThreadingParameters().isSetMinThreads()) {
                        pl.setMinThreads(getThreadingParameters().getMinThreads());
    View Full Code Here

    Examples of org.eclipse.jetty.server.AbstractConnector

               
            ++servantCount;
        }
       
        protected void setupThreadPool() {
            AbstractConnector aconn = (AbstractConnector) connector;
            if (isSetThreadingParameters()) {
                ThreadPool pool = aconn.getThreadPool();
                if (pool == null) {
                    pool = aconn.getServer().getThreadPool();
                }
                if (pool == null) {
                    pool = new QueuedThreadPool();
                    aconn.getServer().setThreadPool(pool);
                    aconn.setThreadPool(pool);
                }
                if (pool instanceof QueuedThreadPool) {
                    QueuedThreadPool pl = (QueuedThreadPool)pool;
                    if (getThreadingParameters().isSetMinThreads()) {
                        pl.setMinThreads(getThreadingParameters().getMinThreads());
    View Full Code Here

    Examples of org.eclipse.jetty.server.AbstractConnector

               
            ++servantCount;
        }
       
        protected void setupThreadPool() {
            AbstractConnector aconn = (AbstractConnector) connector;
            if (isSetThreadingParameters()) {
                ThreadPool pool = aconn.getThreadPool();
                if (pool == null) {
                    pool = new QueuedThreadPool();
                    aconn.setThreadPool(pool);
                }
                if (pool instanceof QueuedThreadPool) {
                    QueuedThreadPool pl = (QueuedThreadPool)pool;
                    if (getThreadingParameters().isSetMinThreads()) {
                        pl.setMinThreads(getThreadingParameters().getMinThreads());
    View Full Code Here

    Examples of org.eclipse.jetty.server.AbstractConnector

               
            ++servantCount;
        }
       
        protected void setupThreadPool() {
            AbstractConnector aconn = (AbstractConnector) connector;
            if (isSetThreadingParameters()) {
                ThreadPool pool = aconn.getThreadPool();
                if (pool == null) {
                    pool = new QueuedThreadPool();
                    aconn.setThreadPool(pool);
                }
                if (pool instanceof OldQueuedThreadPool) {
                    OldQueuedThreadPool pl = (OldQueuedThreadPool)pool;
                    if (getThreadingParameters().isSetMinThreads()) {
                        pl.setMinThreads(getThreadingParameters().getMinThreads());
    View Full Code Here

    Examples of org.eclipse.jetty.server.AbstractConnector

               
            ++servantCount;
        }
       
        protected void setupThreadPool() {
            AbstractConnector aconn = (AbstractConnector) connector;
            if (isSetThreadingParameters()) {
                ThreadPool pool = aconn.getThreadPool();
                if (pool == null) {
                    pool = new QueuedThreadPool();
                    aconn.setThreadPool(pool);
                }
                if (pool instanceof OldQueuedThreadPool) {
                    OldQueuedThreadPool pl = (OldQueuedThreadPool)pool;
                    if (getThreadingParameters().isSetMinThreads()) {
                        pl.setMinThreads(getThreadingParameters().getMinThreads());
    View Full Code Here

    Examples of org.eclipse.jetty.server.AbstractConnector

               
            ++servantCount;
        }
       
        protected void setupThreadPool() {
            AbstractConnector aconn = (AbstractConnector) connector;
            if (isSetThreadingParameters()) {
                ThreadPool pool = aconn.getThreadPool();
                if (pool == null) {
                    pool = aconn.getServer().getThreadPool();
                }
                if (pool == null) {
                    pool = new QueuedThreadPool();
                    aconn.getServer().setThreadPool(pool);
                    aconn.setThreadPool(pool);
                }
                //threads for the acceptors and selectors are taken from
                //the pool so we need to have room for those
                int acc = aconn.getAcceptors() * 2;
                if (getThreadingParameters().isSetMaxThreads()
                    && getThreadingParameters().getMaxThreads() <= acc) {
                    throw new Fault(new Message("NOT_ENOUGH_THREADS", LOG,
                                                port,
                                                acc + 1,
    View Full Code Here

    Examples of org.eclipse.jetty.server.AbstractConnector

            registedPaths.add(url.getPath());
            ++servantCount;
        }
       
        protected void setupThreadPool() {
            AbstractConnector aconn = (AbstractConnector) connector;
            if (isSetThreadingParameters()) {
                ThreadPool pool = aconn.getThreadPool();
                if (pool == null) {
                    pool = aconn.getServer().getThreadPool();
                }
                if (pool == null) {
                    pool = new QueuedThreadPool();
                    aconn.getServer().setThreadPool(pool);
                    aconn.setThreadPool(pool);
                }
                //threads for the acceptors and selectors are taken from
                //the pool so we need to have room for those
                int acc = aconn.getAcceptors() * 2;
                if (getThreadingParameters().isSetMaxThreads()
                    && getThreadingParameters().getMaxThreads() <= acc) {
                    throw new Fault(new Message("NOT_ENOUGH_THREADS", LOG,
                                                port,
                                                acc + 1,
    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.