Package hudson.model
Class UpdateCenter.UpdateCenterJob
- java.lang.Object
-
- hudson.model.UpdateCenter.UpdateCenterJob
-
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
UpdateCenter.CompleteBatchJob,UpdateCenter.ConnectionCheckJob,UpdateCenter.DownloadJob,UpdateCenter.RestartJenkinsJob
- Enclosing class:
- UpdateCenter
@ExportedBean public abstract class UpdateCenter.UpdateCenterJob extends Object implements Runnable
Things thatUpdateCenter.installerServiceexecutes. This object will have therow.jellywhich renders the job on UI.
-
-
Field Summary
Fields Modifier and Type Field Description protected ThrowableerrorIf this job fails, set to the error.intidUnique ID that identifies this job.UpdateSitesiteWhichUpdateSitedoes this belong to?
-
Constructor Summary
Constructors Modifier Constructor Description protectedUpdateCenterJob(UpdateSite site)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ApigetApi()UUIDgetCorrelationId()ThrowablegetError()StringgetErrorMessage()StringgetType()voidschedule()Deprecated.as of 1.326 Usesubmit()instead.voidsetCorrelationId(UUID correlationId)Future<UpdateCenter.UpdateCenterJob>submit()Schedules this job for an execution
-
-
-
Field Detail
-
id
@Exported public final int id
Unique ID that identifies this job.- See Also:
UpdateCenter.getJob(int)
-
site
@CheckForNull public final UpdateSite site
WhichUpdateSitedoes this belong to?
-
error
protected Throwable error
If this job fails, set to the error.
-
-
Constructor Detail
-
UpdateCenterJob
protected UpdateCenterJob(@CheckForNull UpdateSite site)
-
-
Method Detail
-
getApi
public Api getApi()
-
getCorrelationId
public UUID getCorrelationId()
-
setCorrelationId
public void setCorrelationId(UUID correlationId)
-
schedule
@Deprecated public void schedule()
Deprecated.as of 1.326 Usesubmit()instead.
-
getType
@Exported public String getType()
-
submit
public Future<UpdateCenter.UpdateCenterJob> submit()
Schedules this job for an execution- Returns:
Futureto keeps track of the status of the execution.
-
getErrorMessage
@Exported public String getErrorMessage()
-
getError
public Throwable getError()
-
-