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 TypeMethodDescriptionbooleangetNodes()getType()inthashCode()Iterator<? extends ToXContent> toXContentChunked(ToXContent.Params outerParams) Create an iterator ofToXContentchunks for a REST response.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:ChunkedToXContentCreate an iterator ofToXContentchunks for a REST response. Each chunk is serialized with the sameXContentBuilderandToXContent.Params, which is also the same as theToXContent.Paramspassed as theparamsargument. 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 alsoChunkedToXContentHelperfor 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:
toXContentChunkedin interfaceChunkedToXContent- Returns:
- iterator over chunks of
ToXContent
-
equals
-
hashCode
public int hashCode() -
getType
-
getValues
-
getNodes
-