org.openanzo.services.trackers
Interface TrackerListener


public interface TrackerListener

Listener that is registered along with a tracker in order to receive events specific to a given tracker.

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Method Summary
 void onStatementChanged(ITracker tracker, org.openrdf.model.Statement newStatement, org.openrdf.model.Value oldObject)
          This method is called in two cases.
 void onStatementDeleted(ITracker tracker, org.openrdf.model.Statement statement)
          This method is called when a statement that matches this tracker is deleted or when a statement that matches this tracker is changed such that it no longer matches this tracker.
 

Method Detail

onStatementChanged

void onStatementChanged(ITracker tracker,
                        org.openrdf.model.Statement newStatement,
                        org.openrdf.model.Value oldObject)
This method is called in two cases. The first is when a statement that already matches this tracker is changed and it still matches this tracker. In this case, The oldObject parameter is null. The second is when a new statement is created and it matches this tracker or a statement that previously did NOT match this tracker is changed such that it now matches this tracker. In that case, the oldObject parameter is null.

Parameters:
tracker - The tracker for which this event was fired.
newStatement - The statement which changed.
oldObject - The old object of the changed triple. null if triple did not previously exist.

onStatementDeleted

void onStatementDeleted(ITracker tracker,
                        org.openrdf.model.Statement statement)
This method is called when a statement that matches this tracker is deleted or when a statement that matches this tracker is changed such that it no longer matches this tracker.

Parameters:
tracker - The tracker for which this event was fired.
statement - The statement which was deleted.


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.