Package edu.brown.hstore.dispatchers

Source Code of edu.brown.hstore.dispatchers.TransactionInitDispatcher

package edu.brown.hstore.dispatchers;

import com.google.protobuf.RpcCallback;
import com.google.protobuf.RpcController;

import edu.brown.hstore.HStoreCoordinator;
import edu.brown.hstore.HStoreSite;
import edu.brown.hstore.Hstoreservice.TransactionInitRequest;
import edu.brown.hstore.Hstoreservice.TransactionInitResponse;

public class TransactionInitDispatcher extends AbstractDispatcher<Object[]> {
   
    public TransactionInitDispatcher(HStoreSite hstore_site, HStoreCoordinator hstore_coordinator) {
        super(hstore_site, hstore_coordinator);
    }

    @SuppressWarnings("unchecked")
    @Override
    public void runImpl(Object o[]) {
        RpcController controller = (RpcController)o[0];
        TransactionInitRequest request = (TransactionInitRequest)o[1];
        RpcCallback<TransactionInitResponse> callback = (RpcCallback<TransactionInitResponse>)o[2];
        hstore_coordinator.getTransactionInitHandler().remoteHandler(controller, request, callback);
    }

}
TOP

Related Classes of edu.brown.hstore.dispatchers.TransactionInitDispatcher

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.