Class QueryTracker

    • Constructor Detail

      • QueryTracker

        protected QueryTracker​(java.sql.Connection conn,
                               java.util.Queue<Track> trackQueue)
        Build a query tracker
        Parameters:
        conn - connection to the database
        trackQueue - 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 database
        trackQueue - 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 interface Tracker
        Specified by:
        getName in class AbstractTracker
        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 class AbstractTracker
        Returns:
        String sql statement
      • trackQuery

        protected void trackQuery​(java.lang.String type,
                                  Profile profile,
                                  java.lang.String sessionIdentifier)
        Parameters:
        type - type of query
        profile - userprofile
        sessionIdentifier - session