presto-main/src/main/java/io/prestosql/execution/QueryExecution.java/QueryExecution/addStateChangeListener
class QueryExecution:    void addStateChangeListener(StateChangeListener<QueryState> stateChangeListener);