java.lang.Object
org.elasticsearch.xpack.core.rollup.job.RollupJob
- All Implemented Interfaces:
Diffable<RollupJob>,SimpleDiffable<RollupJob>,NamedWriteable,VersionedNamedWriteable,Writeable,PersistentTaskParams,ToXContent,ToXContentObject
This class is the main wrapper object that is serialized into the PersistentTask's cluster state.
It holds the config (RollupJobConfig) and a map of authentication headers. Only RollupJobConfig
is ever serialized to the user, so the headers should never leak
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.cluster.SimpleDiffable
SimpleDiffable.CompleteDiff<T extends Diffable<T>>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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final ConstructingObjectParser<RollupJob, Void> Fields inherited from interface org.elasticsearch.cluster.SimpleDiffable
EMPTYFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionRollupJob(StreamInput in) RollupJob(RollupJobConfig config, Map<String, String> headers) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic RollupJobfromXContent(XContentParser parser) inthashCode()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.cluster.SimpleDiffable
diffMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragmentMethods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
supportsVersion
-
Field Details
-
NAME
- See Also:
-
PARSER
-
-
Constructor Details
-
RollupJob
-
RollupJob
- Throws:
IOException
-
-
Method Details
-
getConfig
-
getHeaders
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable- Specified by:
getWriteableNamein interfaceVersionedNamedWriteable
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
fromXContent
- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
getMinimalSupportedVersion
- Specified by:
getMinimalSupportedVersionin interfaceVersionedNamedWriteable
-