public class ClusterState extends Object implements ToXContent
Modifier and Type | Class and Description |
---|---|
static class |
ClusterState.Builder |
static class |
ClusterState.ClusterStateStatus |
static interface |
ClusterState.Custom |
static class |
ClusterState.Metric |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static long |
UNKNOWN_VERSION |
EMPTY_PARAMS
Constructor and Description |
---|
ClusterState(ClusterName clusterName,
long version,
MetaData metaData,
RoutingTable routingTable,
DiscoveryNodes nodes,
ClusterBlocks blocks,
ImmutableOpenMap<String,ClusterState.Custom> customs) |
ClusterState(long version,
ClusterState state) |
public static final long UNKNOWN_VERSION
public ClusterState(long version, ClusterState state)
public ClusterState(ClusterName clusterName, long version, MetaData metaData, RoutingTable routingTable, DiscoveryNodes nodes, ClusterBlocks blocks, ImmutableOpenMap<String,ClusterState.Custom> customs)
public static void registerFactory(String type, ClusterState.Custom.Factory factory)
@Nullable public static <T extends ClusterState.Custom> ClusterState.Custom.Factory<T> lookupFactory(String type)
public static <T extends ClusterState.Custom> ClusterState.Custom.Factory<T> lookupFactorySafe(String type) throws ElasticsearchIllegalArgumentException
public ClusterState.ClusterStateStatus status()
public ClusterState status(ClusterState.ClusterStateStatus newStatus)
public long version()
public long getVersion()
public DiscoveryNodes nodes()
public DiscoveryNodes getNodes()
public MetaData metaData()
public MetaData getMetaData()
public RoutingTable routingTable()
public RoutingTable getRoutingTable()
public RoutingNodes routingNodes()
public RoutingNodes getRoutingNodes()
public ClusterBlocks blocks()
public ClusterBlocks getBlocks()
public ImmutableOpenMap<String,ClusterState.Custom> customs()
public ImmutableOpenMap<String,ClusterState.Custom> getCustoms()
public ClusterName getClusterName()
public RoutingNodes readOnlyRoutingNodes()
public ClusterState settingsFilter(SettingsFilter settingsFilter)
public String prettyPrint()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
public static ClusterState.Builder builder(ClusterName clusterName)
public static ClusterState.Builder builder(ClusterState state)
Copyright © 2009–2015. All rights reserved.