String entity, String type, String start, String end,
String filePath, String colo, String clusters, String sourceClusters)
throws IvoryCLIException {
if (entity == null || entity.equals("")) {
throw new IvoryCLIException("Missing argument: name");
}
if (type == null || type.equals("")) {
throw new IvoryCLIException("Missing argument: type");
}
if (colo == null || colo.equals("")) {
throw new IvoryCLIException("Missing argument: colo");
}
if (!optionsList.contains(RUNNING_OPT)) {
if (start == null || start.equals("")) {
throw new IvoryCLIException("Missing argument: start");
}
}
if (optionsList.contains(CLUSTERS_OPT)) {
if (optionsList.contains(RUNNING_OPT)
|| optionsList.contains(LOG_OPT)
|| optionsList.contains(STATUS_OPT)) {
throw new IvoryCLIException("Invalid argument: clusters");
}
}
if (optionsList.contains(SOURCECLUSTER_OPT)) {
if ( optionsList.contains(RUNNING_OPT)
|| optionsList.contains(LOG_OPT)
|| optionsList.contains(STATUS_OPT) || !type.equals("feed") ) {
throw new IvoryCLIException("Invalid argument: sourceClusters");
}
}
}