Remove PersistentTask#isCurrentStatus() usages
This commit is contained in:
parent
5a8512bf4e
commit
fab0dc449a
|
@ -19,7 +19,6 @@
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue