Class ClusterStateResponse
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
org.elasticsearch.action.ActionResponse
org.elasticsearch.action.admin.cluster.state.ClusterStateResponse
- All Implemented Interfaces:
Writeable,org.elasticsearch.core.RefCounted
The response for getting the cluster state.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.action.ActionResponse
ActionResponse.EmptyNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionClusterStateResponse(ClusterName clusterName, ClusterState clusterState, boolean waitForTimedOut) -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe name of the cluster.getState()The requested cluster state.inthashCode()booleanReturns whether the request timed out waiting for a cluster state with a metadata version equal or higher than the specified metadata.voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, incRef, remoteAddress, remoteAddress, tryIncRef
-
Constructor Details
-
ClusterStateResponse
- Throws:
IOException
-
ClusterStateResponse
public ClusterStateResponse(ClusterName clusterName, ClusterState clusterState, boolean waitForTimedOut)
-
-
Method Details
-
getState
The requested cluster state. Only the parts of the cluster state that were requested are included in the returnedClusterStateinstance. -
getClusterName
The name of the cluster. -
isWaitForTimedOut
public boolean isWaitForTimedOut()Returns whether the request timed out waiting for a cluster state with a metadata version equal or higher than the specified metadata. -
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-