Search in sources :

Example 1 with LibvirtStoragePoolXMLParser

use of com.cloud.hypervisor.kvm.resource.LibvirtStoragePoolXMLParser in project cosmic by MissionCriticalCloud.

the class LibvirtStorageAdaptor method getStoragePoolDef.

public LibvirtStoragePoolDef getStoragePoolDef(final Connect conn, final StoragePool pool) throws LibvirtException {
    final String poolDefXml = pool.getXMLDesc(0);
    final LibvirtStoragePoolXmlParser parser = new LibvirtStoragePoolXmlParser();
    return parser.parseStoragePoolXml(poolDefXml);
}
Also used : LibvirtStoragePoolXmlParser(com.cloud.hypervisor.kvm.resource.LibvirtStoragePoolXmlParser)

Example 2 with LibvirtStoragePoolXMLParser

use of com.cloud.hypervisor.kvm.resource.LibvirtStoragePoolXMLParser in project cloudstack by apache.

the class LibvirtStorageAdaptor method getStoragePoolDef.

public LibvirtStoragePoolDef getStoragePoolDef(Connect conn, StoragePool pool) throws LibvirtException {
    String poolDefXML = pool.getXMLDesc(0);
    LibvirtStoragePoolXMLParser parser = new LibvirtStoragePoolXMLParser();
    return parser.parseStoragePoolXML(poolDefXML);
}
Also used : LibvirtStoragePoolXMLParser(com.cloud.hypervisor.kvm.resource.LibvirtStoragePoolXMLParser)

Aggregations

LibvirtStoragePoolXMLParser (com.cloud.hypervisor.kvm.resource.LibvirtStoragePoolXMLParser)1 LibvirtStoragePoolXmlParser (com.cloud.hypervisor.kvm.resource.LibvirtStoragePoolXmlParser)1