|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthudson.model.AbstractModelObject
hudson.model.Actionable
hudson.plugins.batch_task.BatchRun
public final class BatchRun
Record of BatchTask execution.
| Field Summary | |
|---|---|
protected long |
duration
Number of milli-seconds it took to run this build. |
int |
id
Unique number that identifie this record among BatchRunAction. |
protected BatchRunAction |
parent
|
protected hudson.model.Result |
result
Build result. |
String |
taskName
Pointer that connects us back to BatchTask |
Calendar |
timestamp
|
| Constructor Summary | |
|---|---|
protected |
BatchRun(Calendar timestamp,
BatchRunAction parent,
int id,
BatchTask task)
|
| Method Summary | |
|---|---|
int |
compareTo(BatchRun that)
Newer records should appear before older records. |
void |
doProgressiveLog(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Handles incremental log output. |
String |
getBuildNumber()
|
String |
getBuildStatusUrl()
|
String |
getDisplayName()
|
long |
getDuration()
Gets the millisecond it took to build. |
String |
getDurationString()
Gets the string that says how long the build took to run. |
long |
getEstimatedDuration()
|
hudson.model.BallColor |
getIconColor()
Gets the icon color for display. |
File |
getLogFile()
Gets the log file that stores the execution result. |
BatchRun |
getNext()
Obtains the next execution record, or null if no such record is available. |
String |
getNumber()
|
BatchRunAction |
getOwner()
|
BatchTask |
getParent()
|
BatchRun |
getPrevious()
Obtains the previous execution record, or null if no such record is available. |
hudson.model.Result |
getResult()
|
String |
getSearchUrl()
|
String |
getTimestampString()
Gets the string that says how long since this run has started. |
String |
getUrl()
Gets the URL (under the context root) that points to this record. |
boolean |
isRunning()
Is this task still running? |
void |
run()
|
String |
toString()
|
| Methods inherited from class hudson.model.Actionable |
|---|
addAction, getAction, getAction, getActions, getActions, getDynamic |
| Methods inherited from class hudson.model.AbstractModelObject |
|---|
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected hudson.model.Result result
public final Calendar timestamp
protected transient BatchRunAction parent
public final int id
BatchRunAction.
public final String taskName
BatchTask
getParent()protected long duration
| Constructor Detail |
|---|
protected BatchRun(Calendar timestamp,
BatchRunAction parent,
int id,
BatchTask task)
| Method Detail |
|---|
public hudson.model.Result getResult()
public boolean isRunning()
public String getTimestampString()
public File getLogFile()
public BatchTask getParent()
getParent in interface hudson.model.Queue.Executablepublic BatchRunAction getOwner()
public hudson.model.BallColor getIconColor()
public String getBuildStatusUrl()
public BatchRun getPrevious()
public BatchRun getNext()
public String getUrl()
public String getSearchUrl()
getSearchUrl in interface hudson.search.SearchItempublic String getDisplayName()
getDisplayName in interface hudson.model.ModelObjectpublic String getNumber()
public String getBuildNumber()
public String getDurationString()
@Exported public long getDuration()
public void run()
run in interface hudson.model.Queue.Executablerun in interface Runnable
public void doProgressiveLog(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
IOExceptionpublic String toString()
toString in interface hudson.model.Queue.ExecutabletoString in class Objectpublic int compareTo(BatchRun that)
compareTo in interface Comparable<BatchRun>public long getEstimatedDuration()
getEstimatedDuration in interface hudson.model.Queue.Executable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||