|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.maven.MavenBuildProxy.Filter<CORE>
public abstract static class MavenBuildProxy.Filter<CORE extends MavenBuildProxy>
Filter for MavenBuildProxy.
Meant to be useful as the base class for other filters.
| Nested Class Summary | |
|---|---|
protected static class |
MavenBuildProxy.Filter.AsyncInvoker
Callable for invoking MavenBuildProxy.BuildCallable asynchronously. |
| Nested classes/interfaces inherited from interface hudson.maven.MavenBuildProxy |
|---|
MavenBuildProxy.BuildCallable<V,T extends Throwable>, MavenBuildProxy.Filter<CORE extends MavenBuildProxy> |
| Field Summary | |
|---|---|
protected CORE |
core
|
| Constructor Summary | |
|---|---|
protected |
MavenBuildProxy.Filter(CORE core)
|
| Method Summary | ||
|---|---|---|
|
execute(MavenBuildProxy.BuildCallable<V,T> program)
Executes the given MavenBuildProxy.BuildCallable on the master, where one
has access to MavenBuild and all the other Hudson objects. |
|
void |
executeAsync(MavenBuildProxy.BuildCallable<?,?> program)
Executes the given MavenBuildProxy.BuildCallable asynchronously on the master. |
|
FilePath |
getArtifactsDir()
|
|
MavenBuildInformation |
getMavenBuildInformation()
|
|
long |
getMilliSecsSinceBuildStart()
# of milliseconds elapsed since MavenBuildProxy.getTimestamp(). |
|
FilePath |
getModuleSetRootDir()
Root directory of the owner MavenModuleSet |
|
FilePath |
getProjectRootDir()
Root directory of the parent of this build. |
|
FilePath |
getRootDir()
Root directory of the build. |
|
Calendar |
getTimestamp()
|
|
boolean |
isArchivingDisabled()
If true, artifacts will not actually be archived to master. |
|
void |
registerAsAggregatedProjectAction(MavenReporter reporter)
Nominates that the reporter will contribute a project action for this build by using MavenReporter.getAggregatedProjectAction(MavenModuleSet). |
|
void |
registerAsProjectAction(MavenProjectActionBuilder builder)
Nominates that the reporter will contribute a project action for this build by using MavenReporter.getProjectActions(MavenModule). |
|
void |
registerAsProjectAction(MavenReporter reporter)
Nominates that the reporter will contribute a project action for this build by using MavenReporter.getProjectActions(MavenModule). |
|
void |
setExecutedMojos(List<ExecutedMojo> executedMojos)
Called at the end of the build to record what mojos are executed. |
|
void |
setResult(Result result)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final CORE extends MavenBuildProxy core
| Constructor Detail |
|---|
protected MavenBuildProxy.Filter(CORE core)
| Method Detail |
|---|
public <V,T extends Throwable> V execute(MavenBuildProxy.BuildCallable<V,T> program)
throws T extends Throwable,
IOException,
InterruptedException
MavenBuildProxyMavenBuildProxy.BuildCallable on the master, where one
has access to MavenBuild and all the other Hudson objects.
The parameter, return value, and exception are all transfered by using Java serialization.
execute in interface MavenBuildProxyMavenBuildProxy.BuildCallable returned.
T - if MavenBuildProxy.BuildCallable throws this exception.
IOException - if the remoting failed.
InterruptedException - if the remote execution is aborted.
T extends ThrowableMavenBuildProxy.executeAsync(BuildCallable)
public void executeAsync(MavenBuildProxy.BuildCallable<?,?> program)
throws IOException
MavenBuildProxyMavenBuildProxy.BuildCallable asynchronously on the master.
This method works like MavenBuildProxy.execute(BuildCallable) except that
the method returns immediately and doesn't wait for the completion of the program.
The completions of asynchronous executions are accounted for before the build completes. If they throw exceptions, they'll be reported and the build will be marked as a failure.
executeAsync in interface MavenBuildProxyIOExceptionpublic FilePath getRootDir()
MavenBuildProxy
getRootDir in interface MavenBuildProxyRun.getRootDir()public FilePath getProjectRootDir()
MavenBuildProxy
getProjectRootDir in interface MavenBuildProxypublic FilePath getModuleSetRootDir()
MavenBuildProxyMavenModuleSet
getModuleSetRootDir in interface MavenBuildProxypublic FilePath getArtifactsDir()
getArtifactsDir in interface MavenBuildProxyRun.getArtifactsDir()public void setResult(Result result)
setResult in interface MavenBuildProxyRun.setResult(Result)public Calendar getTimestamp()
getTimestamp in interface MavenBuildProxyRun.getTimestamp()public long getMilliSecsSinceBuildStart()
MavenBuildProxyMavenBuildProxy.getTimestamp().
Where the clock skew is involved between the master and the Maven JVM, comparing
current time on Maven JVM with MavenBuildProxy.getTimestamp() could be problematic,
but this value is more robust.
getMilliSecsSinceBuildStart in interface MavenBuildProxypublic boolean isArchivingDisabled()
MavenBuildProxyMavenModuleSet.isArchivingDisabled().
isArchivingDisabled in interface MavenBuildProxypublic void registerAsProjectAction(MavenReporter reporter)
MavenBuildProxyMavenReporter.getProjectActions(MavenModule).
The specified MavenReporter object will be transfered to the master
and will become a persisted part of the MavenBuild.
registerAsProjectAction in interface MavenBuildProxypublic void registerAsProjectAction(MavenProjectActionBuilder builder)
MavenBuildProxyMavenReporter.getProjectActions(MavenModule).
The specified MavenReporter object will be transferred to the master
and will become a persisted part of the MavenBuild.
registerAsProjectAction in interface MavenBuildProxypublic void registerAsAggregatedProjectAction(MavenReporter reporter)
MavenBuildProxyMavenReporter.getAggregatedProjectAction(MavenModuleSet).
The specified MavenReporter object will be transfered to the master
and will become a persisted part of the MavenModuleSetBuild.
registerAsAggregatedProjectAction in interface MavenBuildProxypublic void setExecutedMojos(List<ExecutedMojo> executedMojos)
MavenBuildProxy
setExecutedMojos in interface MavenBuildProxypublic MavenBuildInformation getMavenBuildInformation()
getMavenBuildInformation in interface MavenBuildProxy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||