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.installerService
executes. This object will have therow.jelly
which renders the job on UI.
-
-
Field Summary
Fields Modifier and Type Field Description protected Throwable
error
If this job fails, set to the error.int
id
Unique ID that identifies this job.UpdateSite
site
WhichUpdateSite
does this belong to?
-
Constructor Summary
Constructors Modifier Constructor Description protected
UpdateCenterJob(UpdateSite site)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Api
getApi()
UUID
getCorrelationId()
Throwable
getError()
String
getErrorMessage()
String
getType()
void
schedule()
Deprecated.as of 1.326 Usesubmit()
instead.void
setCorrelationId(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
WhichUpdateSite
does 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:
Future
to keeps track of the status of the execution.
-
getErrorMessage
@Exported public String getErrorMessage()
-
getError
public Throwable getError()
-
-