java.lang.Object
com.pervasive.datarush.graphs.LogicalStatistic
- All Implemented Interfaces:
Serializable,Comparable<LogicalStatistic>
public final class LogicalStatistic
extends Object
implements Serializable, Comparable<LogicalStatistic>
Statistic associated with a
LogicalPort or
a LogicalOperator. Statistics are
keyed by the following items:
definition, wheredefinitionprovides the definition of the statisticpath, wherepathprovides the path of the port or operatornodeID, wherenodeIDprovides the host and thread offset within the host.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder for statistics. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(LogicalStatistic other) Returns the definition associated with this statistic.Returns a snapshot view of these statistics with all statistics appropriate for a graph that is in a terminated state.nodeID()Returns the node described by this statistics object.Returns the original node described by this statistics object.path()Returns the full path of the port or operator described by this statistics object.snapshot()Returns a snapshot view of these statistics.Returns the pair ofdefinition()andsupplier().supplier()Returns the supplier associated with this statistic.toString()
-
Method Details
-
path
Returns the full path of the port or operator described by this statistics object.- Returns:
- the full path
-
nodeID
Returns the node described by this statistics object.- Returns:
- the node
-
originalNodeID
Returns the original node described by this statistics object. This will normally be the same asnodeID(). In the event of a failure, this represents the node that failed, where this unit of work was originally scheduled.- Returns:
- the original node ID
-
snapshot
Returns a snapshot view of these statistics. A snapshot view is guaranteed not to change as the graph executes.- Returns:
- a snapshot view of these statistics
-
finalSnapshot
Returns a snapshot view of these statistics with all statistics appropriate for a graph that is in a terminated state.- Returns:
- a snapshot view of these statistics
-
statistic
Returns the pair ofdefinition()andsupplier().- Returns:
- the definition and supplier pair;
-
definition
Returns the definition associated with this statistic. Determines metadata for this statistic including display name and how the statistic is to be aggregated across partitions.- Returns:
- the definition.
-
supplier
Returns the supplier associated with this statistic. This controls the instrumentation for this statistic if this statistic is live. Otherwise, if this statistic is a snapshot, the supplier is an immutable value holder.- Returns:
- the supplier for this statistic
-
compareTo
- Specified by:
compareToin interfaceComparable<LogicalStatistic>
-
toString
-