Package org.intermine.api.tracker
Class QueryTracker
- java.lang.Object
-
- org.intermine.api.tracker.AbstractTracker
-
- org.intermine.api.tracker.QueryTracker
-
- All Implemented Interfaces:
Tracker
public class QueryTracker extends AbstractTracker
- Author:
- Daniela
-
-
Field Summary
-
Fields inherited from class org.intermine.api.tracker.AbstractTracker
trackerLogger, trackQueue, trackTableName
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
QueryTracker(java.sql.Connection conn, java.util.Queue<Track> trackQueue)
Build a query tracker
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static QueryTracker
getInstance(java.sql.Connection con, java.util.Queue<Track> trackQueue)
Return an instance of the QueryTrackerjava.lang.String
getName()
Return the tracker's namejava.lang.String
getStatementCreatingTable()
Generate the sql statement to create the table used by the trackerprotected void
trackQuery(java.lang.String type, Profile profile, java.lang.String sessionIdentifier)
-
Methods inherited from class org.intermine.api.tracker.AbstractTracker
createTrackerTable, getTrackTableName, releaseResources, setTrackQueue, storeTrack
-
-
-
-
Constructor Detail
-
QueryTracker
protected QueryTracker(java.sql.Connection conn, java.util.Queue<Track> trackQueue)
Build a query tracker- Parameters:
conn
- connection to the databasetrackQueue
- the queue where the tracks are temporary stored
-
-
Method Detail
-
getInstance
public static QueryTracker getInstance(java.sql.Connection con, java.util.Queue<Track> trackQueue)
Return an instance of the QueryTracker- Parameters:
con
- connection to the databasetrackQueue
- the queue where the tracks are temporary stored- Returns:
- QueryTracker the query tracker
-
getName
public java.lang.String getName()
Return the tracker's name- Specified by:
getName
in interfaceTracker
- Specified by:
getName
in classAbstractTracker
- Returns:
- String tracker's name
-
getStatementCreatingTable
public java.lang.String getStatementCreatingTable()
Generate the sql statement to create the table used by the tracker- Specified by:
getStatementCreatingTable
in classAbstractTracker
- Returns:
- String sql statement
-
trackQuery
protected void trackQuery(java.lang.String type, Profile profile, java.lang.String sessionIdentifier)
- Parameters:
type
- type of queryprofile
- userprofilesessionIdentifier
- session
-
-