Class JCloudsCloud

All Implemented Interfaces:
ExtensionPoint, Describable<Cloud>, ModelObject, SearchableModelObject, SearchItem, AccessControlled, ModelObjectWithContextMenu

public class JCloudsCloud extends Cloud
The JClouds version of the Jenkins Cloud.
Author:
Vijay Kiran
  • Field Details

    • providerName

      public final String providerName
    • endPointUrl

      public final String endPointUrl
    • profile

      public final String profile
    • instanceCap

      public int instanceCap
    • templates

      public final List<JCloudsSlaveTemplate> templates
    • scriptTimeout

      public final int scriptTimeout
    • startTimeout

      public final int startTimeout
    • zones

      public final String zones
  • Constructor Details

  • Method Details

    • getName

      public String getName()
    • getCloudCredentialsId

      public String getCloudCredentialsId()
    • getTrustAll

      public boolean getTrustAll()
    • setCloudCredentialsId

      public void setCloudCredentialsId(String value)
    • getCloudGlobalKeyId

      public String getCloudGlobalKeyId()
    • setCloudGlobalKeyId

      public void setCloudGlobalKeyId(String value)
    • getGlobalPrivateKey

      public String getGlobalPrivateKey()
    • getGlobalPublicKey

      public String getGlobalPublicKey()
    • getGroupPrefix

      public String getGroupPrefix()
    • readResolve

      protected Object readResolve()
    • getRetentionTime

      public int getRetentionTime()
      Get the retention time in minutes or default value from CloudInstanceDefaults if it is zero.
      Returns:
      The retention time in minutes.
      See Also:
      • CloudInstanceDefaults.DEFAULT_INSTANCE_RETENTION_TIME_IN_MINUTES
    • getErrorRetentionTime

      public int getErrorRetentionTime()
      Get the error retention time in minutes or default value from CloudInstanceDefaults if it is zero.
      Returns:
      The retention time in minutes.
      See Also:
      • CloudInstanceDefaults.DEFAULT_INSTANCE_RETENTION_TIME_IN_MINUTES
    • newApi

      public <A extends Closeable> A newApi(Class<A> apitype)
    • newCompute

      public ComputeService newCompute()
    • getCompute

      public ComputeService getCompute()
    • getTemplates

      public List<JCloudsSlaveTemplate> getTemplates()
    • provision

      public Collection<NodeProvisioner.PlannedNode> provision(Cloud.CloudState state, int excessWorkload)
      Overrides:
      provision in class Cloud
    • canProvision

      public boolean canProvision(Cloud.CloudState state)
      Overrides:
      canProvision in class Cloud
    • doProvision

      Provisions a new node manually (by clicking a button in the computer list).
      Parameters:
      req - StaplerRequest.
      rsp - StaplerResponse.
      name - Name of the template to provision.
      Throws:
      ServletException - if an error occurs.
      IOException - if an error occurs.
      Descriptor.FormException - if the form does not validate.
    • unregisterPhoneHomeMonitor

      public void unregisterPhoneHomeMonitor(jenkins.plugins.jclouds.compute.PhoneHomeMonitor monitor)
    • phoneHomeNotify

      public boolean phoneHomeNotify(String name)
    • allowGzippedUserData

      public boolean allowGzippedUserData()