public abstract class PeriodicReporter extends java.lang.Object implements Reporter
Modifier | Constructor and Description |
---|---|
protected |
PeriodicReporter(int nodeLogInterval,
int propertyLogInterval) |
Modifier and Type | Method and Description |
---|---|
void |
reportNode(@NotNull ReportingNodeState nodeState)
Callback reporting that the given
nodeState was accessed. |
protected abstract void |
reportPeriodicNode(long count,
@NotNull ReportingNodeState nodeState)
Callback called every nth time a node is accessed.
|
protected abstract void |
reportPeriodicProperty(long count,
@NotNull ReportingNodeState parent,
@NotNull java.lang.String propertyName)
Callback called every nth time a property is accessed.
|
void |
reportProperty(@NotNull ReportingNodeState parent,
@NotNull java.lang.String propertyName)
Callback reporting that the property named
propertyName
was accessed on the parent node. |
protected void |
reset()
Reset the node and property counts to 0.
|
protected boolean |
skipNodeState(@NotNull ReportingNodeState nodeState) |
protected PeriodicReporter(int nodeLogInterval, int propertyLogInterval)
protected void reset()
protected abstract void reportPeriodicNode(long count, @NotNull @NotNull ReportingNodeState nodeState)
count
- The count of reported nodes.nodeState
- The node that was reported.protected abstract void reportPeriodicProperty(long count, @NotNull @NotNull ReportingNodeState parent, @NotNull @NotNull java.lang.String propertyName)
count
- The count of reported properties.parent
- The parent node of the reported property.propertyName
- The name of the reported property.protected boolean skipNodeState(@NotNull @NotNull ReportingNodeState nodeState)
public final void reportNode(@NotNull @NotNull ReportingNodeState nodeState)
Reporter
nodeState
was accessed.reportNode
in interface Reporter
nodeState
- The accessed ReportingNodeState
instance.public final void reportProperty(@NotNull @NotNull ReportingNodeState parent, @NotNull @NotNull java.lang.String propertyName)
Reporter
propertyName
was accessed on the parent
node.reportProperty
in interface Reporter
parent
- The parent node state of the reported property.propertyName
- The name of the reported property.Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.