use of org.apache.hadoop.hbase.procedure2.RSProcedureCallable in project hbase by apache.
the class RSRpcServices method executeProcedures.
private void executeProcedures(RemoteProcedureRequest request) {
RSProcedureCallable callable;
try {
callable = Class.forName(request.getProcClass()).asSubclass(RSProcedureCallable.class).getDeclaredConstructor().newInstance();
} catch (Exception e) {
LOG.warn("Failed to instantiating remote procedure {}, pid={}", request.getProcClass(), request.getProcId(), e);
server.remoteProcedureComplete(request.getProcId(), e);
return;
}
callable.init(request.getProcData().toByteArray(), server);
LOG.debug("Executing remote procedure {}, pid={}", callable.getClass(), request.getProcId());
server.executeProcedure(request.getProcId(), callable);
}
Aggregations