Search in sources :

Example 1 with CephClientFactory

use of com.emc.storageos.ceph.CephClientFactory in project coprhd-controller by CoprHD.

the class CephUtils method ensureConnectToCeph.

private static void ensureConnectToCeph(StorageProvider storageProvider) throws Exception {
    CephClientFactory factory = new CephClientFactory();
    CephClient cephClient = factory.getClient(storageProvider.getIPAddress(), storageProvider.getUserName(), storageProvider.getPassword());
    cephClient.close();
}
Also used : CephClientFactory(com.emc.storageos.ceph.CephClientFactory) CephClient(com.emc.storageos.ceph.CephClient)

Aggregations

CephClient (com.emc.storageos.ceph.CephClient)1 CephClientFactory (com.emc.storageos.ceph.CephClientFactory)1