LibvirtComputingResource: Expose KVMStoragePoolManager

KVMStoragePoolManager is a singleton in practice, any plugin
or extension of LibvirtComputingResource will need to act on
the specific instance of KVMStoragePoolManager that LibvirtComputingResource
has initialized. Therefore, expose this variable for those who
wish to call storage commands from plugins or extensions.

Conflicts:

	plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
This commit is contained in:
Marcus Sorensen 2015-01-23 02:44:08 -07:00
parent f983e6ed82
commit 455998ce95

View File

@ -4080,6 +4080,10 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
return _storagePoolMgr.disconnectPhysicalDiskByPath(path);
}
protected KVMStoragePoolManager getPoolManager() {
return _storagePoolMgr;
}
protected synchronized String attachOrDetachISO(Connect conn, String vmName, String isoPath, boolean isAttach) throws LibvirtException, URISyntaxException,
InternalErrorException {
String isoXml = null;