Class IvyBuildProxy.Filter<CORE extends IvyBuildProxy>
- All Implemented Interfaces:
IvyBuildProxy,Serializable
- Direct Known Subclasses:
IvyBuildProxy2.Filter
- Enclosing interface:
IvyBuildProxy
IvyBuildProxy.
Meant to be useful as the base class for other filters.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final classCallablefor invokingIvyBuildProxy.BuildCallableasynchronously.Nested classes/interfaces inherited from interface hudson.ivy.IvyBuildProxy
IvyBuildProxy.BuildCallable<V,T extends Throwable>, IvyBuildProxy.Filter<CORE extends IvyBuildProxy> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<V,T extends Throwable>
Vexecute(IvyBuildProxy.BuildCallable<V, T> program) Executes the givenIvyBuildProxy.BuildCallableon the master, where one has access toIvyBuildand all the other Jenkins objects.voidexecuteAsync(IvyBuildProxy.BuildCallable<?, ?> program) Executes the givenIvyBuildProxy.BuildCallableasynchronously on the master.long# of milliseconds elapsed sinceIvyBuildProxy.getTimestamp().Root directory of the ownerIvyModuleSetRoot directory of the parent of this build.Root directory of the build.booleanIf true, artifacts will not actually be archived to master.voidregisterAsAggregatedProjectAction(IvyReporter reporter) Nominates that the reporter will contribute a project action for this build by usingIvyReporter.getAggregatedProjectAction(IvyModuleSet).voidregisterAsProjectAction(IvyReporter reporter) Nominates that the reporter will contribute a project action for this build by usingIvyReporter.getProjectAction(IvyModule).void
-
Field Details
-
core
-
-
Constructor Details
-
Filter
-
-
Method Details
-
execute
public <V,T extends Throwable> V execute(IvyBuildProxy.BuildCallable<V, T> program) throws T, IOException, InterruptedExceptionDescription copied from interface:IvyBuildProxyExecutes the givenIvyBuildProxy.BuildCallableon the master, where one has access toIvyBuildand all the other Jenkins objects.The parameter, return value, and exception are all transferred by using Java serialization.
- Specified by:
executein interfaceIvyBuildProxy- Returns:
- the value that
IvyBuildProxy.BuildCallablereturned. - Throws:
T- ifIvyBuildProxy.BuildCallablethrows this exception.IOException- if the remoting failed.InterruptedException- if the remote execution is aborted.- See Also:
-
executeAsync
Description copied from interface:IvyBuildProxyExecutes the givenIvyBuildProxy.BuildCallableasynchronously on the master.This method works like
IvyBuildProxy.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.
- Specified by:
executeAsyncin interfaceIvyBuildProxy- Throws:
IOException
-
getRootDir
Description copied from interface:IvyBuildProxyRoot directory of the build.- Specified by:
getRootDirin interfaceIvyBuildProxy- See Also:
-
getProjectRootDir
Description copied from interface:IvyBuildProxyRoot directory of the parent of this build.- Specified by:
getProjectRootDirin interfaceIvyBuildProxy
-
getModuleSetRootDir
Description copied from interface:IvyBuildProxyRoot directory of the ownerIvyModuleSet- Specified by:
getModuleSetRootDirin interfaceIvyBuildProxy
-
getArtifactsDir
- Specified by:
getArtifactsDirin interfaceIvyBuildProxy- See Also:
-
setResult
- Specified by:
setResultin interfaceIvyBuildProxy- See Also:
-
getTimestamp
- Specified by:
getTimestampin interfaceIvyBuildProxy- See Also:
-
getMilliSecsSinceBuildStart
public long getMilliSecsSinceBuildStart()Description copied from interface:IvyBuildProxy# of milliseconds elapsed sinceIvyBuildProxy.getTimestamp().Where the clock skew is involved between the master and the Ivy JVM, comparing current time on Ivy JVM with
IvyBuildProxy.getTimestamp()could be problematic, but this value is more robust.- Specified by:
getMilliSecsSinceBuildStartin interfaceIvyBuildProxy
-
isArchivingDisabled
public boolean isArchivingDisabled()Description copied from interface:IvyBuildProxyIf true, artifacts will not actually be archived to master. CallsIvyModuleSet.isArchivingDisabled().- Specified by:
isArchivingDisabledin interfaceIvyBuildProxy
-
registerAsProjectAction
Description copied from interface:IvyBuildProxyNominates that the reporter will contribute a project action for this build by usingIvyReporter.getProjectAction(IvyModule).The specified
IvyReporterobject will be transferred to the master and will become a persisted part of theIvyBuild.- Specified by:
registerAsProjectActionin interfaceIvyBuildProxy
-
registerAsAggregatedProjectAction
Description copied from interface:IvyBuildProxyNominates that the reporter will contribute a project action for this build by usingIvyReporter.getAggregatedProjectAction(IvyModuleSet).The specified
IvyReporterobject will be transferred to the master and will become a persisted part of theIvyModuleSetBuild.- Specified by:
registerAsAggregatedProjectActionin interfaceIvyBuildProxy
-