Search in sources :

Example 1 with RPDeviceController

use of com.emc.storageos.protectioncontroller.impl.recoverpoint.RPDeviceController in project coprhd-controller by CoprHD.

the class RPControllerImpl method getCopyAccessStates.

@Override
public Map<URI, String> getCopyAccessStates(URI protectionDevice, List<URI> volumeURIs) {
    final DiscoveredSystemObject device = _dbClient.queryObject(ProtectionSystem.class, protectionDevice);
    final Controller controller = lookupDeviceController(device);
    // Try to grab a handle on the RPDeviceController so we can call directly into it.
    if (controller instanceof RPDeviceController) {
        return ((RPDeviceController) controller).getCopyAccessStates(protectionDevice, volumeURIs);
    }
    // Problem calling the controller so just return an empty map
    return new HashMap<URI, String>();
}
Also used : RPDeviceController(com.emc.storageos.protectioncontroller.impl.recoverpoint.RPDeviceController) HashMap(java.util.HashMap) DiscoveredSystemObject(com.emc.storageos.db.client.model.DiscoveredSystemObject) RPController(com.emc.storageos.protectioncontroller.RPController) Controller(com.emc.storageos.Controller) RPDeviceController(com.emc.storageos.protectioncontroller.impl.recoverpoint.RPDeviceController) AbstractDiscoveredSystemController(com.emc.storageos.impl.AbstractDiscoveredSystemController)

Aggregations

Controller (com.emc.storageos.Controller)1 DiscoveredSystemObject (com.emc.storageos.db.client.model.DiscoveredSystemObject)1 AbstractDiscoveredSystemController (com.emc.storageos.impl.AbstractDiscoveredSystemController)1 RPController (com.emc.storageos.protectioncontroller.RPController)1 RPDeviceController (com.emc.storageos.protectioncontroller.impl.recoverpoint.RPDeviceController)1 HashMap (java.util.HashMap)1