Class MemoryFlowChunk
- java.lang.Object
-
- org.jenkinsci.plugins.workflow.graphanalysis.MemoryFlowChunk
-
- All Implemented Interfaces:
FlowChunk
,FlowChunkWithContext
- Direct Known Subclasses:
ParallelMemoryFlowChunk
public class MemoryFlowChunk extends Object implements FlowChunkWithContext
FlowChunk that holds direct references to theFlowNode
instances and context info This makes it easy to use in analysis and visualizations, but inappropriate to retain in caches, etc- Author:
- Sam Van Oort
-
-
Constructor Summary
Constructors Constructor Description MemoryFlowChunk()
MemoryFlowChunk(FlowNode before, FlowNode firstNode, FlowNode lastNode, FlowNode nodeAfter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlowNode
getFirstNode()
FlowNode
getLastNode()
FlowNode
getNodeAfter()
Return the node after this chunk, or null if it is the endFlowNode
getNodeBefore()
Return the node before this chunk, or null if it is the beginninglong
getPauseTimeMillis()
void
setFirstNode(FlowNode firstNode)
void
setLastNode(FlowNode lastNode)
void
setNodeAfter(FlowNode nodeAfter)
void
setNodeBefore(FlowNode nodeBefore)
void
setPauseTimeMillis(long pauseTimeMillis)
-
-
-
Method Detail
-
getFirstNode
@NonNull public FlowNode getFirstNode()
- Specified by:
getFirstNode
in interfaceFlowChunk
-
setFirstNode
public void setFirstNode(FlowNode firstNode)
-
getLastNode
@NonNull public FlowNode getLastNode()
- Specified by:
getLastNode
in interfaceFlowChunk
-
setLastNode
public void setLastNode(FlowNode lastNode)
-
getNodeBefore
public FlowNode getNodeBefore()
Description copied from interface:FlowChunkWithContext
Return the node before this chunk, or null if it is the beginning- Specified by:
getNodeBefore
in interfaceFlowChunkWithContext
-
setNodeBefore
public void setNodeBefore(FlowNode nodeBefore)
-
getNodeAfter
public FlowNode getNodeAfter()
Description copied from interface:FlowChunkWithContext
Return the node after this chunk, or null if it is the end- Specified by:
getNodeAfter
in interfaceFlowChunkWithContext
-
setNodeAfter
public void setNodeAfter(FlowNode nodeAfter)
-
getPauseTimeMillis
public long getPauseTimeMillis()
-
setPauseTimeMillis
public void setPauseTimeMillis(long pauseTimeMillis)
-
-