org.openanzo.server.repository
Class Tracker

java.lang.Object
  extended by org.openanzo.server.repository.Tracker
All Implemented Interfaces:
INotificationSelector, ITracker

public class Tracker
extends java.lang.Object
implements ITracker

Basic implementation of ITracker in order to pass trackers to replicate call on server

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Constructor Summary
Tracker(org.openrdf.model.Resource subj, org.openrdf.model.URI prop, org.openrdf.model.Value obj, org.openrdf.model.Resource context)
          New Tracker
 
Method Summary
 boolean equals(java.lang.Object obj)
          This is here simply to remind you to implement equals and hashCode when implementing this interface.
 org.openrdf.model.URI getContext()
          Get the Context resource for tracker
 java.lang.String getMessageSelector()
          Get the JMS message selector corresponding to this INotificationSelector's definition
 org.openrdf.model.Value getObject()
          Get the Object value for the tracker
 org.openrdf.model.URI getPredicate()
          Get the Predicate URI for the tracker
 java.lang.String getQueryString()
          Get the Sparql query used in order to retrieve this queries matching statements from the dataset
 org.openrdf.model.Resource getSubject()
          Get the Subject resource for the tracker
 boolean matchNamedGraphUri(org.openrdf.model.URI namedGraphUri)
          Determine if a change to the given NamedGraph matches this tracker.
 boolean matchStatement(org.openrdf.model.Statement statement)
          Determine if the given statement matches this tracker.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openanzo.services.trackers.ITracker
hashCode
 

Constructor Detail

Tracker

public Tracker(org.openrdf.model.Resource subj,
               org.openrdf.model.URI prop,
               org.openrdf.model.Value obj,
               org.openrdf.model.Resource context)
New Tracker

Parameters:
subj - subject of tracker
prop - property of tracker
obj - object of tracker
context - context of tracker
Method Detail

getContext

public org.openrdf.model.URI getContext()
Description copied from interface: ITracker
Get the Context resource for tracker

Specified by:
getContext in interface ITracker
Returns:
the Context resource for tracker

getSubject

public org.openrdf.model.Resource getSubject()
Description copied from interface: ITracker
Get the Subject resource for the tracker

Specified by:
getSubject in interface ITracker
Returns:
the Subject resource for the tracker

getPredicate

public org.openrdf.model.URI getPredicate()
Description copied from interface: ITracker
Get the Predicate URI for the tracker

Specified by:
getPredicate in interface ITracker
Returns:
the Predicate URI for the tracker

getObject

public org.openrdf.model.Value getObject()
Description copied from interface: ITracker
Get the Object value for the tracker

Specified by:
getObject in interface ITracker
Returns:
the Object value for the tracker

matchNamedGraphUri

public boolean matchNamedGraphUri(org.openrdf.model.URI namedGraphUri)
Description copied from interface: ITracker
Determine if a change to the given NamedGraph matches this tracker.

Specified by:
matchNamedGraphUri in interface ITracker
Parameters:
namedGraphUri - Uri of namedGraph to compare.
Returns:
true if a change to the given NamedGraph matches this tracker.

matchStatement

public boolean matchStatement(org.openrdf.model.Statement statement)
Description copied from interface: ITracker
Determine if the given statement matches this tracker.

Specified by:
matchStatement in interface ITracker
Parameters:
statement - statement to compare
Returns:
true if the given statement matches this tracker.

getMessageSelector

public java.lang.String getMessageSelector()
Description copied from interface: INotificationSelector
Get the JMS message selector corresponding to this INotificationSelector's definition

Specified by:
getMessageSelector in interface INotificationSelector
Returns:
the JMS message selector corresponding to this INotificationSelector's definition

getQueryString

public java.lang.String getQueryString()
Description copied from interface: ITracker
Get the Sparql query used in order to retrieve this queries matching statements from the dataset

Specified by:
getQueryString in interface ITracker
Returns:
the Sparql query used in order to retrieve this queries matching statements from the dataset

equals

public boolean equals(java.lang.Object obj)
Description copied from interface: ITracker
This is here simply to remind you to implement equals and hashCode when implementing this interface. Two trackers are equal if they yield the same result when calling matchStatement for all possible statements.

Specified by:
equals in interface ITracker
Overrides:
equals in class java.lang.Object
Parameters:
obj - object to determine equality
Returns:
true if two trackers yield the same result when calling matchStatement for all possible statements


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