Module org.elasticsearch.xcore
Class MonitoringBulkRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.AbstractTransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.LegacyActionRequest
org.elasticsearch.xpack.core.monitoring.action.MonitoringBulkRequest
- All Implemented Interfaces:
Writeable,org.elasticsearch.core.RefCounted,TaskAwareRequest,TransportRequest
A monitoring bulk request holds one or more
MonitoringBulkDocs.
Every monitoring document added to the request is associated to a MonitoredSystem. The monitored system is used
to resolve the index name in which the document will be indexed into.
-
Nested Class Summary
Nested 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.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(MonitoringBulkDoc doc) Adds a monitoring document to the list of documents to be indexed.add(MonitoredSystem system, BytesReference content, org.elasticsearch.xcontent.XContentType xContentType, long timestamp, long intervalMillis) Parses a monitoring bulk request and builds the list of documents to be indexed.getDocs()validate()voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResultMethods inherited from class org.elasticsearch.transport.AbstractTransportRequest
getParentTask, getRequestId, remoteAddress, remoteAddress, setParentTask, setRequestId, toStringMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
decRef, hasReferences, incRef, mustIncRef, tryIncRefMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, createTask, getDescription, setParentTask
-
Constructor Details
-
MonitoringBulkRequest
public MonitoringBulkRequest() -
MonitoringBulkRequest
- Throws:
IOException
-
-
Method Details
-
getDocs
- Returns:
- the list of
MonitoringBulkDocto be indexed
-
validate
- Specified by:
validatein classActionRequest
-
add
Adds a monitoring document to the list of documents to be indexed. -
add
public MonitoringBulkRequest add(MonitoredSystem system, BytesReference content, org.elasticsearch.xcontent.XContentType xContentType, long timestamp, long intervalMillis) throws IOException Parses a monitoring bulk request and builds the list of documents to be indexed.- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classActionRequest- Throws:
IOException
-