hudson.plugins.libvirt
Class Hypervisor
java.lang.Object
hudson.model.AbstractModelObject
hudson.slaves.Cloud
hudson.plugins.libvirt.Hypervisor
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.slaves.Cloud>, hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem, hudson.security.AccessControlled
public class Hypervisor
- extends hudson.slaves.Cloud
Represents a virtual datacenter.
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Fields inherited from class hudson.slaves.Cloud |
ALL, name, PROVISION |
|
Constructor Summary |
Hypervisor(java.lang.String hypervisorType,
java.lang.String hypervisorHost,
int hypervisorSshPort,
java.lang.String hypervisorSystemUrl,
java.lang.String username)
|
| Methods inherited from class hudson.slaves.Cloud |
all, checkPermission, getACL, getDisplayName, getSearchUrl, hasPermission |
| Methods inherited from class hudson.model.AbstractModelObject |
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Hypervisor
@DataBoundConstructor
public Hypervisor(java.lang.String hypervisorType,
java.lang.String hypervisorHost,
int hypervisorSshPort,
java.lang.String hypervisorSystemUrl,
java.lang.String username)
getHypervisorHost
public java.lang.String getHypervisorHost()
getHypervisorSshPort
public int getHypervisorSshPort()
getHypervisorType
public java.lang.String getHypervisorType()
getHypervisorSystemUrl
public java.lang.String getHypervisorSystemUrl()
getUsername
public java.lang.String getUsername()
getHypervisorDescription
public java.lang.String getHypervisorDescription()
getDomains
public java.util.Map<java.lang.String,org.libvirt.Domain> getDomains()
throws org.libvirt.LibvirtException
- Throws:
org.libvirt.LibvirtException
getVirtualMachines
public java.util.List<VirtualMachine> getVirtualMachines()
provision
public java.util.Collection<hudson.slaves.NodeProvisioner.PlannedNode> provision(hudson.model.Label label,
int i)
- Specified by:
provision in class hudson.slaves.Cloud
canProvision
public boolean canProvision(hudson.model.Label label)
- Specified by:
canProvision in class hudson.slaves.Cloud
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getDescriptor
public Hypervisor.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor in interface hudson.model.Describable<hudson.slaves.Cloud>- Overrides:
getDescriptor in class hudson.slaves.Cloud
constructHypervisorURI
public java.lang.String constructHypervisorURI()
Copyright © 2010. All Rights Reserved.