Class PersistentTasksCustomMetadata.PersistentTask<P extends PersistentTaskParams>

org.elasticsearch.persistent.PersistentTasksCustomMetadata.PersistentTask<P>
All Implemented Interfaces:
Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject
Enclosing class:
PersistentTasksCustomMetadata

public static class PersistentTasksCustomMetadata.PersistentTask<P extends PersistentTaskParams> extends implements Writeable, org.elasticsearch.common.xcontent.ToXContentObject
A record that represents a single running persistent task
  • Constructor Details

  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
    • equals

      public boolean equals( o)
      Overrides:
       in class 
    • hashCode

      public int hashCode()
      Overrides:
       in class 
    • toString

      public  toString()
      Overrides:
       in class 
    • getId

      public  getId()
    • getAllocationId

      public long getAllocationId()
    • getTaskName

      public  getTaskName()
    • getParams

      @Nullable public P getParams()
    • getExecutorNode

      @Nullable public  getExecutorNode()
    • getAssignment

    • isAssigned

      public boolean isAssigned()
    • getState

      @Nullable public PersistentTaskState getState()
    • toXContent

      public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params xParams) throws
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Throws:
    • isFragment

      public boolean isFragment()
      Specified by:
      isFragment in interface org.elasticsearch.common.xcontent.ToXContent
      Specified by:
      isFragment in interface org.elasticsearch.common.xcontent.ToXContentObject