Class SQLTrace

  • Direct Known Subclasses:
    SlowSqlTrace

    public class SQLTrace
    extends Object
    Store the sql queries executed by applications along with the number of times executed and the time stamp of the last usage. Used for monitoring information.
    Author:
    Shalini M
    • Field Detail

      • SQLTraceFrequencyComparator

        public static Comparator<SQLTrace> SQLTraceFrequencyComparator
    • Constructor Detail

      • SQLTrace

        public SQLTrace​(String query,
                        int numExecutions,
                        long time)
    • Method Detail

      • getQueryName

        public String getQueryName()
        Get the value of queryName
        Returns:
        the value of queryName
      • setQueryName

        public void setQueryName​(String queryName)
        Set the value of queryName
        Parameters:
        queryName - new value of queryName
      • getNumExecutions

        public int getNumExecutions()
        Get the value of numExecutions
        Returns:
        the value of numExecutions
      • setNumExecutions

        public void setNumExecutions​(int numExecutions)
        Set the value of numExecutions
        Parameters:
        numExecutions - new value of numExecutions
      • getLastUsageTime

        public long getLastUsageTime()
        Get the value of lastUsageTime
        Returns:
        the value of lastUsageTime
      • setLastUsageTime

        public void setLastUsageTime​(long lastUsageTime)
        Set the value of lastUsageTime
        Parameters:
        lastUsageTime - new value of lastUsageTime