diff --git a/plugin/src/main/java/org/elasticsearch/xpack/persistent/PersistentTasksCustomMetaData.java b/plugin/src/main/java/org/elasticsearch/xpack/persistent/PersistentTasksCustomMetaData.java index c42160d24fd..70a4855a17f 100644 --- a/plugin/src/main/java/org/elasticsearch/xpack/persistent/PersistentTasksCustomMetaData.java +++ b/plugin/src/main/java/org/elasticsearch/xpack/persistent/PersistentTasksCustomMetaData.java @@ -253,12 +253,12 @@ public final class PersistentTasksCustomMetaData extends AbstractNamedDiffable implements Writeable, ToXContent { + public static class PersistentTask

implements Writeable, ToXContent { private final String id; private final long allocationId; private final String taskName; @Nullable - private final Params params; + private final P params; @Nullable private final Status status; private final Assignment assignment; @@ -266,21 +266,21 @@ public final class PersistentTasksCustomMetaData extends AbstractNamedDiffable task, long allocationId, Assignment assignment) { + public PersistentTask(PersistentTask

task, long allocationId, Assignment assignment) { this(task.id, allocationId, task.taskName, task.params, task.status, assignment, task.allocationId); } - public PersistentTask(PersistentTask task, Status status) { + public PersistentTask(PersistentTask

task, Status status) { this(task.id, task.allocationId, task.taskName, task.params, status, task.assignment, task.allocationId); } - private PersistentTask(String id, long allocationId, String taskName, Params params, + private PersistentTask(String id, long allocationId, String taskName, P params, Status status, Assignment assignment, Long allocationIdOnLastStatusUpdate) { this.id = id; this.allocationId = allocationId; @@ -308,7 +308,7 @@ public final class PersistentTasksCustomMetaData extends AbstractNamedDiffable