Class LiveGraphPopulator
java.lang.Object
io.jenkins.plugins.pipelinegraphview.livestate.LiveGraphPopulator
- All Implemented Interfaces:
ExtensionPoint,org.jenkinsci.plugins.workflow.flow.GraphListener,org.jenkinsci.plugins.workflow.flow.GraphListener.Synchronous
@Extension
public class LiveGraphPopulator
extends Object
implements org.jenkinsci.plugins.workflow.flow.GraphListener.Synchronous
Extension that captures every new
FlowNode across every running execution and
feeds it to the corresponding LiveGraphState.
We use GraphListener.Synchronous because callers expect that once a node is a
head, the next API read reflects it — async delivery would create a lag window where the
snapshot is behind the execution. The listener therefore does the minimum under the
monitor and never scans: any catch-up belongs in LiveGraphLifecycle, on a Jenkins
event thread.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface org.jenkinsci.plugins.workflow.flow.GraphListener
org.jenkinsci.plugins.workflow.flow.GraphListener.Synchronous -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonNewHead(org.jenkinsci.plugins.workflow.graph.FlowNode node)
-
Constructor Details
-
LiveGraphPopulator
public LiveGraphPopulator()
-
-
Method Details
-
onNewHead
public void onNewHead(org.jenkinsci.plugins.workflow.graph.FlowNode node) - Specified by:
onNewHeadin interfaceorg.jenkinsci.plugins.workflow.flow.GraphListener
-