Package jetbrains.buildServer.agent.impl
Class CurrentBuildTrackerImpl
- java.lang.Object
-
- jetbrains.buildServer.agent.AgentLifeCycleAdapter
-
- jetbrains.buildServer.agent.impl.CurrentBuildTrackerImpl
-
- All Implemented Interfaces:
EventListener,AgentLifeCycleListener,CurrentBuildHolder,CurrentBuildTracker,CurrentBuildTrackerEx
public class CurrentBuildTrackerImpl extends AgentLifeCycleAdapter implements CurrentBuildTrackerEx, CurrentBuildHolder
Created by IntelliJ IDEA. User: Leonid.Shalupov Date: 24.07.2008 Time: 18:48:26
-
-
Constructor Summary
Constructors Constructor Description CurrentBuildTrackerImpl(EventDispatcher<AgentLifeCycleListener> agentDispatcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildFinished(AgentRunningBuild runningBuild, BuildFinishedStatus buildStatus)Called after the buildFinished event is sent to the server Is called afterAgentLifeCycleListener.beforeBuildFinish(BuildFinishedStatus)New build may be started while processing this eventAgentRunningBuildExgetCurrentBuild()Returns running build or throws an exception if no running buildbooleanisRunningBuild()voidsetCurrentBuild(AgentRunningBuildEx build)-
Methods inherited from class jetbrains.buildServer.agent.AgentLifeCycleAdapter
afterAgentConfigurationLoaded, afterAtrifactsPublished, agentInitialized, agentShutdown, agentStarted, beforeAgentConfigurationLoaded, beforeBuildFinish, beforeBuildFinish, beforeBuildInterrupted, beforeRunnerStart, beforeRunnerStart, buildFinished, buildStarted, checkoutDirectoryRemoved, checkoutModeResolved, dependenciesDownloaded, messageLogged, messageLogged, personalPatchApplied, personalPatchReverted, pluginsLoaded, preparationFinished, runnerFinished, sourcesUpdated
-
-
-
-
Constructor Detail
-
CurrentBuildTrackerImpl
public CurrentBuildTrackerImpl(@NotNull EventDispatcher<AgentLifeCycleListener> agentDispatcher)
-
-
Method Detail
-
getCurrentBuild
@NotNull public AgentRunningBuildEx getCurrentBuild() throws NoRunningBuildException
Description copied from interface:CurrentBuildTrackerReturns running build or throws an exception if no running build- Specified by:
getCurrentBuildin interfaceCurrentBuildTracker- Specified by:
getCurrentBuildin interfaceCurrentBuildTrackerEx- Returns:
- running build
- Throws:
NoRunningBuildException- if there is no running build
-
isRunningBuild
public boolean isRunningBuild()
- Specified by:
isRunningBuildin interfaceCurrentBuildTracker- Returns:
- whether build is running on agent now
-
setCurrentBuild
public void setCurrentBuild(@NotNull AgentRunningBuildEx build)- Specified by:
setCurrentBuildin interfaceCurrentBuildHolder
-
buildFinished
public void buildFinished(@NotNull AgentRunningBuild runningBuild, @NotNull BuildFinishedStatus buildStatus)Description copied from interface:AgentLifeCycleListenerCalled after the buildFinished event is sent to the server Is called afterAgentLifeCycleListener.beforeBuildFinish(BuildFinishedStatus)New build may be started while processing this event- Specified by:
buildFinishedin interfaceAgentLifeCycleListener- Overrides:
buildFinishedin classAgentLifeCycleAdapter- Parameters:
runningBuild- buildbuildStatus- status of the build
-
-