Package org.elasticsearch.client.ml
Class DeleteJobResponse
java.lang.Object
org.elasticsearch.client.ml.DeleteJobResponse
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent
,org.elasticsearch.xcontent.ToXContentObject
public class DeleteJobResponse
extends Object
implements org.elasticsearch.xcontent.ToXContentObject
Response object that contains the acknowledgement or the task id
depending on whether the delete job action was requested to wait for completion.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ConstructingObjectParser<DeleteJobResponse,
Void> Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static DeleteJobResponse
fromXContent
(org.elasticsearch.xcontent.XContentParser parser) Get the action acknowledgementorg.elasticsearch.tasks.TaskId
getTask()
Get the task idint
hashCode()
org.elasticsearch.xcontent.XContentBuilder
toXContent
(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
PARSER
public static final org.elasticsearch.xcontent.ConstructingObjectParser<DeleteJobResponse,Void> PARSER
-
-
Method Details
-
fromXContent
public static DeleteJobResponse fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
getAcknowledged
Get the action acknowledgement- Returns:
null
when the request hadDeleteJobRequest.getWaitForCompletion()
set tofalse
or otherwise aboolean
that indicates whether the job was deleted successfully.
-
getTask
public org.elasticsearch.tasks.TaskId getTask()Get the task id- Returns:
null
when the request hadDeleteJobRequest.getWaitForCompletion()
set totrue
or otherwise the id of the job deletion task.
-
hashCode
public int hashCode() -
equals
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceorg.elasticsearch.xcontent.ToXContent
- Throws:
IOException
-