org.ow2.jasmine.vmm.agent.driver.libvirt
Class ImageCatalog

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by org.ow2.jasmine.vmm.agent.domain.ManagedResource
          extended by org.ow2.jasmine.vmm.agent.driver.libvirt.ImageCatalog
All Implemented Interfaces:
javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.ow2.jasmine.vmm.api.ManagedResourceMXBean, org.ow2.jasmine.vmm.api.VirtualMachineImageStoreMXBean

public class ImageCatalog
extends ManagedResource
implements org.ow2.jasmine.vmm.api.VirtualMachineImageStoreMXBean


Nested Class Summary
 class ImageCatalog.VirtualMachineImage
           
 
Field Summary
 
Fields inherited from class org.ow2.jasmine.vmm.agent.domain.ManagedResource
objectName, path
 
Constructor Summary
ImageCatalog(javax.management.ObjectName objectName, java.lang.String rootDirectory, java.lang.String storeServer, RemoteExec.SshAuthInfo authInfo)
           
 
Method Summary
 long getCapacityMB()
           
 long getFreeSpaceMB()
           
 java.lang.String getName()
           
 java.lang.String getRootDirectory()
           
 java.util.List<org.ow2.jasmine.vmm.api.VirtualMachineImageMXBean> listVMImageTemplates()
           
 org.ow2.jasmine.vmm.api.VirtualMachineImageMXBean lookUpByName(java.lang.String name)
           
 org.ow2.jasmine.vmm.api.VirtualMachineImageMXBean lookUpByUUID(java.lang.String uuid)
           
 org.ow2.jasmine.vmm.api.VirtualMachineImageMXBean newVMImageTemplate(LibvirtVirtualMachine vm, java.lang.String name, java.lang.String description, java.util.Map<java.lang.String,java.lang.String> metadata)
           
 void removeVMImageTemplate(org.ow2.jasmine.vmm.api.VirtualMachineImageMXBean vmImage)
           
 
Methods inherited from class org.ow2.jasmine.vmm.agent.domain.ManagedResource
emitNotification, emitNotification, getObjectName, getPath
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ow2.jasmine.vmm.api.ManagedResourceMXBean
getObjectName, getPath
 

Constructor Detail

ImageCatalog

public ImageCatalog(javax.management.ObjectName objectName,
                    java.lang.String rootDirectory,
                    java.lang.String storeServer,
                    RemoteExec.SshAuthInfo authInfo)
             throws org.ow2.jasmine.vmm.api.VMMException
Throws:
org.ow2.jasmine.vmm.api.VMMException
Method Detail

getRootDirectory

public java.lang.String getRootDirectory()

removeVMImageTemplate

public void removeVMImageTemplate(org.ow2.jasmine.vmm.api.VirtualMachineImageMXBean vmImage)
                           throws org.ow2.jasmine.vmm.api.VMMException
Specified by:
removeVMImageTemplate in interface org.ow2.jasmine.vmm.api.VirtualMachineImageStoreMXBean
Throws:
org.ow2.jasmine.vmm.api.VMMException

newVMImageTemplate

public org.ow2.jasmine.vmm.api.VirtualMachineImageMXBean newVMImageTemplate(LibvirtVirtualMachine vm,
                                                                            java.lang.String name,
                                                                            java.lang.String description,
                                                                            java.util.Map<java.lang.String,java.lang.String> metadata)
                                                                     throws org.ow2.jasmine.vmm.api.InsufficientResourcesException,
                                                                            org.ow2.jasmine.vmm.api.IllegalOperationException,
                                                                            org.ow2.jasmine.vmm.api.BadVMPowerStateException,
                                                                            org.ow2.jasmine.vmm.api.VMMException
Throws:
org.ow2.jasmine.vmm.api.InsufficientResourcesException
org.ow2.jasmine.vmm.api.IllegalOperationException
org.ow2.jasmine.vmm.api.BadVMPowerStateException
org.ow2.jasmine.vmm.api.VMMException

lookUpByName

public org.ow2.jasmine.vmm.api.VirtualMachineImageMXBean lookUpByName(java.lang.String name)

lookUpByUUID

public org.ow2.jasmine.vmm.api.VirtualMachineImageMXBean lookUpByUUID(java.lang.String uuid)
Specified by:
lookUpByUUID in interface org.ow2.jasmine.vmm.api.VirtualMachineImageStoreMXBean

listVMImageTemplates

public java.util.List<org.ow2.jasmine.vmm.api.VirtualMachineImageMXBean> listVMImageTemplates()
Specified by:
listVMImageTemplates in interface org.ow2.jasmine.vmm.api.VirtualMachineImageStoreMXBean

getCapacityMB

public long getCapacityMB()
Specified by:
getCapacityMB in interface org.ow2.jasmine.vmm.api.VirtualMachineImageStoreMXBean

getFreeSpaceMB

public long getFreeSpaceMB()
Specified by:
getFreeSpaceMB in interface org.ow2.jasmine.vmm.api.VirtualMachineImageStoreMXBean

getName

public java.lang.String getName()
Specified by:
getName in interface org.ow2.jasmine.vmm.api.VirtualMachineImageStoreMXBean


Copyright © 2010 OW2 Consortium. All Rights Reserved.