public class Hypervisor
extends hudson.slaves.Cloud
| Modifier and Type | Class and Description |
|---|---|
static class |
Hypervisor.DescriptorImpl |
| Constructor and Description |
|---|
Hypervisor(String hypervisorType,
String hypervisorHost,
int hypervisorSshPort,
String hypervisorSystemUrl,
String username,
int maxOnlineSlaves) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
canMarkVMOnline(String slaveName,
String vmName) |
boolean |
canProvision(hudson.model.Label label) |
protected void |
ensureLists() |
protected void |
finalize() |
int |
getCurrentOnlineSlaveCount() |
Hypervisor.DescriptorImpl |
getDescriptor() |
Map<String,org.libvirt.Domain> |
getDomains() |
String |
getHypervisorDescription() |
String |
getHypervisorHost() |
int |
getHypervisorSshPort() |
String |
getHypervisorSystemUrl() |
String |
getHypervisorType() |
String |
getHypervisorURI() |
int |
getMaxOnlineSlaves() |
String[] |
getSnapshots(String virtualMachineName)
Returns an array of snapshots names/ids of a given VM as found by libvirt.
|
String |
getUsername() |
List<VirtualMachine> |
getVirtualMachines()
Returns a
List of VMs configured on the hypervisor. |
void |
markVMOffline(String slaveName,
String vmName) |
Boolean |
markVMOnline(String slaveName,
String vmName) |
Collection<hudson.slaves.NodeProvisioner.PlannedNode> |
provision(hudson.model.Label label,
int i) |
String |
toString() |
all, checkPermission, getACL, getDisplayName, getSearchUrl, hasPermissionprotected void ensureLists()
public String getHypervisorHost()
public int getHypervisorSshPort()
public String getHypervisorType()
public String getHypervisorSystemUrl()
public String getUsername()
public int getMaxOnlineSlaves()
public int getCurrentOnlineSlaveCount()
public String getHypervisorDescription()
public Map<String,org.libvirt.Domain> getDomains() throws org.libvirt.LibvirtException
org.libvirt.LibvirtExceptionpublic List<VirtualMachine> getVirtualMachines()
List of VMs configured on the hypervisor. This method always retrieves the current list of
VMs to ensure that newly available instances show up right away.public String[] getSnapshots(String virtualMachineName)
virtualMachineName - the name of the vmpublic Collection<hudson.slaves.NodeProvisioner.PlannedNode> provision(hudson.model.Label label, int i)
provision in class hudson.slaves.Cloudpublic boolean canProvision(hudson.model.Label label)
canProvision in class hudson.slaves.Cloudpublic void markVMOffline(String slaveName, String vmName) throws org.libvirt.LibvirtException
org.libvirt.LibvirtExceptionprotected void finalize()
throws Throwable
public Hypervisor.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.slaves.Cloud>getDescriptor in class hudson.slaves.Cloudpublic String getHypervisorURI()
Copyright © 2004-2013 Byte-Code. All Rights Reserved.