Class JCloudsSlave

All Implemented Interfaces:
ExtensionPoint, Describable<Node>, ModelObject, ReconfigurableDescribable<Node>, Saveable, SearchableModelObject, SearchItem, AccessControlled, Serializable, OnMaster, org.jenkinsci.plugins.cloudstats.TrackedItem

public class JCloudsSlave extends AbstractCloudSlave implements org.jenkinsci.plugins.cloudstats.TrackedItem
Jenkins Slave node.
See Also:
  • Constructor Details

  • Method Details

    • readResolve

      protected Object readResolve()
      Overrides:
      readResolve in class Slave
    • getOpenstackSlaveData

      @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @Nonnull public Map<String,String> getOpenstackSlaveData()
      Gets most of the Server settings that were provided to Openstack when the slave was created by the plugin. Not all settings are interesting and any that are empty/null are omitted.
      Returns:
      A Map of option name to value. This will not be null or empty.
    • getLiveOpenstackServerDetails

      @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @Nonnull public Map<String,String> getLiveOpenstackServerDetails()
      Get settings from OpenStack about the Server for this slave.
      Returns:
      A Map of fieldName to value. This will not be null or empty.
    • getPublicAddress

      @CheckForNull public String getPublicAddress() throws NoSuchElementException
      Get public IP address of the server.
      Throws:
      NoSuchElementException - The server does not exist anymore. Plugin should not get slave to this state ever but there is no way to prevent external machine deletion.
    • getSlaveOptions

      @Nonnull public SlaveOptions getSlaveOptions()
      Get effective options used to configure this slave.
    • getLauncherFactory

      @Nonnull public LauncherFactory getLauncherFactory()
    • getRetentionStrategy

      public RetentionStrategy<JCloudsComputer> getRetentionStrategy()
      Overrides:
      getRetentionStrategy in class Slave
    • getServerId

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @Nonnull public String getServerId()
    • createComputer

      public AbstractCloudComputer<JCloudsSlave> createComputer()
      Specified by:
      createComputer in class AbstractCloudSlave
    • getId

      @Nonnull public org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id getId()
      Specified by:
      getId in interface org.jenkinsci.plugins.cloudstats.TrackedItem
    • getCreatedTime

      public long getCreatedTime()
    • isLaunchTimedOut

      public boolean isLaunchTimedOut()
      Returns:
      True if the agent should have been up by now, and it is not. Note it could have been up momentarily before.
    • getComputer

      public JCloudsComputer getComputer()
      Overrides:
      getComputer in class Slave
    • _terminate

      protected void _terminate(TaskListener listener)
      Specified by:
      _terminate in class AbstractCloudSlave