public class ClusterBlock extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_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 ToXContentIOExceptionpublic static ClusterBlock readClusterBlock(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionCopyright © 2009–2017. All rights reserved.