Package edu.brown.protorpc

Examples of edu.brown.protorpc.ProtoRpcController


                if (debug.val)
                    LOG.debug(String.format("Sending %s to %d remote sites",
                              request.getClass().getSimpleName(), this.num_sites));
                for (int site_id = 0; site_id < this.num_sites; site_id++) {
                    if (site_id == this.local_site_id) continue;
                    this.channels[site_id].shutdown(new ProtoRpcController(), request, callback);
                    if (debug.val)
                        LOG.debug(String.format("Sent %s to %s",
                                  request.getClass().getSimpleName(),
                                  HStoreThreadManager.formatSiteName(site_id)));
                } // FOR
View Full Code Here


            }
            // Remote Partition
            else {
                HStoreService channel = this.coordinator.getChannel(dest_site_id);
                assert(channel != null) : "Invalid partition id '" + partition + "'";
                ProtoRpcController controller = this.getProtoRpcController(ts, dest_site_id);
                assert(controller != null) : "Invalid " + request.getClass().getSimpleName() + " ProtoRpcController for site #" + dest_site_id;
                this.sendRemote(channel, controller, request, callback);
            }
            site_sent[dest_site_id] = true;
        } // FOR
View Full Code Here

     */
    public ProtoRpcController getTransactionPrefetchController(int partition) {
        assert(hstore_site.isLocalPartition(partition));
       
        if (this.rpc_transactionPrefetch[partition] == null) {
            this.rpc_transactionPrefetch[partition] = new ProtoRpcController();
        } else {
            this.rpc_transactionPrefetch[partition].reset();
        }
        return (this.rpc_transactionPrefetch[partition]);
    }
View Full Code Here

    protected ProtoRpcController getTransactionWorkController(int site_id) {
        return this.getProtoRpcController(this.rpc_transactionWork, site_id);
    }
    protected ProtoRpcController getTransactionPrepareController(int site_id) {
        // Always create a new ProtoRpcController
        return new ProtoRpcController();
        // return this.getProtoRpcController(this.rpc_transactionPrepare, site_id);
    }
View Full Code Here

        return this.getProtoRpcController(this.rpc_transactionFinish, site_id);
    }
   
    private final ProtoRpcController getProtoRpcController(ProtoRpcController cache[], int site_id) {
        if (cache[site_id] == null) {
            cache[site_id] = new ProtoRpcController();
        }
        return (cache[site_id]);
    }
View Full Code Here

                        .setTableId(99)
                        .setTransactionId(-1)
      .setNewTransactionId(12)
                        .build();     
             
        hstore_sites[sender_id].getCoordinator().getChannel(dest_id).unevictData(new ProtoRpcController(), request, callback);
        // BLOCK!
        latch.await();
        assertEquals(1, responses.size());
    }   
View Full Code Here

TOP

Related Classes of edu.brown.protorpc.ProtoRpcController

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.