public class ClusterBlock extends Objectimplements Serializable , Streamable , ToXContent
ToXContent.DelegatingMapParams , ToXContent.MapParams , ToXContent.Params EMPTY_PARAMS| Constructor and Description |
|---|
ClusterBlock(int id, String
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(ClusterBlockLevel
|
String |
description()
|
boolean |
disableStatePersistence()
Should global state persistence be disabled when this block is present.
|
boolean |
equals(Object
|
int |
hashCode()
|
int |
id()
|
EnumSet |
levels()
|
static ClusterBlock |
readClusterBlock(StreamInput
|
void |
readFrom(StreamInput
|
boolean |
retryable()
Should operations get into retry state if this block is present.
|
RestStatus |
status()
|
String |
toString()
|
XContentBuilder |
toXContent(XContentBuilder
|
void |
writeTo(StreamOutput
|
public ClusterBlock(int id,
String description,
boolean retryable,
boolean disableStatePersistence,
RestStatus status,
EnumSet<ClusterBlockLevel> levels) public int id()
public Stringdescription()
public RestStatusstatus()
public EnumSet<ClusterBlockLevel > levels()
public boolean contains(ClusterBlockLevellevel)
public boolean retryable()
public boolean disableStatePersistence()
public XContentBuildertoXContent(XContentBuilder builder, ToXContent .Params params) throws IOException
toXContent in interface
ToXContent
IOException
public static ClusterBlockreadClusterBlock(StreamInput in) throws IOException
IOException
public void readFrom(StreamInputin) throws IOException
readFrom in interface
Streamable
IOException
public void writeTo(StreamOutputout) throws IOException
writeTo in interface
Streamable
IOException
public StringtoString()
public boolean equals(Objecto)
public int hashCode()