use of com.cloudera.api.swagger.model.ApiParcelList in project cloudbreak by hortonworks.
the class ClouderaManagerParcelDeletedListenerTask method doStatusCheck.
@Override
protected boolean doStatusCheck(ClouderaManagerCommandPollerObject pollerObject) throws ApiException {
ApiClient apiClient = pollerObject.getApiClient();
Stack stack = pollerObject.getStack();
ApiParcelList parcels = getClouderaManagerParcels(apiClient, stack.getName());
List<ApiParcel> existedParcels = collectExistingParcels(parcels);
if (existedParcels.isEmpty()) {
LOGGER.debug("Parcels are deleted successfully.");
return true;
} else {
LOGGER.debug("Some parcels are not yet deleted: [{}].", getJoinedParcelStages(existedParcels));
return false;
}
}
Aggregations