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.
This commit is contained in:
Marcus Sorensen 2015-01-23 00:09:55 -08:00
parent 43f3d6ae19
commit bf397bfc88
1 changed files with 4 additions and 0 deletions

View File

@ -3922,6 +3922,10 @@ ServerResource {
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 {