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.

  • Constructor Details

    • LiveGraphPopulator

      public LiveGraphPopulator()
  • Method Details

    • onNewHead

      public void onNewHead(org.jenkinsci.plugins.workflow.graph.FlowNode node)
      Specified by:
      onNewHead in interface org.jenkinsci.plugins.workflow.flow.GraphListener