Package org.apache.geronimo.datastore.impl.remote.messaging

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


        // One does not send the actual ReplicantCapable in the case of an
        // update. Instead, one sends only its identifier.
        ReplicationCapable target = (ReplicationCapable) anEvent.getTarget();
        anEvent.setTarget(target.getID());
        sender.sendSyncRequest(
            new CommandRequest("mergeWithUpdate", new Object[] {anEvent}),
            requestOut, targetNodes);
    }
View Full Code Here


     */
    public void registerReplicantCapable(ReplicationCapable aReplicant) {
        ReplicantID id = new ReplicantID();
        aReplicant.setID(id);
        sender.sendSyncRequest(
            new CommandRequest("registerLocalReplicantCapable",
                new Object[] {aReplicant}),
            requestOut, targetNodes);
        synchronized(idToReplicant) {
            idToReplicant.put(id, aReplicant);
            aReplicant.addUpdateListener(this);
View Full Code Here

    protected void handleRequest(Msg aMsg) {
        MsgBody body = aMsg.getBody();
        MsgHeader header = aMsg.getHeader();
        Object sourceNode = header.getHeader(MsgHeaderConstants.SRC_NODE);
        Object id = header.getHeader(MsgHeaderConstants.CORRELATION_ID);
        CommandRequest command;
        String gateway;
        command = (CommandRequest) body.getContent();
        command.setTarget(this);
        CommandResult result = command.execute();
        Msg msg = new Msg();
        body = msg.getBody();
        body.setContent(result);
        MsgOutInterceptor reqOut =
            new HeaderOutInterceptor(
View Full Code Here

        return node;
    }
   
    public Object startInteraction() {
        return sender.sendSyncRequest(
            new CommandRequest("startInteraction", null), out, node);
    }
View Full Code Here

    }

    public GFile factoryGFile(Object anOpaque, String aPath) {
        GFileStub result = (GFileStub)
            sender.sendSyncRequest(
                new CommandRequest("factoryGFile",
                    new Object[] {anOpaque, aPath}), out,
                    node);
        result.setGFileManagerClient(this);
        return result;
    }
View Full Code Here

        return result;
    }
   
    public void persistNew(Object anOpaque, GFile aFile) {
        sender.sendSyncRequest(
            new CommandRequest("persistNew",
                new Object[] {anOpaque, aFile}), out, node);
    }
View Full Code Here

                new Object[] {anOpaque, aFile}), out, node);
    }

    public void persistUpdate(Object anOpaque, GFile aFile) {
        sender.sendSyncRequest(
            new CommandRequest("persistUpdate",
                new Object[] {anOpaque, aFile}), out,
                node);
    }
View Full Code Here

                node);
    }

    public void persistDelete(Object anOpaque, GFile aFile) {
        sender.sendSyncRequest(
            new CommandRequest("persistDelete",
                new Object[] {anOpaque, aFile}), out,
                node);
    }
View Full Code Here

                new Object[] {anOpaque, aFile}), out,
                node);
    }

    public void endInteraction(Object anOpaque) throws GFileManagerException {
        sender.sendSyncRequest(new CommandRequest("endInteraction",
            new Object[] {anOpaque}), out, node);
    }
View Full Code Here

     * @param aRequest Request.
     * @return Request result.
     */
    protected Object sendGFileRequest(GFileStub aStub, CommandRequest aRequest) {
        CommandResult result = (CommandResult)
            sender.sendSyncRequest(new CommandRequest("executeOnGFile",
                new Object[] {aStub.getID(), aRequest}), out, node);
        if ( result.isSuccess() ) {
            return result.getResult();
        }
        throw new RuntimeException(result.getException());
View Full Code Here

TOP

Related Classes of org.apache.geronimo.datastore.impl.remote.messaging.CommandRequest

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.