Search in sources :

Example 1 with NexentaPluginParameters

use of org.apache.cloudstack.storage.datastore.util.NexentaUtil.NexentaPluginParameters in project cloudstack by apache.

the class NexentaPrimaryDataStoreDriver method getNexentaStorAppliance.

private NexentaStorAppliance getNexentaStorAppliance(long storagePoolId) {
    NexentaPluginParameters parameters = new NexentaPluginParameters();
    parameters.setNmsUrl(_storagePoolDetailsDao.findDetail(storagePoolId, NexentaUtil.NMS_URL).getValue());
    parameters.setVolume(_storagePoolDetailsDao.findDetail(storagePoolId, NexentaUtil.VOLUME).getValue());
    parameters.setStorageType(_storagePoolDetailsDao.findDetail(storagePoolId, NexentaUtil.STORAGE_TYPE).getValue());
    parameters.setStorageHost(_storagePoolDetailsDao.findDetail(storagePoolId, NexentaUtil.STORAGE_HOST).getValue());
    parameters.setStoragePort(_storagePoolDetailsDao.findDetail(storagePoolId, NexentaUtil.STORAGE_PORT).getValue());
    parameters.setStoragePath(_storagePoolDetailsDao.findDetail(storagePoolId, NexentaUtil.STORAGE_PATH).getValue());
    parameters.setSparseVolumes(_storagePoolDetailsDao.findDetail(storagePoolId, NexentaUtil.SPARSE_VOLUMES).getValue());
    parameters.setVolumeBlockSize(_storagePoolDetailsDao.findDetail(storagePoolId, NexentaUtil.VOLUME_BLOCK_SIZE).getValue());
    return new NexentaStorAppliance(parameters);
}
Also used : NexentaStorAppliance(org.apache.cloudstack.storage.datastore.util.NexentaStorAppliance) NexentaPluginParameters(org.apache.cloudstack.storage.datastore.util.NexentaUtil.NexentaPluginParameters)

Aggregations

NexentaStorAppliance (org.apache.cloudstack.storage.datastore.util.NexentaStorAppliance)1 NexentaPluginParameters (org.apache.cloudstack.storage.datastore.util.NexentaUtil.NexentaPluginParameters)1