Class BaseAsyncPolledBuildTrigger
- java.lang.Object
-
- jetbrains.buildServer.buildTriggers.async.BaseAsyncPolledBuildTrigger
-
- All Implemented Interfaces:
AsyncPolledBuildTrigger
public abstract class BaseAsyncPolledBuildTrigger extends Object implements AsyncPolledBuildTrigger
Base class for allAsyncPolledBuildTriggerimplementations.- 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 intgetPollInterval(PolledTriggerContext context)Returns the trigger minimal poll interval (time between invocations) in seconds.voidtriggerActivated(PolledTriggerContext context)Called when the build trigger is added to a build configuration, enabled, or when the build configuration is unpaused.voidtriggerDeactivated(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:AsyncPolledBuildTriggerReturns the trigger minimal poll interval (time between invocations) in seconds.- Specified by:
getPollIntervalin interfaceAsyncPolledBuildTrigger- Parameters:
context- trigger invocation context- Returns:
- poll interval
-
triggerActivated
public void triggerActivated(@NotNull PolledTriggerContext context) throws BuildTriggerExceptionDescription copied from interface:AsyncPolledBuildTriggerCalled when the build trigger is added to a build configuration, enabled, or when the build configuration is unpaused.- Specified by:
triggerActivatedin interfaceAsyncPolledBuildTrigger- Parameters:
context- current trigger context- Throws:
BuildTriggerException
-
triggerDeactivated
public void triggerDeactivated(@NotNull PolledTriggerContext context) throws BuildTriggerExceptionDescription copied from interface:AsyncPolledBuildTriggerCalled when the build trigger is removed from a build configuration, disabled, or when the build configuration is paused or deleted.- Specified by:
triggerDeactivatedin interfaceAsyncPolledBuildTrigger- Parameters:
context- current context- Throws:
BuildTriggerException
-
-