hudson.model
Class UpdateCenter.UpdateCenterJob

java.lang.Object
  extended by hudson.model.UpdateCenter.UpdateCenterJob
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
UpdateCenter.ConnectionCheckJob, UpdateCenter.DownloadJob, UpdateCenter.RestartJenkinsJob
Enclosing class:
UpdateCenter

@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 Summary
protected  Throwable error
          If this job fails, set to the error.
 int id
          Unique ID that identifies this job.
 UpdateSite site
          Which UpdateSite does this belong to?
 
Constructor Summary
protected UpdateCenter.UpdateCenterJob(UpdateSite site)
           
 
Method Summary
 Api getApi()
           
 Throwable getError()
           
 String getErrorMessage()
           
 String getType()
           
 void schedule()
          Deprecated. as of 1.326 Use submit() instead.
 Future<UpdateCenter.UpdateCenterJob> submit()
          Schedules this job for an execution
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Field Detail

id

@Exported
public final int id
Unique ID that identifies this job.

See Also:
UpdateCenter.getJob(int)

site

public final UpdateSite site
Which UpdateSite does this belong to?


error

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

Constructor Detail

UpdateCenter.UpdateCenterJob

protected UpdateCenter.UpdateCenterJob(UpdateSite site)
Method Detail

getApi

public Api getApi()

schedule

public void schedule()
Deprecated. as of 1.326 Use submit() 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()


Copyright © 2004-2013. All Rights Reserved.