throw new IOException("Illegal command id: " + cmdid);
}
FlumeMasterCommandThrift cmdt = cst.getCmd();
Command cmd = new Command(cmdt.getCommand(), cmdt.arguments
.toArray(new String[0]));
CommandStatus cs = new CommandStatus(cst.getCmdId(), cmd,
CommandStatus.State.valueOf(cst.state), cst.getMessage());
return cs;
} catch (TException e) {
throw new IOException(e);
}