Package org.apache.geronimo.network.protocol

Examples of org.apache.geronimo.network.protocol.Protocol


        try {
            protocol = newProtocol();
        } catch (ProtocolException e) {
            throw new NodeException("Can not create protocol", e);
        }
        Protocol curProtocol = protocol;
        while ( null != curProtocol ) {
            if ( curProtocol instanceof CallbackSocketProtocol ) {
                ((CallbackSocketProtocol) curProtocol).setListener(
                    new SocketProtocolListener() {
                        public void onClose() {
                            msgOut = null;
                            inDispatcher = null;
                            if ( null != listener ) {
                                listener.onClose();
                            }
                        }
                    });
                break;
            }
            curProtocol = curProtocol.getDownProtocol();
        }
        if ( false == curProtocol instanceof CallbackSocketProtocol ) {
            throw new AssertionError("No CallbackSocketProtocol.");
        }
       
View Full Code Here


        }
        return super.push(object);
    }

    public Object pop() {
        Protocol result = (Protocol) super.pop();

        if (result instanceof ControlServerProtocol) {
            ((ControlServerProtocol) result).setControlServerListener(null);
            ((ControlServerProtocol) result).setBootstrapChef(null);
        } else if (result instanceof ControlServerProtocolWaiter) {
View Full Code Here

        }
        return super.push(object);
    }

    public Object pop() {
        Protocol result = (Protocol) super.pop();

        if (result instanceof ControlClientProtocol) {
            ((ControlClientProtocol) result).setListener(null);
        }
        return result;
View Full Code Here

        }
        return super.push(object);
    }

    public Object pop() {
        Protocol result = (Protocol) super.pop();

        if (result instanceof ControlServerProtocol) {
            ((ControlServerProtocol) result).setControlServerListener(null);
        } else if (result instanceof ControlServerProtocolWaiter) {
            waiter = null;
View Full Code Here

        }
        return super.push(object);
    }

    public Object pop() {
        Protocol result = (Protocol) super.pop();

        if (result instanceof ControlClientProtocol) {
            ((ControlClientProtocol) result).setListener(null);
        }
        return result;
View Full Code Here

        try {
            protocol = newProtocol();
        } catch (ProtocolException e) {
            throw new NodeException("Can not create protocol", e);
        }
        Protocol curProtocol = protocol;
        while ( null != curProtocol ) {
            if ( curProtocol instanceof CallbackSocketProtocol ) {
                ((CallbackSocketProtocol) curProtocol).setListener(
                    new SocketProtocolListener() {
                        public void onClose() {
                            msgOut = null;
                            inDispatcher = null;
                            if ( null != listener ) {
                                listener.onClose();
                            }
                        }
                    });
                break;
            }
            curProtocol = curProtocol.getDownProtocol();
        }
        if ( false == curProtocol instanceof CallbackSocketProtocol ) {
            throw new AssertionError("No CallbackSocketProtocol.");
        }
       
View Full Code Here

        }
        return super.push(object);
    }

    public Object pop() {
        Protocol result = (Protocol) super.pop();

        if (result instanceof ControlClientProtocol) {
            ((ControlClientProtocol) result).setListener(null);
        }
        return result;
View Full Code Here

        }
        return super.push(object);
    }

    public Object pop() {
        Protocol result = (Protocol) super.pop();

        if (result instanceof ControlServerProtocol) {
            ((ControlServerProtocol) result).setControlServerListener(null);
            ((ControlServerProtocol) result).setBootstrapChef(null);
        } else if (result instanceof ControlServerProtocolWaiter) {
View Full Code Here

TOP

Related Classes of org.apache.geronimo.network.protocol.Protocol

Copyright © 2018 www.massapicom. 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.