Module org.elasticsearch.server
Class CoordinationMetadata
java.lang.Object
org.elasticsearch.cluster.coordination.CoordinationMetadata
- All Implemented Interfaces:
- Writeable,- ToXContent,- ToXContentFragment
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classA collection of persistent node ids, denoting the voting configuration for cluster state changes.Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContentToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFieldsFields inherited from interface org.elasticsearch.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructorsConstructorDescriptionCoordinationMetadata(long term, CoordinationMetadata.VotingConfiguration lastCommittedConfiguration, CoordinationMetadata.VotingConfiguration lastAcceptedConfiguration, Set<CoordinationMetadata.VotingConfigExclusion> votingConfigExclusions) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic CoordinationMetadata.Builderbuilder()static CoordinationMetadata.Builderbuilder(CoordinationMetadata coordinationMetadata) booleanstatic CoordinationMetadatafromXContent(XContentParser parser) inthashCode()longterm()toString()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragmentisFragment
- 
Field Details- 
EMPTY_METADATA
 
- 
- 
Constructor Details- 
CoordinationMetadatapublic CoordinationMetadata(long term, CoordinationMetadata.VotingConfiguration lastCommittedConfiguration, CoordinationMetadata.VotingConfiguration lastAcceptedConfiguration, Set<CoordinationMetadata.VotingConfigExclusion> votingConfigExclusions) 
- 
CoordinationMetadata- Throws:
- IOException
 
 
- 
- 
Method Details- 
builder
- 
builder
- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Throws:
- IOException
 
- 
toXContentpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
- toXContentin interface- ToXContent
- Throws:
- IOException
 
- 
fromXContent- Throws:
- IOException
 
- 
termpublic long term()
- 
getLastAcceptedConfiguration
- 
getLastCommittedConfiguration
- 
getVotingConfigExclusions
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-