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 00:09:55 -08:00
parent c8b890bece
commit e2bb4cf583
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
// Licensed to the Apache Software Foundation (ASF) under one
// Licensed to the Apache Software Foundation (ASF) under oneD
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
@ -4044,6 +4044,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;