Class Node
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.stacktrace.tree.Node
-
public final class Node extends Object
A node in the graph of aggregated stack traces.
-
-
Constructor Summary
Constructors Constructor Description Node(Node parent, AggregatableFrame frame)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
List<Node>
getChildren()
double
getCumulativeWeight()
AggregatableFrame
getFrame()
Integer
getNodeId()
Node
getParent()
double
getWeight()
int
hashCode()
boolean
isLeaf()
boolean
isRoot()
static Node
newRootNode(AggregatableFrame rootFrame)
String
toString()
-
-
-
Constructor Detail
-
Node
public Node(Node parent, AggregatableFrame frame)
-
-
Method Detail
-
newRootNode
public static Node newRootNode(AggregatableFrame rootFrame)
-
getNodeId
public Integer getNodeId()
- Returns:
- the unique identifier associated with this node.
-
getWeight
public double getWeight()
- Returns:
- the weight of this node.
-
getCumulativeWeight
public double getCumulativeWeight()
- Returns:
- the cumulative weight of this node.
-
getFrame
public AggregatableFrame getFrame()
- Returns:
- the frame corresponding to this node.
-
getChildren
public List<Node> getChildren()
- Returns:
- the list of child nodes, in order of appearance.
-
getParent
public Node getParent()
- Returns:
- the parent node or null when root.
-
isRoot
public boolean isRoot()
-
isLeaf
public boolean isLeaf()
-
-