|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.services.trackers.SelectorTracker
public class SelectorTracker
Used to track statements which match a specified selector pattern.
| Constructor Summary | |
|---|---|
SelectorTracker(org.openrdf.model.Resource namedGraph)
Create a SelectorTracker for a namedGraph |
|
SelectorTracker(org.openrdf.model.Resource trackerURI,
org.openrdf.model.Resource context,
org.openrdf.model.Resource subject,
org.openrdf.model.URI predicate,
org.openrdf.model.Value object,
boolean replicated,
boolean deleted,
java.util.Collection<org.openrdf.model.URI> trackerSetUris)
Create a new SelectorTracker |
|
SelectorTracker(org.openrdf.model.Resource context,
org.openrdf.model.Resource subject,
org.openrdf.model.URI predicate,
org.openrdf.model.Value object)
Create a new SelectorTracker to track statements using provided values as filter |
|
SelectorTracker(SelectorTracker tracker)
Create a new SelectorTracker based on data stored within Jastor tracker object |
|
| Method Summary | |
|---|---|
void |
addListener(org.openrdf.model.URI trackerSetURI,
TrackerListener listener)
Add a new TrackerListener for this tracker |
void |
addTrackerSet(org.openrdf.model.URI trackerSetURI)
Add a new TrackerSet to this tracker |
boolean |
equals(java.lang.Object o)
This is here simply to remind you to implement equals and hashCode when implementing this interface. |
static java.util.List<org.openrdf.model.Resource> |
findSerializedTrackers(INamedGraph graph)
Finds the Resource objects representing all of the serialized SelectorTracker objects found in the given graph. |
org.openrdf.model.URI |
getContext()
Get the Context resource for tracker |
java.util.Set<TrackerListener> |
getListeners()
Get the TrackerListeners for this tracker |
java.lang.String |
getMessageSelector()
Get the JMS message selector corresponding to this INotificationSelector's definition |
org.openrdf.model.Value |
getObject()
The tracker's object value |
org.openrdf.model.URI |
getPredicate()
The tracker's predicate value |
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()
The tracker's subject value |
java.util.Set<org.openrdf.model.URI> |
getTrackerSets()
Get the TrackerSets for this tracker |
org.openrdf.model.Resource |
getURI()
The tracker's URI |
int |
hashCode()
This is here simply to remind you to implement equals and hashCode when implementing this interface. |
boolean |
isDeleted()
Determine if the tracker is deleted |
boolean |
isReplicated()
Determine if the tracker is replicated |
static java.util.Set<ISerializableTracker> |
loadAllSerializedTrackers(INamedGraph graph)
Loads all of the trackers found serialized in the given model. |
static SelectorTracker |
loadSerializedTracker(org.openrdf.model.Resource trackerResource,
INamedGraph graph)
Creates a SelectorTracker object from its serialization in the given graph. |
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. |
void |
removeListener(org.openrdf.model.URI trackerSetURI,
TrackerListener listener)
Remove a TrackerListener from this tracker |
void |
removeSerialization(INamedGraph graph)
Removes the RDF statements that make up any and all serializations of this tracker from the given RDF graph. |
void |
removeTrackerSet(org.openrdf.model.URI trackerSetURI)
Remove a TrackerSet from this tracker |
org.openrdf.model.Resource |
serialize(INamedGraph graph)
Serializes this tracker into the given RDF graph. |
void |
setDeleted(boolean deleted)
Set if the tracker is deleted |
void |
setReplicated(boolean replicated)
Set if the tracker is replicated |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SelectorTracker(org.openrdf.model.Resource namedGraph)
namedGraph - to trackpublic SelectorTracker(SelectorTracker tracker)
tracker - Jastor tracker object reflecting definition of a tracker
public SelectorTracker(org.openrdf.model.Resource trackerURI,
org.openrdf.model.Resource context,
org.openrdf.model.Resource subject,
org.openrdf.model.URI predicate,
org.openrdf.model.Value object,
boolean replicated,
boolean deleted,
java.util.Collection<org.openrdf.model.URI> trackerSetUris)
trackerURI - URI for trackercontext - URI of graph of match statementsubject - Subject of match statementpredicate - Predicate of match statementobject - Object of match statementreplicated - true if tracker has been replicateddeleted - true if tracker was deleted since last replicationtrackerSetUris - set of TrackerSets which this tracker belongs
public SelectorTracker(org.openrdf.model.Resource context,
org.openrdf.model.Resource subject,
org.openrdf.model.URI predicate,
org.openrdf.model.Value object)
context - URI of graph of match statementsubject - Subject of match statementpredicate - Predicate of match statementobject - Object of match statement| Method Detail |
|---|
public static java.util.List<org.openrdf.model.Resource> findSerializedTrackers(INamedGraph graph)
graph -
public static SelectorTracker loadSerializedTracker(org.openrdf.model.Resource trackerResource,
INamedGraph graph)
throws AnzoException
trackerResource - the resource representing the serialized trackergraph -
AnzoExceptionpublic org.openrdf.model.Resource serialize(INamedGraph graph)
ISerializableTracker
serialize in interface ISerializableTrackergraph - in which to serialize definition and state of trackers
public void removeSerialization(INamedGraph graph)
ISerializableTracker
removeSerialization in interface ISerializableTrackergraph - in which to serialize definition and state of trackerspublic boolean matchStatement(org.openrdf.model.Statement statement)
ITracker
matchStatement in interface ITrackerstatement - statement to compare
public boolean matchNamedGraphUri(org.openrdf.model.URI namedGraphUri)
ITracker
matchNamedGraphUri in interface ITrackernamedGraphUri - Uri of namedGraph to compare.
public boolean equals(java.lang.Object o)
ITracker
equals in interface ITrackerequals in class java.lang.Objecto - object to determine equality
public int hashCode()
ITracker
hashCode in interface ITrackerhashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic org.openrdf.model.URI getContext()
ITracker
getContext in interface ITracker
public static java.util.Set<ISerializableTracker> loadAllSerializedTrackers(INamedGraph graph)
throws AnzoException
graph - where serialization of tracker resides
AnzoExceptionpublic java.lang.String getMessageSelector()
INotificationSelector
getMessageSelector in interface INotificationSelectorpublic java.lang.String getQueryString()
ITracker
getQueryString in interface ITrackerpublic org.openrdf.model.Value getObject()
getObject in interface ITrackerpublic org.openrdf.model.URI getPredicate()
getPredicate in interface ITrackerpublic org.openrdf.model.Resource getSubject()
getSubject in interface ITrackerpublic org.openrdf.model.Resource getURI()
getURI in interface ISerializableTrackerpublic boolean isDeleted()
isDeleted in interface ISerializableTrackerpublic void setDeleted(boolean deleted)
setDeleted in interface ISerializableTrackerdeleted - is the tracker is deletedpublic boolean isReplicated()
isReplicated in interface ISerializableTrackerpublic void setReplicated(boolean replicated)
setReplicated in interface ISerializableTrackerreplicated - is the tracker is replicated
public void addListener(org.openrdf.model.URI trackerSetURI,
TrackerListener listener)
ISerializableTracker
addListener in interface ISerializableTrackertrackerSetURI - URI of set to which this listener belongslistener - TrackerListener to add
public void removeListener(org.openrdf.model.URI trackerSetURI,
TrackerListener listener)
ISerializableTracker
removeListener in interface ISerializableTrackertrackerSetURI - URI of set to which this listener belongslistener - TrackerListener to removepublic void addTrackerSet(org.openrdf.model.URI trackerSetURI)
ISerializableTracker
addTrackerSet in interface ISerializableTrackertrackerSetURI - to add to this trackerpublic java.util.Set<TrackerListener> getListeners()
ISerializableTracker
getListeners in interface ISerializableTrackerpublic java.util.Set<org.openrdf.model.URI> getTrackerSets()
ISerializableTracker
getTrackerSets in interface ISerializableTrackerpublic void removeTrackerSet(org.openrdf.model.URI trackerSetURI)
ISerializableTracker
removeTrackerSet in interface ISerializableTrackertrackerSetURI - to remove from this tracker
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||