public class ClusterHealthResponse extends ActionResponse implements StatusToXContent
TransportResponse.EmptyToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsheadersEMPTY_PARAMS| コンストラクタと説明 |
|---|
ClusterHealthResponse(String clusterName,
String[] concreteIndices,
ClusterState clusterState)
needed for plugins BWC
|
ClusterHealthResponse(String clusterName,
String[] concreteIndices,
ClusterState clusterState,
int numberOfPendingTasks,
int numberOfInFlightFetch,
int delayedUnassignedShards,
TimeValue taskMaxWaitingTime) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
int |
getActivePrimaryShards() |
int |
getActiveShards() |
double |
getActiveShardsPercent()
The percentage of active shards, should be 100% in a green system
|
String |
getClusterName() |
int |
getDelayedUnassignedShards()
The number of unassigned shards that are currently being delayed (for example,
due to node leaving the cluster and waiting for a timeout for the node to come
back in order to allocate the shards back to it).
|
Map<String,ClusterIndexHealth> |
getIndices() |
int |
getInitializingShards() |
int |
getNumberOfDataNodes() |
int |
getNumberOfInFlightFetch() |
int |
getNumberOfNodes() |
int |
getNumberOfPendingTasks() |
int |
getRelocatingShards() |
ClusterHealthStatus |
getStatus() |
TimeValue |
getTaskMaxWaitingTime() |
int |
getUnassignedShards() |
List<String> |
getValidationFailures()
The validation failures on the cluster level (without index validation failures).
|
boolean |
isTimedOut()
true if the waitForXXX has timeout out and did not match.
|
void |
readFrom(StreamInput in) |
static ClusterHealthResponse |
readResponseFrom(StreamInput in) |
void |
setStatus(ClusterHealthStatus status)
Allows to explicitly override the derived cluster health status.
|
void |
setTimedOut(boolean timedOut) |
RestStatus |
status()
Returns the REST status to make sure it is returned correctly
|
String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic ClusterHealthResponse(String clusterName, String[] concreteIndices, ClusterState clusterState)
public ClusterHealthResponse(String clusterName, String[] concreteIndices, ClusterState clusterState, int numberOfPendingTasks, int numberOfInFlightFetch, int delayedUnassignedShards, TimeValue taskMaxWaitingTime)
public String getClusterName()
public List<String> getValidationFailures()
public int getActiveShards()
public int getRelocatingShards()
public int getActivePrimaryShards()
public int getInitializingShards()
public int getUnassignedShards()
public int getNumberOfNodes()
public int getNumberOfDataNodes()
public int getNumberOfPendingTasks()
public int getNumberOfInFlightFetch()
public int getDelayedUnassignedShards()
public boolean isTimedOut()
public void setTimedOut(boolean timedOut)
public ClusterHealthStatus getStatus()
public void setStatus(ClusterHealthStatus status)
status - The override status. Must not be null.public Map<String,ClusterIndexHealth> getIndices()
public TimeValue getTaskMaxWaitingTime()
public double getActiveShardsPercent()
public static ClusterHealthResponse readResponseFrom(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom インタフェース内 StreamablereadFrom クラス内 ActionResponseIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo インタフェース内 StreamablewriteTo クラス内 ActionResponseIOExceptionpublic RestStatus status()
StatusToXContentstatus インタフェース内 StatusToXContentpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent インタフェース内 ToXContentIOExceptionCopyright © 2009–2016. All rights reserved.