/** * Returns the status of the underlying task. This issues an RPC to the server * and cannot be used in the hot path. */ public TaskStatus getStatus() throws IOException, RecordServiceException { if (handle_ == null) throw new RuntimeException("Task already closed."); return worker_.getTaskStatus(handle_); }