|
|||||||||
| 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. |
java.lang.String |
taskName
Pointer that connects us back to BatchTask |
java.util.Calendar |
timestamp
|
| Constructor Summary | |
|---|---|
protected |
BatchRun(java.util.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. |
java.lang.String |
getBuildNumber()
|
java.lang.String |
getBuildStatusUrl()
|
java.lang.String |
getDisplayName()
|
long |
getDuration()
Gets the millisecond it took to build. |
java.lang.String |
getDurationString()
Gets the string that says how long the build took to run. |
hudson.model.BallColor |
getIconColor()
Gets the icon color for display. |
java.io.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. |
java.lang.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()
|
java.lang.String |
getSearchUrl()
|
java.lang.String |
getTimestampString()
Gets the string that says how long since this run has started. |
java.lang.String |
getUrl()
Gets the URL (under the context root) that points to this record. |
boolean |
isRunning()
Is this task still running? |
void |
run()
|
java.lang.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 java.util.Calendar timestamp
protected transient BatchRunAction parent
public final int id
BatchRunAction.
public final java.lang.String taskName
BatchTask
getParent()protected long duration
| Constructor Detail |
|---|
protected BatchRun(java.util.Calendar timestamp,
BatchRunAction parent,
int id,
BatchTask task)
| Method Detail |
|---|
public hudson.model.Result getResult()
public boolean isRunning()
public java.lang.String getTimestampString()
public java.io.File getLogFile()
public BatchTask getParent()
getParent in interface hudson.model.Queue.Executablepublic BatchRunAction getOwner()
public hudson.model.BallColor getIconColor()
public java.lang.String getBuildStatusUrl()
public BatchRun getPrevious()
public BatchRun getNext()
public java.lang.String getUrl()
public java.lang.String getSearchUrl()
getSearchUrl in interface hudson.search.SearchItempublic java.lang.String getDisplayName()
getDisplayName in interface hudson.model.ModelObjectpublic java.lang.String getNumber()
public java.lang.String getBuildNumber()
public java.lang.String getDurationString()
@Exported public long getDuration()
public void run()
run in interface hudson.model.Queue.Executablerun in interface java.lang.Runnable
public void doProgressiveLog(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in interface hudson.model.Queue.ExecutabletoString in class java.lang.Objectpublic int compareTo(BatchRun that)
compareTo in interface java.lang.Comparable<BatchRun>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||