Package jetbrains.buildServer.agent.impl
Interface StoppableBuildState
-
- All Known Subinterfaces:
BuildRunAgentState
- All Known Implementing Classes:
BuildRunAgentStateImpl
public interface StoppableBuildState
- Since:
- 6.5
- Author:
- Eugene Petrenko (eugene.petrenko@jetbrains.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getInterruptCallsCount()
BuildInterruptReason
getInterruptReason()
boolean
isInterruptForced()
void
stopBuild(BuildInterruptReason reason)
-
-
-
Method Detail
-
getInterruptReason
@Nullable BuildInterruptReason getInterruptReason()
- Returns:
- returns build interrupt reason
- Since:
- 6.5
-
stopBuild
void stopBuild(@NotNull BuildInterruptReason reason)
- Parameters:
reason
- reason of stopping build- Since:
- 6.5
-
getInterruptCallsCount
int getInterruptCallsCount()
- Returns:
- number of interrupt commands that were delivered to the build
- Since:
- 7.1
-
isInterruptForced
boolean isInterruptForced()
- Returns:
- true if interrupt is forced, i.e. getInterruptCallsCount >= FORCE_STOP_COUNT(=2)
- Since:
- 8.0
-
-