Class ComputeEngineComputer

All Implemented Interfaces:
ExtensionPoint, DescriptorByNameOwner, ExecutorListener, ModelObject, SearchableModelObject, SearchItem, AccessControlled, ModelObjectWithContextMenu, HasWidgets, org.kohsuke.stapler.StaplerProxy

public class ComputeEngineComputer extends AbstractCloudComputer<ComputeEngineInstance>
  • Constructor Details

  • Method Details

    • getPreemptible

      public boolean getPreemptible()
      Check if instance is preemptible.
      Returns:
      true if instance was set as preemptible.
    • getPreempted

      public boolean getPreempted()
      Check if instance was actually preempted.
      Returns:
      true if instance was preempted (we can use it to reschedule job in this case).
    • getNumExecutorsStr

      public String getNumExecutorsStr()
    • setNumExecutorsStr

      @DataBoundSetter public void setNumExecutorsStr(String value)
    • getInstance

      public com.google.api.services.compute.model.Instance getInstance() throws IOException
      Returns a cached representation of the Instance
      Returns:
      Throws:
      IOException
    • refreshInstance

      public com.google.api.services.compute.model.Instance refreshInstance() throws IOException
      Throws:
      IOException
    • getInstanceStatus

      public String getInstanceStatus() throws IOException
      Returns the most current status of the Instance as reported by the GCE API
      Returns:
      Throws:
      IOException
    • getCloud

      protected ComputeEngineCloud getCloud()
    • doDoDelete

      public org.kohsuke.stapler.HttpResponse doDoDelete() throws IOException
      When the agent is deleted, terminate the instance.
      Overrides:
      doDoDelete in class AbstractCloudComputer<ComputeEngineInstance>
      Throws:
      IOException