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