Class MemoryFlowChunk
java.lang.Object
org.jenkinsci.plugins.workflow.graphanalysis.MemoryFlowChunk
- All Implemented Interfaces:
FlowChunk
,FlowChunkWithContext
- Direct Known Subclasses:
ParallelMemoryFlowChunk
FlowChunk that holds direct references to the
FlowNode
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
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMemoryFlowChunk
(FlowNode before, FlowNode firstNode, FlowNode lastNode, FlowNode nodeAfter) -
Method Summary
Modifier and TypeMethodDescriptionReturn the node after this chunk, or null if it is the endReturn the node before this chunk, or null if it is the beginninglong
void
setFirstNode
(FlowNode firstNode) void
setLastNode
(FlowNode lastNode) void
setNodeAfter
(FlowNode nodeAfter) void
setNodeBefore
(FlowNode nodeBefore) void
setPauseTimeMillis
(long pauseTimeMillis)
-
Field Details
-
firstNode
-
lastNode
-
nodeBefore
-
nodeAfter
-
-
Constructor Details
-
MemoryFlowChunk
-
MemoryFlowChunk
public MemoryFlowChunk()
-
-
Method Details
-
getFirstNode
- Specified by:
getFirstNode
in interfaceFlowChunk
-
setFirstNode
-
getLastNode
- Specified by:
getLastNode
in interfaceFlowChunk
-
setLastNode
-
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
-
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
-
getPauseTimeMillis
public long getPauseTimeMillis() -
setPauseTimeMillis
public void setPauseTimeMillis(long pauseTimeMillis)
-