presto-main/src/main/java/io/prestosql/execution/QueryManager.java/QueryManager/addStateChangeListener
class QueryManager:    void addStateChangeListener(QueryId queryId, StateChangeListener<QueryState> listener)
            throws NoSuchElementException;