Class PutStoredScriptRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.support.master.MasterNodeRequest<Request>
org.elasticsearch.action.support.master.AcknowledgedRequest<PutStoredScriptRequest>
org.elasticsearch.action.admin.cluster.storedscripts.PutStoredScriptRequest
- All Implemented Interfaces:
- AckedRequest,- Writeable,- org.elasticsearch.common.xcontent.ToXContent,- org.elasticsearch.common.xcontent.ToXContentFragment,- org.elasticsearch.core.RefCounted,- TaskAwareRequest
public class PutStoredScriptRequest
extends AcknowledgedRequest<PutStoredScriptRequest>
implements org.elasticsearch.common.xcontent.ToXContentFragment
- 
Nested Class SummaryNested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequestTransportRequest.EmptyNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContentorg.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFields inherited from class org.elasticsearch.action.support.master.AcknowledgedRequestDEFAULT_ACK_TIMEOUT, timeoutFields inherited from class org.elasticsearch.action.support.master.MasterNodeRequestDEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeoutFields inherited from interface org.elasticsearch.common.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructorsConstructorDescriptionPutStoredScriptRequest(String id, String context, BytesReference content, org.elasticsearch.common.xcontent.XContentType xContentType, StoredScriptSource source)
- 
Method SummaryModifier and TypeMethodDescriptioncontent()content(BytesReference content, org.elasticsearch.common.xcontent.XContentType xContentType)Set the script source and the content type of the bytes.context()id()source()toString()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)validate()voidwriteTo(StreamOutput out)Write this into the StreamOutput.org.elasticsearch.common.xcontent.XContentTypeMethods inherited from class org.elasticsearch.action.support.master.AcknowledgedRequestackTimeout, timeout, timeout, timeoutMethods inherited from class org.elasticsearch.action.support.master.MasterNodeRequestmasterNodeTimeout, masterNodeTimeout, masterNodeTimeoutMethods inherited from class org.elasticsearch.action.ActionRequestgetShouldStoreResultMethods inherited from class org.elasticsearch.transport.TransportRequestgetParentTask, setParentTaskMethods inherited from class org.elasticsearch.transport.TransportMessagedecRef, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.cluster.ack.AckedRequestmasterNodeTimeoutMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequestcreateTask, getDescription, setParentTaskMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragmentisFragment
- 
Constructor Details- 
PutStoredScriptRequest- Throws:
- IOException
 
- 
PutStoredScriptRequestpublic PutStoredScriptRequest()
- 
PutStoredScriptRequestpublic PutStoredScriptRequest(String id, String context, BytesReference content, org.elasticsearch.common.xcontent.XContentType xContentType, StoredScriptSource source)
 
- 
- 
Method Details- 
validate- Specified by:
- validatein class- ActionRequest
 
- 
id
- 
id
- 
context
- 
context
- 
content
- 
xContentTypepublic org.elasticsearch.common.xcontent.XContentType xContentType()
- 
source
- 
contentpublic PutStoredScriptRequest content(BytesReference content, org.elasticsearch.common.xcontent.XContentType xContentType)Set the script source and the content type of the bytes.
- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Overrides:
- writeToin class- AcknowledgedRequest<PutStoredScriptRequest>
- Throws:
- IOException
 
- 
toString- Overrides:
- toStringin class- TransportRequest
 
- 
toXContentpublic org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
- toXContentin interface- org.elasticsearch.common.xcontent.ToXContent
- Throws:
- IOException
 
 
-