Examples of StoragePoolType


Examples of com.cloud.storage.Storage.StoragePoolType

        }

        String sourcePath = null;
        String uuid = null;
        String sourceHost = "";
        StoragePoolType protocol = null;
        if (storageUri.getScheme().equalsIgnoreCase("nfs")) {
            sourcePath = storageUri.getPath();
            sourcePath = sourcePath.replace("//", "/");
            sourceHost = storageUri.getHost();
            uuid = UUID.nameUUIDFromBytes(
View Full Code Here

Examples of com.cloud.storage.Storage.StoragePoolType

            }
        }
    }

    private String getResizeScriptType (KVMStoragePool pool, KVMPhysicalDisk vol) {
        StoragePoolType poolType = pool.getType();
        PhysicalDiskFormat volFormat = vol.getFormat();

        if(pool.getType() == StoragePoolType.CLVM && volFormat == PhysicalDiskFormat.RAW) {
            return "CLVM";
        } else if ((poolType == StoragePoolType.NetworkFilesystem
View Full Code Here

Examples of com.cloud.storage.Storage.StoragePoolType

        Set<Long> poolIdsToIgnore = new HashSet<Long>();
        Criteria c = new Criteria();
        // TODO: implement
        List<? extends StoragePoolVO> allStoragePools = ApiDBUtils.searchForStoragePools(c);
        for (StoragePoolVO pool : allStoragePools) {
            StoragePoolType poolType = pool.getPoolType();
            if (!(poolType.isShared())) {// All the non shared storages shouldn't show up in the capacity calculation
                poolIdsToIgnore.add(pool.getId());
            }
        }

        float cpuOverprovisioningFactor = ApiDBUtils.getCpuOverprovisioningFactor();
View Full Code Here

Examples of com.cloud.storage.Storage.StoragePoolType

            if (storage.getInfo().state != StoragePoolState.VIR_STORAGE_POOL_RUNNING) {
                storage.create(0);
            }
            LibvirtStoragePoolDef spd = getStoragePoolDef(conn, storage);
            StoragePoolType type = null;
            if (spd.getPoolType() == LibvirtStoragePoolDef.poolType.NETFS
                    || spd.getPoolType() == LibvirtStoragePoolDef.poolType.DIR) {
                type = StoragePoolType.Filesystem;
            } else if (spd.getPoolType() == LibvirtStoragePoolDef.poolType.RBD) {
                type = StoragePoolType.RBD;
View Full Code Here

Examples of com.cloud.storage.Storage.StoragePoolType

        }

        String sourcePath = null;
        String uuid = null;
        String sourceHost = "";
        StoragePoolType protocal = null;
        if (storageUri.getScheme().equalsIgnoreCase("nfs")) {
            sourcePath = storageUri.getPath();
            sourcePath = sourcePath.replace("//", "/");
            sourceHost = storageUri.getHost();
            uuid = UUID.nameUUIDFromBytes(
View Full Code Here

Examples of com.cloud.storage.Storage.StoragePoolType

            }
        }
    }

    private String getResizeScriptType (KVMStoragePool pool, KVMPhysicalDisk vol) {
        StoragePoolType poolType = pool.getType();
        PhysicalDiskFormat volFormat = vol.getFormat();
        
        if(pool.getType() == StoragePoolType.CLVM && volFormat == KVMPhysicalDisk.PhysicalDiskFormat.RAW) {
            return "CLVM";
        } else if ((poolType == StoragePoolType.NetworkFilesystem
View Full Code Here

Examples of com.cloud.storage.Storage.StoragePoolType

        Integer port = pool.getPort();
        Integer expectedI = 25;
        assertEquals(expectedI, port);

        StoragePoolType type = pool.getType();
        assertEquals(StoragePoolType.Filesystem, type);

        String str = pool.toString();
        assertTrue(str.equals("Pool[" + id.toString() + "|" + host + ":"
                + port.toString() + "|" + path + "]"));
View Full Code Here

Examples of com.cloud.storage.Storage.StoragePoolType

        assertTrue(vmName.equals("vmname"));
    }

    @Test
    public void testGetPooltype() {
        StoragePoolType pt = avc.getPooltype();
        assertTrue(pt.equals(StoragePoolType.Filesystem));

        avc.setPooltype(StoragePoolType.NetworkFilesystem);
        pt = avc.getPooltype();
        assertTrue(pt.equals(StoragePoolType.NetworkFilesystem));

        avc.setPooltype(StoragePoolType.IscsiLUN);
        pt = avc.getPooltype();
        assertTrue(pt.equals(StoragePoolType.IscsiLUN));

        avc.setPooltype(StoragePoolType.Iscsi);
        pt = avc.getPooltype();
        assertTrue(pt.equals(StoragePoolType.Iscsi));
    }
View Full Code Here

Examples of com.cloud.storage.Storage.StoragePoolType

        Integer port = pool.getPort();
        Integer expectedI = 25;
        assertEquals(expectedI, port);

        StoragePoolType type = pool.getType();
        assertEquals(StoragePoolType.Filesystem, type);

        String str = pool.toString();
        assertTrue(str.equals("Pool[" + id.toString() + "|" + host + ":"
                + port.toString() + "|" + path + "]"));
View Full Code Here

Examples of com.cloud.storage.Storage.StoragePoolType

            }
        }
    }

    private String getResizeScriptType (KVMStoragePool pool, KVMPhysicalDisk vol) {
        StoragePoolType poolType = pool.getType();
        PhysicalDiskFormat volFormat = vol.getFormat();
        
        if(pool.getType() == StoragePoolType.CLVM && volFormat == KVMPhysicalDisk.PhysicalDiskFormat.RAW) {
            return "CLVM";
        } else if ((poolType == StoragePoolType.NetworkFilesystem
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.