Package org.elasticsearch.client.watcher
Class GetWatchResponse
- java.lang.Object
-
- org.elasticsearch.client.watcher.GetWatchResponse
-
public class GetWatchResponse extends Object
-
-
Constructor Summary
Constructors Constructor Description GetWatchResponse(String id)Ctor for missing watchGetWatchResponse(String id, long version, long seqNo, long primaryTerm, WatchStatus status, BytesReference source, XContentType xContentType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static GetWatchResponsefromXContent(XContentParser parser)XContentTypegetContentType()Returns theXContentTypeof the sourceStringgetId()longgetPrimaryTerm()longgetSeqNo()BytesReferencegetSource()Returns the serialized watchMap<String,Object>getSourceAsMap()Returns the source as a mapWatchStatusgetStatus()longgetVersion()inthashCode()booleanisFound()
-
-
-
Constructor Detail
-
GetWatchResponse
public GetWatchResponse(String id)
Ctor for missing watch
-
GetWatchResponse
public GetWatchResponse(String id, long version, long seqNo, long primaryTerm, WatchStatus status, BytesReference source, XContentType xContentType)
-
-
Method Detail
-
getId
public String getId()
-
getVersion
public long getVersion()
-
getSeqNo
public long getSeqNo()
-
getPrimaryTerm
public long getPrimaryTerm()
-
isFound
public boolean isFound()
-
getStatus
public WatchStatus getStatus()
-
getContentType
public XContentType getContentType()
Returns theXContentTypeof the source
-
getSource
public BytesReference getSource()
Returns the serialized watch
-
fromXContent
public static GetWatchResponse fromXContent(XContentParser parser) throws IOException
- Throws:
IOException
-
-