Package hudson.model

Class UpdateCenter.UpdateCenterJob

All Implemented Interfaces:
Direct Known Subclasses:
UpdateCenter.CompleteBatchJob, UpdateCenter.ConnectionCheckJob, UpdateCenter.DownloadJob, UpdateCenter.RestartJenkinsJob
Enclosing class:

@ExportedBean public abstract class UpdateCenter.UpdateCenterJob extends Object implements Runnable
Things that UpdateCenter.installerService executes. This object will have the row.jelly which renders the job on UI.
  • Field Details

    • id

      @Exported public final int id
      Unique ID that identifies this job.
      See Also:
    • site

      @CheckForNull public final UpdateSite site
      Which UpdateSite does this belong to?
    • error

      protected Throwable error
      If this job fails, set to the error.
  • Constructor Details

    • UpdateCenterJob

      protected UpdateCenterJob(@CheckForNull UpdateSite site)
  • Method Details

    • getApi

      public Api getApi()
    • getCorrelationId

      public UUID getCorrelationId()
    • setCorrelationId

      public void setCorrelationId(UUID correlationId)
    • schedule

      @Deprecated public void schedule()
      as of 1.326 Use submit() instead.
    • getType

      @Exported public String getType()
    • submit

      Schedules this job for an execution
      Future to keeps track of the status of the execution.
    • getErrorMessage

      @Exported public String getErrorMessage()
    • getError

      public Throwable getError()