Remove PersistentTask#isCurrentStatus() usages
package org.elasticsearch.persistent;
import org.elasticsearch.action.ActionListener;
-import org.elasticsearch.client.Client;
import org.elasticsearch.common.Nullable;
import org.elasticsearch.tasks.CancellableTask;
import org.elasticsearch.tasks.Task;
@@ -116,6 +115,10 @@ public class AllocatedPersistentTask extends CancellableTask {
return state.get();
}
+ public long getAllocationId() {
+ return allocationId;
+ }
+
public enum State {
STARTED, // the task is currently running
CANCELLED, // the task is cancelled
