use of com.emc.storageos.coordinator.client.service.CoordinatorClient in project coprhd-controller by CoprHD.
the class ClusterInfo method getClusterStateFromCoordinator.
private static ClusterState getClusterStateFromCoordinator() {
if (StorageOsPlugin.isEnabled()) {
CoordinatorClient coordinatorClient = StorageOsPlugin.getInstance().getCoordinatorClient();
ClusterState clusterState = coordinatorClient.getControlNodesState();
return clusterState;
}
return null;
}
use of com.emc.storageos.coordinator.client.service.CoordinatorClient in project coprhd-controller by CoprHD.
the class BlockSnapshots method snapshots.
public static void snapshots(String projectId) {
setActiveProjectId(projectId);
renderArgs.put("dataTable", blockSnapshotsDataTable);
CoordinatorClient coordinatorClient = StorageOsPlugin.getInstance().getCoordinatorClient();
String limit = coordinatorClient.getPropertyInfo().getProperty(Constants.RESOURCE_LIMIT_PROJECT_SNAPSHOTS);
renderArgs.put(Constants.RESOURCE_LIMIT_PROJECT_SNAPSHOTS, limit);
addReferenceData();
render();
}
use of com.emc.storageos.coordinator.client.service.CoordinatorClient in project coprhd-controller by CoprHD.
the class BlockVolumes method volumes.
public static void volumes(String projectId) {
setActiveProjectId(projectId);
renderArgs.put("dataTable", blockVolumesDataTable);
renderArgs.put("filterOptions", FILTER_OPTIONS);
CoordinatorClient coordinatorClient = StorageOsPlugin.getInstance().getCoordinatorClient();
String limit = coordinatorClient.getPropertyInfo().getProperty(Constants.RESOURCE_LIMIT_PROJECT_VOLUMES);
renderArgs.put(Constants.RESOURCE_LIMIT_PROJECT_VOLUMES, limit);
addReferenceData();
render();
}
use of com.emc.storageos.coordinator.client.service.CoordinatorClient in project coprhd-controller by CoprHD.
the class ControllerWorkflowCleanupHandler method checkPersistentLocks.
private void checkPersistentLocks() {
CoordinatorClient coordinator = getCoordinator();
coordinator.deletePath(ZkPath.PERSISTENTLOCK.toString());
log.info("Released all persistent locks");
}
Aggregations