Search in sources :

Example 46 with CoordinatorClient

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;
}
Also used : ClusterState(com.emc.vipr.model.sys.ClusterInfo.ClusterState) CoordinatorClient(com.emc.storageos.coordinator.client.service.CoordinatorClient)

Example 47 with CoordinatorClient

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();
}
Also used : CoordinatorClient(com.emc.storageos.coordinator.client.service.CoordinatorClient)

Example 48 with CoordinatorClient

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();
}
Also used : CoordinatorClient(com.emc.storageos.coordinator.client.service.CoordinatorClient)

Example 49 with CoordinatorClient

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");
}
Also used : CoordinatorClient(com.emc.storageos.coordinator.client.service.CoordinatorClient)

Aggregations

CoordinatorClient (com.emc.storageos.coordinator.client.service.CoordinatorClient)49 Test (org.junit.Test)11 Base64TokenEncoder (com.emc.storageos.security.authentication.Base64TokenEncoder)8 TokenKeyGenerator (com.emc.storageos.security.authentication.TokenKeyGenerator)8 TokenMaxLifeValuesHolder (com.emc.storageos.security.authentication.TokenMaxLifeValuesHolder)8 Configuration (com.emc.storageos.coordinator.common.Configuration)7 DbClient (com.emc.storageos.db.client.DbClient)7 CassandraTokenManager (com.emc.storageos.auth.impl.CassandraTokenManager)6 AlternateIdConstraint (com.emc.storageos.db.client.constraint.AlternateIdConstraint)6 StorageOSUserDAO (com.emc.storageos.db.client.model.StorageOSUserDAO)6 TokenOnWire (com.emc.storageos.security.authentication.TokenOnWire)6 ContainmentConstraint (com.emc.storageos.db.client.constraint.ContainmentConstraint)5 URI (java.net.URI)5 Service (com.emc.storageos.coordinator.common.Service)4 InterVDCTokenCacheHelper (com.emc.storageos.security.geo.InterVDCTokenCacheHelper)4 ArrayList (java.util.ArrayList)4 ConfigurationImpl (com.emc.storageos.coordinator.common.impl.ConfigurationImpl)3 BaseToken (com.emc.storageos.db.client.model.BaseToken)3 ProxyToken (com.emc.storageos.db.client.model.ProxyToken)3 Token (com.emc.storageos.db.client.model.Token)3