public class Configuration extends Object
This class represents a cluster configuration stored on disk. Configurations are managed by
a MetaStore, stored on disk when Cluster
configurations change, and loaded from disk on server startup.
| Constructor and Description |
|---|
Configuration(long index,
long term,
long time,
Collection<Member> members) |
| Modifier and Type | Method and Description |
|---|---|
long |
index()
Returns the configuration index.
|
Collection<Member> |
members()
Returns the cluster membership for this configuration.
|
long |
term()
Returns the configuration term.
|
long |
time()
Returns the configuration time.
|
String |
toString() |
public Configuration(long index,
long term,
long time,
Collection<Member> members)
public long index()
The index is the index of the ConfigurationEntry
which resulted in this configuration.
public long term()
The term is the term of the leader at the time the configuration change was committed.
public long time()
public Collection<Member> members()
Copyright © 2013–2016. All rights reserved.