private ResponseCommand processStatsConfig(final StatsCommand request, final SessionContext ctx) {
try {
final FileChannel fc = new FileInputStream(this.metaConfig.getConfigFilePath()).getChannel();
// result code length opaque\r\n
IoBuffer buf =
IoBuffer.allocate(11 + 3 + ByteUtils.stringSize(fc.size())
+ ByteUtils.stringSize(request.getOpaque()));
ByteUtils.setArguments(buf, MetaEncodeCommand.RESULT_CMD, HttpStatus.Success, fc.size(),
request.getOpaque());
buf.flip();
ctx.getConnection().transferFrom(buf, null, fc, 0, fc.size(), request.getOpaque(),
new SingleRequestCallBackListener() {
@Override
public void onResponse(ResponseCommand responseCommand, Connection conn) {