Class ListTracker

    • Constructor Detail

      • ListTracker

        protected ListTracker​(java.sql.Connection conn,
                              java.util.Queue<Track> trackQueue)
        Build a list tracker
        Parameters:
        conn - connection to the database
        trackQueue - queue
    • Method Detail

      • getInstance

        public static ListTracker getInstance​(java.sql.Connection con,
                                              java.util.Queue<Track> trackQueue)
        Return an instance of the ListTracker
        Parameters:
        con - connection to the database
        trackQueue - queue
        Returns:
        ListTracker the list tracker
      • 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
      • 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
      • trackList

        protected void trackList​(java.lang.String type,
                                 int count,
                                 ListBuildMode buildMode,
                                 ListTrackerEvent event,
                                 Profile profile,
                                 java.lang.String sessionIdentifier)
        Parameters:
        type - type
        count - count
        buildMode - build mode
        event - event
        profile - user
        sessionIdentifier - session
      • getListOperations

        protected java.util.List<ListTrack> getListOperations​(java.sql.Connection con)
        Return the operations done for each list (execution or creation)
        Parameters:
        con - the connection
        Returns:
        the list of ListTrack