String chokerName = args[1];
try {
limit = Integer.parseInt(args[2]);
} catch (NumberFormatException e) {
LOG.error("Limit not given in the right format");
throw new MasterExecException("Limit not given in the right format",
e);
}
Preconditions.checkState(limit >= 0, "Limit has to be at least 0");
// only works in memory!! not in zookeeper.