Class CoordinationMetaData
- java.lang.Object
-
- org.elasticsearch.cluster.coordination.CoordinationMetaData
-
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentFragment
public class CoordinationMetaData extends Object implements Writeable, ToXContentFragment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCoordinationMetaData.Builderstatic classCoordinationMetaData.VotingConfigExclusionstatic classCoordinationMetaData.VotingConfigurationA collection of persistent node ids, denoting the voting configuration for cluster state changes.-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
Fields Modifier and Type Field Description static CoordinationMetaDataEMPTY_META_DATA-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description CoordinationMetaData(long term, CoordinationMetaData.VotingConfiguration lastCommittedConfiguration, CoordinationMetaData.VotingConfiguration lastAcceptedConfiguration, Set<CoordinationMetaData.VotingConfigExclusion> votingConfigExclusions)CoordinationMetaData(StreamInput in)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CoordinationMetaData.Builderbuilder()static CoordinationMetaData.Builderbuilder(CoordinationMetaData coordinationMetaData)booleanequals(Object o)static CoordinationMetaDatafromXContent(XContentParser parser)CoordinationMetaData.VotingConfigurationgetLastAcceptedConfiguration()CoordinationMetaData.VotingConfigurationgetLastCommittedConfiguration()Set<CoordinationMetaData.VotingConfigExclusion>getVotingConfigExclusions()inthashCode()longterm()StringtoString()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Field Detail
-
EMPTY_META_DATA
public static final CoordinationMetaData EMPTY_META_DATA
-
-
Constructor Detail
-
CoordinationMetaData
public CoordinationMetaData(long term, CoordinationMetaData.VotingConfiguration lastCommittedConfiguration, CoordinationMetaData.VotingConfiguration lastAcceptedConfiguration, Set<CoordinationMetaData.VotingConfigExclusion> votingConfigExclusions)
-
CoordinationMetaData
public CoordinationMetaData(StreamInput in) throws IOException
- Throws:
IOException
-
-
Method Detail
-
builder
public static CoordinationMetaData.Builder builder()
-
builder
public static CoordinationMetaData.Builder builder(CoordinationMetaData coordinationMetaData)
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
fromXContent
public static CoordinationMetaData fromXContent(XContentParser parser) throws IOException
- Throws:
IOException
-
term
public long term()
-
getLastAcceptedConfiguration
public CoordinationMetaData.VotingConfiguration getLastAcceptedConfiguration()
-
getLastCommittedConfiguration
public CoordinationMetaData.VotingConfiguration getLastCommittedConfiguration()
-
getVotingConfigExclusions
public Set<CoordinationMetaData.VotingConfigExclusion> getVotingConfigExclusions()
-
-