java.lang.Object
org.apache.jena.sparql.util.graph.GraphListenerBase
org.apache.jena.sparql.util.graph.GraphListenerCounter
- All Implemented Interfaces:
GraphListener
- Direct Known Subclasses:
GraphLoadMonitor
Adds a regular "tick" based on the number of adds or deletes seen.
The additions and deletions ticks are independent.
-
Constructor Summary
ConstructorsConstructorDescriptionGraphListenerCounter
(int addTickCount) Create a listener that "ticks" on additions to the graph (-1 means "off")GraphListenerCounter
(int addTickCount, int deleteTickCount) Create a listener that "ticks" on additions and deletions (in each case, -1 means "off") -
Method Summary
Modifier and TypeMethodDescriptionfinal long
final long
final int
final long
final long
final int
void
notifyEvent
(Graph source, Object value) void
reset()
Methods inherited from class org.apache.jena.sparql.util.graph.GraphListenerBase
notifyAddArray, notifyAddGraph, notifyAddIterator, notifyAddList, notifyAddTriple, notifyDeleteArray, notifyDeleteGraph, notifyDeleteIterator, notifyDeleteList, notifyDeleteTriple
-
Constructor Details
-
GraphListenerCounter
public GraphListenerCounter(int addTickCount) Create a listener that "ticks" on additions to the graph (-1 means "off")- Parameters:
addTickCount
-
-
GraphListenerCounter
public GraphListenerCounter(int addTickCount, int deleteTickCount) Create a listener that "ticks" on additions and deletions (in each case, -1 means "off")- Parameters:
addTickCount
- Notification tick for additions to the graphdeleteTickCount
- Notification tick for deletions to the graph
-
-
Method Details
-
reset
public void reset() -
notifyEvent
- Specified by:
notifyEvent
in interfaceGraphListener
- Overrides:
notifyEvent
in classGraphListenerBase
-
getAddTickSize
public final int getAddTickSize() -
getDeleteTickSize
public final int getDeleteTickSize() -
getAddCount
public final long getAddCount() -
getDeleteCount
public final long getDeleteCount() -
getAddTicks
public final long getAddTicks() -
getDeleteTicks
public final long getDeleteTicks()
-