public long getInstanceId() {
return 0;
}
@Override
public void invocationQueue(ByteBuffer serializedRequest, RpcCallback<byte[]> done) {
StoredProcedureInvocation invocation = null;
try {
invocation = FastDeserializer.deserialize(serializedRequest, StoredProcedureInvocation.class);
} catch (Exception ex) {
throw new RuntimeException(ex);
}
LOG.debug("request: " + invocation.getProcName() + " " +
invocation.getParams().toArray().length);
done.run(serializeResponse(new VoltTable[0], invocation.getClientHandle()));
}
}
PrintHandler printer = new PrintHandler();
VoltProcedureListener listener = new VoltProcedureListener(0, eventLoop, printer);
listener.bind();