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>();
}
Aggregations