public class ClusterBlock extends java.lang.Object implements Streamable, ToXContentFragment
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
ClusterBlock(int id,
java.lang.String description,
boolean retryable,
boolean disableStatePersistence,
boolean allowReleaseResources,
RestStatus status,
java.util.EnumSet<ClusterBlockLevel> levels) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(ClusterBlockLevel level) |
java.lang.String |
description() |
boolean |
disableStatePersistence()
Should global state persistence be disabled when this block is present.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
int |
id() |
boolean |
isAllowReleaseResources() |
java.util.EnumSet<ClusterBlockLevel> |
levels() |
static ClusterBlock |
readClusterBlock(StreamInput in) |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
boolean |
retryable()
Should operations get into retry state if this block is present.
|
RestStatus |
status() |
java.lang.String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitisFragmentpublic ClusterBlock(int id,
java.lang.String description,
boolean retryable,
boolean disableStatePersistence,
boolean allowReleaseResources,
RestStatus status,
java.util.EnumSet<ClusterBlockLevel> levels)
public int id()
public java.lang.String description()
public RestStatus status()
public java.util.EnumSet<ClusterBlockLevel> levels()
public boolean contains(ClusterBlockLevel level)
public boolean retryable()
public boolean disableStatePersistence()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic static ClusterBlock readClusterBlock(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface Streamablejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface Streamablejava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isAllowReleaseResources()