|
||||||||||
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
MavenBuildProxy
MavenBuildProxy.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 MavenBuildProxy
MavenBuildProxy.BuildCallable
returned.
T
- if MavenBuildProxy.BuildCallable
throws this exception.
IOException
- if the remoting failed.
InterruptedException
- if the remote execution is aborted.
T extends Throwable
MavenBuildProxy.executeAsync(BuildCallable)
public void executeAsync(MavenBuildProxy.BuildCallable<?,?> program) throws IOException
MavenBuildProxy
MavenBuildProxy.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 MavenBuildProxy
IOException
public FilePath getRootDir()
MavenBuildProxy
getRootDir
in interface MavenBuildProxy
Run.getRootDir()
public FilePath getProjectRootDir()
MavenBuildProxy
getProjectRootDir
in interface MavenBuildProxy
public FilePath getModuleSetRootDir()
MavenBuildProxy
MavenModuleSet
getModuleSetRootDir
in interface MavenBuildProxy
public FilePath getArtifactsDir()
getArtifactsDir
in interface MavenBuildProxy
Run.getArtifactsDir()
public void setResult(Result result)
setResult
in interface MavenBuildProxy
Run.setResult(Result)
public Calendar getTimestamp()
getTimestamp
in interface MavenBuildProxy
Run.getTimestamp()
public long getMilliSecsSinceBuildStart()
MavenBuildProxy
MavenBuildProxy.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 MavenBuildProxy
public boolean isArchivingDisabled()
MavenBuildProxy
MavenModuleSet.isArchivingDisabled()
.
isArchivingDisabled
in interface MavenBuildProxy
public void registerAsProjectAction(MavenReporter reporter)
MavenBuildProxy
MavenReporter.getProjectActions(MavenModule)
.
The specified MavenReporter
object will be transfered to the master
and will become a persisted part of the MavenBuild
.
registerAsProjectAction
in interface MavenBuildProxy
public void registerAsProjectAction(MavenProjectActionBuilder builder)
MavenBuildProxy
MavenReporter.getProjectActions(MavenModule)
.
The specified MavenReporter
object will be transferred to the master
and will become a persisted part of the MavenBuild
.
registerAsProjectAction
in interface MavenBuildProxy
public void registerAsAggregatedProjectAction(MavenReporter reporter)
MavenBuildProxy
MavenReporter.getAggregatedProjectAction(MavenModuleSet)
.
The specified MavenReporter
object will be transfered to the master
and will become a persisted part of the MavenModuleSetBuild
.
registerAsAggregatedProjectAction
in interface MavenBuildProxy
public void setExecutedMojos(List<ExecutedMojo> executedMojos)
MavenBuildProxy
setExecutedMojos
in interface MavenBuildProxy
public MavenBuildInformation getMavenBuildInformation()
getMavenBuildInformation
in interface MavenBuildProxy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |