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 void
buildFinished(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 eventAgentRunningBuildEx
getCurrentBuild()
Returns running build or throws an exception if no running buildboolean
isRunningBuild()
void
setCurrentBuild(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:CurrentBuildTracker
Returns running build or throws an exception if no running build- Specified by:
getCurrentBuild
in interfaceCurrentBuildTracker
- Specified by:
getCurrentBuild
in interfaceCurrentBuildTrackerEx
- Returns:
- running build
- Throws:
NoRunningBuildException
- if there is no running build
-
isRunningBuild
public boolean isRunningBuild()
- Specified by:
isRunningBuild
in interfaceCurrentBuildTracker
- Returns:
- whether build is running on agent now
-
setCurrentBuild
public void setCurrentBuild(@NotNull AgentRunningBuildEx build)
- Specified by:
setCurrentBuild
in interfaceCurrentBuildHolder
-
buildFinished
public void buildFinished(@NotNull AgentRunningBuild runningBuild, @NotNull BuildFinishedStatus buildStatus)
Description copied from interface:AgentLifeCycleListener
Called 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:
buildFinished
in interfaceAgentLifeCycleListener
- Overrides:
buildFinished
in classAgentLifeCycleAdapter
- Parameters:
runningBuild
- buildbuildStatus
- status of the build
-
-