org.ow2.jasmine.vmm.agent.driver.hyperv
Class HyperVHost
java.lang.Object
javax.management.NotificationBroadcasterSupport
org.ow2.jasmine.vmm.agent.domain.ManagedResource
org.ow2.jasmine.vmm.agent.driver.hyperv.HyperVHost
- All Implemented Interfaces:
- javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.ow2.jasmine.vmm.api.HostMXBean, org.ow2.jasmine.vmm.api.ManagedResourceMXBean
public class HyperVHost
- extends ManagedResource
- implements org.ow2.jasmine.vmm.api.HostMXBean, javax.management.NotificationEmitter
| Nested classes/interfaces inherited from interface org.ow2.jasmine.vmm.api.HostMXBean |
org.ow2.jasmine.vmm.api.HostMXBean.PerfMetric |
|
Method Summary |
void |
configurePerfMonitor(java.util.Set<org.ow2.jasmine.vmm.api.HostMXBean.PerfMetric> metricsOfInterest,
long periodMillis)
|
org.ow2.jasmine.vmm.api.VirtualMachineMXBean |
createVM(org.ow2.jasmine.vmm.api.VMConfigSpec vmSpecIn,
boolean sync)
|
java.util.Map<java.lang.String,java.lang.String> |
getCPUInfo()
|
float |
getCPULoad()
|
long |
getFreeMemoryMB()
|
java.lang.String |
getHostName()
|
HyperVConnection |
getHypervConnection()
|
java.util.Map<java.lang.String,java.lang.String> |
getHypervisorInfo()
|
float[] |
getLoadPerCPU()
|
javax.management.MBeanNotificationInfo[] |
getNotificationInfo()
|
int |
getNumCPU()
|
javax.management.ObjectName |
getObjectName()
|
java.util.List<org.ow2.jasmine.vmm.api.VirtualMachineMXBean> |
getResidentVMs()
|
org.ow2.jasmine.vmm.api.ServerPoolMXBean |
getServerPool()
|
long |
getTotalMemoryMB()
|
java.util.Map<java.lang.String,java.lang.Float> |
getVMCPULoads()
|
java.lang.String |
getVMFolderpath()
|
org.ow2.jasmine.vmm.api.VirtualMachineImageStoreMXBean |
getVMImageStore()
|
java.util.Map<java.lang.String,org.ow2.jasmine.vmm.api.ResourceUsage> |
getVMResourceUsage()
|
java.lang.String |
getVMTemplateFolderpath()
|
org.ow2.jasmine.vmm.api.VirtualMachineMXBean |
lookUpByNameLabel(java.lang.String nameLabel)
|
static HyperVHost |
newHost(HyperVServerPool resourcePool,
javax.management.ObjectName objectName,
java.lang.String hostName,
java.lang.String vmFolderPath,
java.lang.String vmTemplateFolderPath,
HyperVHost.HypervParams hypervParams,
java.lang.String disk)
|
void |
postMigrateVM(HyperVVirtualMachine vm,
HyperVHost newHost)
|
void |
sync(HyperVConnection connection)
|
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
addNotificationListener, 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 |
getPath |
| Methods inherited from interface javax.management.NotificationEmitter |
removeNotificationListener |
| Methods inherited from interface javax.management.NotificationBroadcaster |
addNotificationListener, removeNotificationListener |
newHost
public static HyperVHost newHost(HyperVServerPool resourcePool,
javax.management.ObjectName objectName,
java.lang.String hostName,
java.lang.String vmFolderPath,
java.lang.String vmTemplateFolderPath,
HyperVHost.HypervParams hypervParams,
java.lang.String disk)
getHypervConnection
public HyperVConnection getHypervConnection()
getVMFolderpath
public java.lang.String getVMFolderpath()
getVMTemplateFolderpath
public java.lang.String getVMTemplateFolderpath()
getServerPool
public org.ow2.jasmine.vmm.api.ServerPoolMXBean getServerPool()
- Specified by:
getServerPool in interface org.ow2.jasmine.vmm.api.HostMXBean
postMigrateVM
public void postMigrateVM(HyperVVirtualMachine vm,
HyperVHost newHost)
configurePerfMonitor
public void configurePerfMonitor(java.util.Set<org.ow2.jasmine.vmm.api.HostMXBean.PerfMetric> metricsOfInterest,
long periodMillis)
- Specified by:
configurePerfMonitor in interface org.ow2.jasmine.vmm.api.HostMXBean
getObjectName
public javax.management.ObjectName getObjectName()
- Specified by:
getObjectName in interface org.ow2.jasmine.vmm.api.ManagedResourceMXBean- Overrides:
getObjectName in class ManagedResource
getHypervisorInfo
public java.util.Map<java.lang.String,java.lang.String> getHypervisorInfo()
- Specified by:
getHypervisorInfo in interface org.ow2.jasmine.vmm.api.HostMXBean
getCPUInfo
public java.util.Map<java.lang.String,java.lang.String> getCPUInfo()
- Specified by:
getCPUInfo in interface org.ow2.jasmine.vmm.api.HostMXBean
getNumCPU
public int getNumCPU()
- Specified by:
getNumCPU in interface org.ow2.jasmine.vmm.api.HostMXBean
getHostName
public java.lang.String getHostName()
- Specified by:
getHostName in interface org.ow2.jasmine.vmm.api.HostMXBean
getVMImageStore
public org.ow2.jasmine.vmm.api.VirtualMachineImageStoreMXBean getVMImageStore()
- Specified by:
getVMImageStore in interface org.ow2.jasmine.vmm.api.HostMXBean
getFreeMemoryMB
public long getFreeMemoryMB()
- Specified by:
getFreeMemoryMB in interface org.ow2.jasmine.vmm.api.HostMXBean
sync
public void sync(HyperVConnection connection)
throws org.ow2.jasmine.vmm.api.VMMException
- Throws:
org.ow2.jasmine.vmm.api.VMMException
getResidentVMs
public java.util.List<org.ow2.jasmine.vmm.api.VirtualMachineMXBean> getResidentVMs()
- Specified by:
getResidentVMs in interface org.ow2.jasmine.vmm.api.HostMXBean
lookUpByNameLabel
public org.ow2.jasmine.vmm.api.VirtualMachineMXBean lookUpByNameLabel(java.lang.String nameLabel)
createVM
public org.ow2.jasmine.vmm.api.VirtualMachineMXBean createVM(org.ow2.jasmine.vmm.api.VMConfigSpec vmSpecIn,
boolean sync)
throws org.ow2.jasmine.vmm.api.InvalidVMConfigException,
org.ow2.jasmine.vmm.api.VMMException
- Specified by:
createVM in interface org.ow2.jasmine.vmm.api.HostMXBean
- Throws:
org.ow2.jasmine.vmm.api.InvalidVMConfigException
org.ow2.jasmine.vmm.api.VMMException
getTotalMemoryMB
public long getTotalMemoryMB()
- Specified by:
getTotalMemoryMB in interface org.ow2.jasmine.vmm.api.HostMXBean
getLoadPerCPU
public float[] getLoadPerCPU()
- Specified by:
getLoadPerCPU in interface org.ow2.jasmine.vmm.api.HostMXBean
getCPULoad
public float getCPULoad()
- Specified by:
getCPULoad in interface org.ow2.jasmine.vmm.api.HostMXBean
getVMResourceUsage
public java.util.Map<java.lang.String,org.ow2.jasmine.vmm.api.ResourceUsage> getVMResourceUsage()
- Specified by:
getVMResourceUsage in interface org.ow2.jasmine.vmm.api.HostMXBean
getNotificationInfo
public javax.management.MBeanNotificationInfo[] getNotificationInfo()
- Specified by:
getNotificationInfo in interface javax.management.NotificationBroadcaster- Overrides:
getNotificationInfo in class javax.management.NotificationBroadcasterSupport
getVMCPULoads
public java.util.Map<java.lang.String,java.lang.Float> getVMCPULoads()
- Specified by:
getVMCPULoads in interface org.ow2.jasmine.vmm.api.HostMXBean
Copyright © 2009 OW2 Consortium. All Rights Reserved.