Constructor
Constructs a CollapseSequentialNodeTransformation that will collapse all
local consecutive events that have no remote dependencies, subject to the
threshold parameter.
Parameters:
Name |
Type |
Description |
threshold |
Number
|
Nodes are collapsed if the number of nodes in the
group is greater than or equal to the threshold. The threshold
must be greater than or equal to 2. |
- Source:
Extends
Methods
(static) isCollapseable(node, threshold) → {Boolean}
Determines if the provided node can be collapsed based on the given threshold
Parameters:
- Source:
Returns:
true if the node can be collapsed
-
Type
-
Boolean
addExemption(node)
Adds an exemption. An exemption is a LogEvent whose Node will never be
collapsed.
Note that addExemption and removeExemption are not inverses of each other.
addExemption affects only the LogEvents of the given node, while
removeExemption affects the LogEvents of the given node and all nodes in its
group.
Parameters:
Name |
Type |
Description |
node |
ModelNode
|
The node whose LogEvents will be added as exemptions |
- Source:
getThreshold() → {Number}
Gets the threshold. Nodes are collapsed if the number of nodes in the group
is greater than or equal to the threshold. The threshold must be greater than
or equal to 2.
- Source:
Returns:
The threshold
-
Type
-
Number
isExempt(node) → {Boolean}
Determines if any of the LogEvents contained inside the given node is an
exemption
Parameters:
Name |
Type |
Description |
node |
ModelNode
|
The node to check |
- Source:
Returns:
True if one of the LogEvents is an exemption
-
Type
-
Boolean
removeExemption(node)
Removes an exemption. An exemption is a LogEvent whose Node will never be
collapsed
Note that addExemption and removeExemption are not inverses of each other.
addExemption affects only the LogEvents of the given node, while
removeExemption affects the LogEvents of the given node and all nodes in its
group.
Parameters:
Name |
Type |
Description |
node |
ModelNode
|
The LogEvents of this node and the LogEvents of every
node in its group will be removed as exemptions |
- Source:
setThreshold(threshold)
Sets the threshold. Nodes are collapsed if the number of nodes in the group
is greater than or equal to the threshold. The threshold is always greater
than or equal to 2.
Parameters:
Name |
Type |
Description |
threshold |
Number
|
The new threshold |
- Source:
toggleExemption(node)
Toggles an exemption.
Parameters:
Name |
Type |
Description |
node |
ModelNode
|
The node to toggle. |
- Source:
- Overrides:
- Source: