org.ow2.jasmine.vmm.agent.driver.xen
Class XenVMImageStore

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.xen.XenVMImageStore
All Implemented Interfaces:
javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.ow2.jasmine.vmm.api.ManagedResourceMXBean, org.ow2.jasmine.vmm.api.VirtualMachineImageStoreMXBean

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

Xen driver VirtualMachineImageStore MXBean implementation This store is implemented as a directory containing for each VM template:


Field Summary
 
Fields inherited from class org.ow2.jasmine.vmm.agent.domain.ManagedResource
objectName, path
 
Constructor Summary
XenVMImageStore(javax.management.ObjectName objectName, java.lang.String rootDirectory, java.lang.String storeServer, java.lang.String vmmDomain0HomeDir, java.lang.String sshPassword)
           
 
Method Summary
 long getCapacityMB()
           
 long getFreeSpaceMB()
           
 java.lang.String getName()
           
 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)
           
 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

XenVMImageStore

public XenVMImageStore(javax.management.ObjectName objectName,
                       java.lang.String rootDirectory,
                       java.lang.String storeServer,
                       java.lang.String vmmDomain0HomeDir,
                       java.lang.String sshPassword)
                throws org.ow2.jasmine.vmm.api.VMMException
Throws:
org.ow2.jasmine.vmm.api.VMMException
Method Detail

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

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 © 2009 OW2 Consortium. All Rights Reserved.