public class ClusterBlock extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
ClusterBlock(int id,
String description,
boolean retryable,
boolean disableStatePersistence,
RestStatus status,
EnumSet<ClusterBlockLevel> levels) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(ClusterBlockLevel level) |
String |
description() |
boolean |
disableStatePersistence()
Should global state persistence be disabled when this block is present.
|
boolean |
equals(Object o) |
int |
hashCode() |
int |
id() |
EnumSet<ClusterBlockLevel> |
levels() |
static ClusterBlock |
readClusterBlock(StreamInput in) |
void |
readFrom(StreamInput in) |
boolean |
retryable()
Should operations get into retry state if this block is present.
|
RestStatus |
status() |
String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public ClusterBlock(int id, String description, boolean retryable, boolean disableStatePersistence, RestStatus status, EnumSet<ClusterBlockLevel> levels)
public int id()
public String description()
public RestStatus status()
public EnumSet<ClusterBlockLevel> levels()
public boolean contains(ClusterBlockLevel level)
public boolean retryable()
public boolean disableStatePersistence()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
public static ClusterBlock readClusterBlock(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
Copyright © 2009–2016. All rights reserved.