Examples of HeaderOutInterceptor


Examples of org.apache.geronimo.datastore.impl.remote.messaging.HeaderOutInterceptor

        CommandResult result = command.execute();
        Msg msg = new Msg();
        body = msg.getBody();
        body.setContent(result);
        MsgOutInterceptor reqOut =
            new HeaderOutInterceptor(
                MsgHeaderConstants.CORRELATION_ID,
                id,
                new HeaderOutInterceptor(
                    MsgHeaderConstants.DEST_CONNECTOR,
                    getName(),
                    new HeaderOutInterceptor(
                        MsgHeaderConstants.DEST_NODES,
                        srcNode,
                        out)));
        reqOut.push(msg);
    }
View Full Code Here

Examples of org.apache.geronimo.datastore.impl.remote.messaging.HeaderOutInterceptor

   
    public void setContext(NodeContext aContext) {
        super.setContext(aContext);
        if ( null != out ) {
            out =
                new HeaderOutInterceptor(
                    MsgHeaderConstants.DEST_CONNECTOR,
                    name,
                    out);
            requestOut =
                new HeaderOutInterceptor(
                    MsgHeaderConstants.BODY_TYPE,
                    MsgBody.Type.REQUEST,
                    out);
            resultOut =
                new HeaderOutInterceptor(
                    MsgHeaderConstants.BODY_TYPE,
                    MsgBody.Type.RESPONSE,
                    out);
        } else {
            requestOut = null;
View Full Code Here

Examples of org.apache.geronimo.datastore.impl.remote.messaging.HeaderOutInterceptor

        CommandResult result = command.execute();
        Msg msg = new Msg();
        body = msg.getBody();
        body.setContent(result);
        MsgOutInterceptor reqOut =
            new HeaderOutInterceptor(
                MsgHeaderConstants.CORRELATION_ID,
                id,
                new HeaderOutInterceptor(
                    MsgHeaderConstants.DEST_NODES,
                    targetNodes,
                    new HeaderOutInterceptor(
                        MsgHeaderConstants.DEST_CONNECTOR,
                        name,
                        resultOut)));
        reqOut.push(msg);
    }
View Full Code Here

Examples of org.apache.geronimo.datastore.impl.remote.messaging.HeaderOutInterceptor

   
    public void setContext(NodeContext aContext) {
        super.setContext(aContext);
        if ( null != out ) {
            out =
                new HeaderOutInterceptor(
                    MsgHeaderConstants.DEST_CONNECTOR,
                    name, out);
        }
    }
View Full Code Here

Examples of org.apache.geronimo.messaging.interceptors.HeaderOutInterceptor

public class EndPointUtil
{

    public static void interConnect(EndPoint anEP1, EndPoint anEP2) {
        MsgOutInterceptor out =
            new HeaderOutInterceptor(
                MsgHeaderConstants.SRC_NODE, "",
                new HeaderOutInterceptor(
                    MsgHeaderConstants.SRC_ENDPOINT, "",
                    new HeaderOutInterceptor(
                        MsgHeaderConstants.TOPOLOGY_VERSION,
                        new Integer(1),
                        anEP1.getMsgConsumerOut())));
        anEP2.setMsgProducerOut(out);
        out =
            new HeaderOutInterceptor(
                MsgHeaderConstants.SRC_NODE, "",
                new HeaderOutInterceptor(
                    MsgHeaderConstants.SRC_ENDPOINT, "",
                    new HeaderOutInterceptor(
                        MsgHeaderConstants.TOPOLOGY_VERSION,
                        new Integer(1),
                        anEP2.getMsgConsumerOut())));
        anEP1.setMsgProducerOut(out);
    }
View Full Code Here

Examples of org.apache.geronimo.messaging.interceptors.HeaderOutInterceptor

        received = new ArrayList();
    }
   
    public void sendRawObject(Object anObject) {
        sender.sendSyncRequest(anObject,
            new HeaderOutInterceptor(
                MsgHeaderConstants.BODY_TYPE,
                MsgBody.Type.REQUEST,
                out), getID(), targetNodes);
    }
View Full Code Here

Examples of org.apache.geronimo.messaging.interceptors.HeaderOutInterceptor

        if (null == aMsgOut) {
            out = null;
            return;
        }
        // Automatically adds the identifier of this EndPoint to produced Msgs.
        out = new HeaderOutInterceptor(MsgHeaderConstants.SRC_ENDPOINT, id,
            aMsgOut);
    }
View Full Code Here

Examples of org.apache.geronimo.messaging.interceptors.HeaderOutInterceptor

     *
     * @return Output to be used to push Msgs to the RemoteNodeManager.
     */
    private MsgOutInterceptor newOutboundMsgProviderOut() {
        return
            new HeaderOutInterceptor(
                MsgHeaderConstants.SRC_NODE,
                nodeInfo,
                nodeManager.getMsgConsumerOut());
    }
View Full Code Here

Examples of org.apache.geronimo.messaging.interceptors.HeaderOutInterceptor

        }
        connection.setMsgProducerOut(aMsgOut);
    }

    public MsgOutInterceptor getMsgConsumerOut() {
        return new HeaderOutInterceptor(
            MsgHeaderConstants.DEST_NODE,
            remoteNodeInfo,
            connection.getMsgConsumerOut());
    }
View Full Code Here

Examples of org.apache.geronimo.messaging.interceptors.HeaderOutInterceptor

        received = new ArrayList();
    }
   
    public void sendRawObject(Object anObject) {
        sender.sendSyncRequest(anObject,
            new HeaderOutInterceptor(
                MsgHeaderConstants.BODY_TYPE,
                MsgBody.Type.REQUEST,
                out), getID(), targetNodes);
    }
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.