Module org.elasticsearch.server
Package org.elasticsearch.persistent
Class PersistentTasksCustomMetadata.PersistentTask<P extends PersistentTaskParams>
java.lang.Object
org.elasticsearch.persistent.PersistentTasksCustomMetadata.PersistentTask<P>
- All Implemented Interfaces:
 Writeable,ToXContent,ToXContentObject
- Enclosing class:
 PersistentTasksCustomMetadata
public static class PersistentTasksCustomMetadata.PersistentTask<P extends PersistentTaskParams>
extends Object
implements Writeable, ToXContentObject
A record that represents a single running persistent task
- 
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> - 
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS - 
Constructor Summary
ConstructorsConstructorDescriptionPersistentTask(String id, String name, P params, long allocationId, PersistentTasksCustomMetadata.Assignment assignment) PersistentTask(PersistentTasksCustomMetadata.PersistentTask<P> task, long allocationId, PersistentTasksCustomMetadata.Assignment assignment)  - 
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetId()getState()inthashCode()booleantoString()toXContent(XContentBuilder builder, ToXContent.Params xParams) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment 
- 
Constructor Details
- 
PersistentTask
public PersistentTask(String id, String name, P params, long allocationId, PersistentTasksCustomMetadata.Assignment assignment)  - 
PersistentTask
public PersistentTask(PersistentTasksCustomMetadata.PersistentTask<P> task, long allocationId, PersistentTasksCustomMetadata.Assignment assignment)  - 
PersistentTask
public PersistentTask(PersistentTasksCustomMetadata.PersistentTask<P> task, PersistentTaskState state)  - 
PersistentTask
- Throws:
 IOException
 
 - 
 - 
Method Details
- 
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
 writeToin interfaceWriteable- Throws:
 IOException
 - 
equals
 - 
hashCode
public int hashCode() - 
toString
 - 
getId
 - 
getAllocationId
public long getAllocationId() - 
getTaskName
 - 
getParams
 - 
getExecutorNode
 - 
getAssignment
 - 
isAssigned
public boolean isAssigned() - 
getState
 - 
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params xParams) throws IOException - Specified by:
 toXContentin interfaceToXContent- Throws:
 IOException
 
 -