Search in sources :

Example 1 with ConnectionInfo

use of com.woorea.openstack.cinder.model.ConnectionInfo in project ovirt-engine by oVirt.

the class OpenStackVolumeProviderProxy method initializeConnectionForVolume.

public CinderConnectionInfo initializeConnectionForVolume(String volumeId, ConnectionForInitialize connectionForInitialize) {
    ConnectionInfo connectionInfo = getClient(getTenantId()).volumes().initializeConnection(volumeId, connectionForInitialize).execute();
    CinderConnectionInfo cinderConnectionInfo = new CinderConnectionInfo();
    cinderConnectionInfo.setDriverVolumeType(connectionInfo.getDriverVolumeType());
    cinderConnectionInfo.setData(connectionInfo.getData());
    return cinderConnectionInfo;
}
Also used : CinderConnectionInfo(org.ovirt.engine.core.common.businessentities.storage.CinderConnectionInfo) CinderConnectionInfo(org.ovirt.engine.core.common.businessentities.storage.CinderConnectionInfo) ConnectionInfo(com.woorea.openstack.cinder.model.ConnectionInfo)

Aggregations

ConnectionInfo (com.woorea.openstack.cinder.model.ConnectionInfo)1 CinderConnectionInfo (org.ovirt.engine.core.common.businessentities.storage.CinderConnectionInfo)1