hudson.plugins.libvirt
Class Hypervisor

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.slaves.Cloud
          extended by 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 Class Summary
static class Hypervisor.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
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)
           
 
Method Summary
 boolean canProvision(hudson.model.Label label)
           
 java.lang.String constructHypervisorURI()
           
 Hypervisor.DescriptorImpl getDescriptor()
           
 java.util.Map<java.lang.String,org.libvirt.Domain> getDomains()
           
 java.lang.String getHypervisorDescription()
           
 java.lang.String getHypervisorHost()
           
 int getHypervisorSshPort()
           
 java.lang.String getHypervisorSystemUrl()
           
 java.lang.String getHypervisorType()
           
 java.lang.String getUsername()
           
 java.util.List<VirtualMachine> getVirtualMachines()
           
 java.util.Collection<hudson.slaves.NodeProvisioner.PlannedNode> provision(hudson.model.Label label, int i)
           
 java.lang.String toString()
           
 
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
 

Constructor Detail

Hypervisor

@DataBoundConstructor
public Hypervisor(java.lang.String hypervisorType,
                                       java.lang.String hypervisorHost,
                                       int hypervisorSshPort,
                                       java.lang.String hypervisorSystemUrl,
                                       java.lang.String username)
Method Detail

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 Byte-Code. All Rights Reserved.