Class QueryTracker<T extends QueryTracker.TrackedQuery>

java.lang.Object
io.trino.execution.QueryTracker<T>

@ThreadSafe public class QueryTracker<T extends QueryTracker.TrackedQuery> extends Object
  • Constructor Details

  • Method Details

    • start

      public void start()
    • stop

      public void stop()
    • getAllQueries

      public Collection<T> getAllQueries()
    • getQuery

      public T getQuery(QueryId queryId) throws NoSuchElementException
      Throws:
      NoSuchElementException
    • hasQuery

      public boolean hasQuery(QueryId queryId)
    • tryGetQuery

      public Optional<T> tryGetQuery(QueryId queryId)
    • addQuery

      public boolean addQuery(T execution)
    • expireQuery

      public void expireQuery(QueryId queryId)
      Query is finished and expiration should begin.
    • getAllQueriesCount

      public int getAllQueriesCount()
    • getExpiredQueriesCount

      public int getExpiredQueriesCount()
    • getPrunedQueriesCount

      public int getPrunedQueriesCount()