Examples of CommandRequest


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

     */
    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

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

    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

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

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

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

    }

    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

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

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

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

                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

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

                node);
    }

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

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

                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

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

     * @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

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

    }

    public boolean exists() throws IOException {
        return ((Boolean)
            client.sendGFileRequest(this,
                new CommandRequest("exists", null))).booleanValue();
    }
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.