|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HostMXBean
Management interface of a physical host acting as a container of virtual machines by way of a hypervisor.
The ObjectName for identifying a HostMXBean follows the following template:
org.ow2.jasmine.vmm.api:type=Host,name=<pathname> ,hostname=<hostname>
The notifications that can be emitted by a HostMXBean are as follows
Nested Class Summary | |
---|---|
static class |
HostMXBean.HostPowerState
Different states of a host. |
static class |
HostMXBean.PerfMetric
Defines the different performance metrics that can be retrieved from a host |
Method Summary | |
---|---|
void |
configurePerfMonitor(java.util.Set<HostMXBean.PerfMetric> metricsOfInterest,
long periodMillis)
Deprecated. |
VirtualMachineMXBean |
createVM(VMConfigSpec vmSpec,
boolean sync)
Creates a new virtual machine on this host. |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Returns the attributes of the host |
java.util.Map<java.lang.String,java.lang.String> |
getCPUInfo()
Returns the information about the CPU on this host. |
float |
getCPULoad()
Returns the aggregate CPU load of the host |
long |
getFreeMemoryMB()
Returns the free memory capacity of this host in MBytes |
java.lang.String |
getHostName()
Returns the DNS name of the host |
HostMXBean.HostPowerState |
getHostState()
Returns the power state of the host |
java.util.Map<java.lang.String,java.lang.String> |
getHypervisorInfo()
Returns properties of the hypervisor active for this host |
float[] |
getLoadPerCPU()
Returns the current load on each CPU core of the host |
int |
getNumCPU()
Return the number of CPU cores on the host |
java.util.List<VirtualMachineMXBean> |
getResidentVMs()
Returns the VMs resident on this host |
ServerPoolMXBean |
getServerPool()
Returns the server pool this host belongs to |
long |
getTotalMemoryMB()
Returns the total memory capacity of this host in MBytes |
java.util.Map<java.lang.String,java.lang.Float> |
getVMCPULoads()
Return the CPU load of every VM hosted on this host |
VirtualMachineImageStoreMXBean |
getVMImageStore()
Returns the VM image store associated with this host |
java.util.Map<java.lang.String,ResourceUsage> |
getVMResourceUsage()
Returns the current resource usage (CPU, memory, network, disk I/O) for all VM residing on this host |
boolean |
isConnectionLost()
Returns true if the connection to the underlying driver-specific hypervisor on the physical host is lost. |
void |
start()
start the host |
void |
stop()
shutdown the host |
Methods inherited from interface org.ow2.jasmine.vmm.api.ManagedResourceMXBean |
---|
getObjectName, getPath |
Method Detail |
---|
boolean isConnectionLost()
ServerPoolMXBean getServerPool()
java.util.Map<java.lang.String,java.lang.String> getAttributes()
java.lang.String getHostName() throws VMMException
VMMException
java.util.Map<java.lang.String,java.lang.String> getHypervisorInfo() throws VMMException
VMMException
int getNumCPU() throws VMMException
VMMException
java.util.Map<java.lang.String,java.lang.String> getCPUInfo() throws VMMException
VMMException
java.util.List<VirtualMachineMXBean> getResidentVMs() throws VMMException
VMMException
long getTotalMemoryMB() throws VMMException
VMMException
long getFreeMemoryMB() throws VMMException
VMMException
float[] getLoadPerCPU() throws VMMException
VMMException
float getCPULoad() throws VMMException
VMMException
HostMXBean.HostPowerState getHostState() throws VMMException
javax.management.InstanceNotFoundException
- thrown if the specified MXBean does not
exist
VMMException
java.util.Map<java.lang.String,java.lang.Float> getVMCPULoads() throws VMMException
VMMException
VirtualMachineMXBean createVM(VMConfigSpec vmSpec, boolean sync) throws InsufficientResourcesException, InvalidVMConfigException, VMMException
vmSpec
- initial configuration of the virtual machinesync
- if true the call will return once the VM has been created
InsufficientResourcesException
- raised if not enough resources are
available to create the VM
InvalidVMConfigException
- raised if the VM configuration is
invalid
VMMException
void stop() throws VMMException
VMMException
void start() throws VMMException
VMMException
VirtualMachineImageStoreMXBean getVMImageStore() throws VMMException
VMMException
java.util.Map<java.lang.String,ResourceUsage> getVMResourceUsage() throws VMMException
VMMException
@Deprecated void configurePerfMonitor(java.util.Set<HostMXBean.PerfMetric> metricsOfInterest, long periodMillis) throws VMMException
metricsOfInterest
- defines the metrics of interestperiodMillis
- the period of reporting in milliseconds. If this
value is equal or less than zero, the reporting is disabled
VMMException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |