public void checkFailureThreshold(RoleStatus role) throws
TriggerClusterTeardownException {
int failures = role.getFailed();
if (failures > failureThreshold) {
throw new TriggerClusterTeardownException(
SliderExitCodes.EXIT_DEPLOYMENT_FAILED,
ErrorStrings.E_UNSTABLE_CLUSTER +
" - failed with role %s failing %d times (%d in startup); threshold is %d - last failure: %s",
role.getName(),
role.getFailed(),