Class BaseAsyncPolledBuildTrigger
- java.lang.Object
-
- jetbrains.buildServer.buildTriggers.async.BaseAsyncPolledBuildTrigger
-
- All Implemented Interfaces:
AsyncPolledBuildTrigger
public abstract class BaseAsyncPolledBuildTrigger extends java.lang.Object implements AsyncPolledBuildTrigger
Base class for allAsyncPolledBuildTrigger
implementations.- Since:
- 10.0
- Author:
- vbedrosova
- See Also:
AsyncPolledBuildTrigger
-
-
Constructor Summary
Constructors Constructor Description BaseAsyncPolledBuildTrigger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPollInterval(PolledTriggerContext context)
Returns the trigger minimal poll interval (time between invocations) in seconds.void
triggerActivated(PolledTriggerContext context)
Called when the build trigger is added to a build configuration, enabled, or when the build configuration is unpaused.void
triggerDeactivated(PolledTriggerContext context)
Called when the build trigger is removed from a build configuration, disabled, or when the build configuration is paused or deleted.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.buildTriggers.async.AsyncPolledBuildTrigger
getTriggerStateProperties, triggerBuild
-
-
-
-
Method Detail
-
getPollInterval
public int getPollInterval(@NotNull PolledTriggerContext context)
Description copied from interface:AsyncPolledBuildTrigger
Returns the trigger minimal poll interval (time between invocations) in seconds.- Specified by:
getPollInterval
in interfaceAsyncPolledBuildTrigger
- Parameters:
context
- trigger invocation context- Returns:
- poll interval
-
triggerActivated
public void triggerActivated(@NotNull PolledTriggerContext context) throws BuildTriggerException
Description copied from interface:AsyncPolledBuildTrigger
Called when the build trigger is added to a build configuration, enabled, or when the build configuration is unpaused.- Specified by:
triggerActivated
in interfaceAsyncPolledBuildTrigger
- Parameters:
context
- current trigger context- Throws:
BuildTriggerException
-
triggerDeactivated
public void triggerDeactivated(@NotNull PolledTriggerContext context) throws BuildTriggerException
Description copied from interface:AsyncPolledBuildTrigger
Called when the build trigger is removed from a build configuration, disabled, or when the build configuration is paused or deleted.- Specified by:
triggerDeactivated
in interfaceAsyncPolledBuildTrigger
- Parameters:
context
- current context- Throws:
BuildTriggerException
-
-