Package org.jenkinsci.plugins.deployment
Class DeploymentTrigger.ListenerImpl
- java.lang.Object
-
- org.jenkinsci.plugins.deployment.DeploymentFacetListener
-
- org.jenkinsci.plugins.deployment.DeploymentTrigger.ListenerImpl
-
- All Implemented Interfaces:
ExtensionPoint
- Enclosing class:
- DeploymentTrigger
@Extension public static class DeploymentTrigger.ListenerImpl extends DeploymentFacetListener
Whenever a new deployment record arrives, check if we need to trigger any jobs.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description ExecutorService
POOL
-
Constructor Summary
Constructors Constructor Description ListenerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onChange(DeploymentFacet facet, HostRecord newRecord)
Called whenDeploymentFacet
gets a newHostRecord
.void
sync()
Waits until all the pending deployment facets are processed.-
Methods inherited from class org.jenkinsci.plugins.deployment.DeploymentFacetListener
all
-
-
-
-
Field Detail
-
POOL
public final ExecutorService POOL
-
-
Method Detail
-
onChange
public void onChange(DeploymentFacet facet, HostRecord newRecord)
Description copied from class:DeploymentFacetListener
Called whenDeploymentFacet
gets a newHostRecord
.- Specified by:
onChange
in classDeploymentFacetListener
-
sync
public void sync() throws InterruptedException
Waits until all the pending deployment facets are processed.- Throws:
InterruptedException
-
-