Search in sources :

Example 11 with DbConsistencyStatus

use of com.emc.storageos.coordinator.client.model.DbConsistencyStatus in project coprhd-controller by CoprHD.

the class DbConsistencyChecker method setNextCheckType.

private void setNextCheckType() {
    if (toConsole) {
        return;
    }
    CheckType checkType = getCheckTypeFromZK();
    if (!checkType.hasNext()) {
        return;
    }
    DbConsistencyStatus status = getStatusFromZk();
    status.update(checkType.getNext().name(), null);
    persistStatus(status);
}
Also used : DbConsistencyStatus(com.emc.storageos.coordinator.client.model.DbConsistencyStatus)

Aggregations

DbConsistencyStatus (com.emc.storageos.coordinator.client.model.DbConsistencyStatus)11 CheckResult (com.emc.storageos.db.client.impl.DbConsistencyCheckerHelper.CheckResult)2 CheckPermission (com.emc.storageos.security.authorization.CheckPermission)2 ConnectionException (com.netflix.astyanax.connectionpool.exceptions.ConnectionException)2 CancellationException (java.util.concurrent.CancellationException)2 Path (javax.ws.rs.Path)2 IndexAndCf (com.emc.storageos.db.client.impl.DbConsistencyCheckerHelper.IndexAndCf)1 GET (javax.ws.rs.GET)1 POST (javax.ws.rs.POST)1 Produces (javax.ws.rs.Produces)1