java.lang.Object
org.elasticsearch.health.Diagnosis.Resource
- All Implemented Interfaces:
ChunkedToXContent
- Enclosing class:
Diagnosis
Represents a type of affected resource, together with the resources/abstractions that
are affected.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
EMPTY
-
Constructor Summary
ConstructorsConstructorDescriptionResource
(Collection<DiscoveryNode> nodes) Resource
(Diagnosis.Resource.Type type, Collection<String> values) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getNodes()
getType()
int
hashCode()
Iterator
<? extends ToXContent> toXContentChunked
(ToXContent.Params outerParams) Create an iterator ofToXContent
chunks for a REST response.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
isFragment, toXContentChunked, toXContentChunkedV8
-
Field Details
-
ID_FIELD
- See Also:
-
NAME_FIELD
- See Also:
-
-
Constructor Details
-
Resource
-
Resource
-
-
Method Details
-
toXContentChunked
Description copied from interface:ChunkedToXContent
Create an iterator ofToXContent
chunks for a REST response. Each chunk is serialized with the sameXContentBuilder
andToXContent.Params
, which is also the same as theToXContent.Params
passed as theparams
argument. For best results, all chunks should beO(1)
size. The last chunk in the iterator must always yield at least one byte of output. See alsoChunkedToXContentHelper
for some handy utilities.Note that chunked response bodies cannot send deprecation warning headers once transmission has started, so implementations must check for deprecated feature use before returning.
- Specified by:
toXContentChunked
in interfaceChunkedToXContent
- Returns:
- iterator over chunks of
ToXContent
-
equals
-
hashCode
public int hashCode() -
getType
-
getValues
-
getNodes
-