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