org.jenkinsci.plugins
Class vSphereCloud

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.slaves.Cloud
          extended by org.jenkinsci.plugins.vSphereCloud
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 vSphereCloud
extends hudson.slaves.Cloud

Author:
Admin

Nested Class Summary
static class vSphereCloud.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
vSphereCloud(String vsHost, String vsDescription, String username, String password, int maxOnlineSlaves)
           
 
Method Summary
 Boolean canMarkVMOnline(String slaveName, String vmName)
           
 boolean canProvision(hudson.model.Label label)
           
protected  void EnsureLists()
           
 com.vmware.vim25.ManagedObjectReference findSnapshotInTree(com.vmware.vim25.VirtualMachineSnapshotTree[] snapTree, String snapName)
           
 vSphereCloud.DescriptorImpl getDescriptor()
           
 int getMaxOnlineSlaves()
           
 String getPassword()
           
 com.vmware.vim25.mo.ServiceInstance getSI()
           
 hudson.slaves.SlaveComputer getSlaveBeingLaunched()
           
 com.vmware.vim25.mo.VirtualMachineSnapshot getSnapshotInTree(com.vmware.vim25.mo.VirtualMachine vm, String snapName)
           
 String getUsername()
           
 String getVsDescription()
           
 String getVsHost()
           
 void markVMOffline(String slaveName, String vmName)
           
 Boolean markVMOnline(String slaveName, String vmName)
           
 Collection<hudson.slaves.NodeProvisioner.PlannedNode> provision(hudson.model.Label label, int excessWorkload)
           
 void setSlaveBeingLaunched(hudson.slaves.SlaveComputer slaveBeingLaunched)
           
 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

vSphereCloud

@DataBoundConstructor
public vSphereCloud(String vsHost,
                                         String vsDescription,
                                         String username,
                                         String password,
                                         int maxOnlineSlaves)
Method Detail

EnsureLists

protected void EnsureLists()

getMaxOnlineSlaves

public int getMaxOnlineSlaves()

getPassword

public String getPassword()

getUsername

public String getUsername()

getVsDescription

public String getVsDescription()

getVsHost

public String getVsHost()

getSlaveBeingLaunched

public hudson.slaves.SlaveComputer getSlaveBeingLaunched()

setSlaveBeingLaunched

public void setSlaveBeingLaunched(hudson.slaves.SlaveComputer slaveBeingLaunched)

canProvision

public boolean canProvision(hudson.model.Label label)
Specified by:
canProvision in class hudson.slaves.Cloud

provision

public Collection<hudson.slaves.NodeProvisioner.PlannedNode> provision(hudson.model.Label label,
                                                                       int excessWorkload)
Specified by:
provision in class hudson.slaves.Cloud

toString

public String toString()
Overrides:
toString in class Object

getSI

public com.vmware.vim25.mo.ServiceInstance getSI()
                                          throws Exception
Throws:
Exception

canMarkVMOnline

public Boolean canMarkVMOnline(String slaveName,
                               String vmName)

markVMOnline

public Boolean markVMOnline(String slaveName,
                            String vmName)

markVMOffline

public void markVMOffline(String slaveName,
                          String vmName)

getSnapshotInTree

public com.vmware.vim25.mo.VirtualMachineSnapshot getSnapshotInTree(com.vmware.vim25.mo.VirtualMachine vm,
                                                                    String snapName)
                                                             throws Exception
Throws:
Exception

findSnapshotInTree

public com.vmware.vim25.ManagedObjectReference findSnapshotInTree(com.vmware.vim25.VirtualMachineSnapshotTree[] snapTree,
                                                                  String snapName)

getDescriptor

public vSphereCloud.DescriptorImpl getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.slaves.Cloud>
Overrides:
getDescriptor in class hudson.slaves.Cloud


Copyright © 2004-2012. All Rights Reserved.