} else {
vt = new VoltTable[1];
vt[0] = new VoltTable(new VoltTable.ColumnInfo("Foo", VoltType.BIGINT));
vt[0].addRow(1);
}
ClientResponseImpl response;
if (sendProcTimeout.get()) {
response = new ClientResponseImpl(ClientResponseImpl.CONNECTION_TIMEOUT, vt,
"Timeout String", spi.getClientHandle());
} else {
response = new ClientResponseImpl(ClientResponseImpl.SUCCESS, vt,
"Extra String", spi.getClientHandle());
}
ByteBuffer buf = ByteBuffer.allocate(4 + response.getSerializedSize());
buf.putInt(buf.capacity() - 4);
response.flattenToBuffer(buf);
buf.clear();
c.writeStream().enqueue(buf);
roundTrips.incrementAndGet();
System.err.println("Sending response.");
}