|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.reservoir.monitoring.appl.DynamicControl
eu.reservoir.monitoring.appl.hypervisor.HypervisorCache
public class HypervisorCache
This class caches data from a hypervisor.
Constructor Summary | |
---|---|
HypervisorCache(java.lang.String hypervisorURI)
Construct a HypervisorCache and a hypervisor URI such as "xen:///" |
Method Summary | |
---|---|
protected void |
controlCleanup()
Cleanup |
protected void |
controlEvaluate()
Actually evaluate something. |
protected void |
controlInitialize()
Initialize this hypervisor cache It connects to the hypervisor |
CachedDomain |
domainLookupByID(int id)
Get a domain by it's id. |
protected void |
getDomainData(org.libvirt.Domain domain,
CachedDomain cachedDomain)
Get cached domain data. |
int[] |
listDomains()
Get the list of domain ids. |
static void |
main(java.lang.String[] args)
Main entry point. |
int |
numOfDomains()
Get the number of domains |
void |
waitForCacheReady()
Wait for the cache to be ready. |
Methods inherited from class eu.reservoir.monitoring.appl.DynamicControl |
---|
activateControl, deactivateControl, getElapsedTime, getName, getSleepTime, isRunning, run, setSleepTime, sleep |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HypervisorCache(java.lang.String hypervisorURI)
Method Detail |
---|
protected void controlInitialize()
controlInitialize
in class DynamicControl
protected void controlEvaluate()
controlEvaluate
in class DynamicControl
public void waitForCacheReady()
protected void controlCleanup()
controlCleanup
in class DynamicControl
protected void getDomainData(org.libvirt.Domain domain, CachedDomain cachedDomain) throws org.libvirt.LibvirtException
org.libvirt.LibvirtException
public int[] listDomains()
public int numOfDomains()
public CachedDomain domainLookupByID(int id)
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |