Class RecoveryRequest
- java.lang.Object
-
- org.elasticsearch.transport.TransportMessage
-
- org.elasticsearch.transport.TransportRequest
-
- org.elasticsearch.action.ActionRequest
-
- org.elasticsearch.action.support.broadcast.BroadcastRequest<RecoveryRequest>
-
- org.elasticsearch.action.admin.indices.recovery.RecoveryRequest
-
- All Implemented Interfaces:
IndicesRequest
,IndicesRequest.Replaceable
,Streamable
,Writeable
,TaskAwareRequest
public class RecoveryRequest extends BroadcastRequest<RecoveryRequest>
Request for recovery information
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
TransportRequest.Empty
-
Nested classes/interfaces inherited from interface org.elasticsearch.action.IndicesRequest
IndicesRequest.Replaceable
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.action.support.broadcast.BroadcastRequest
indices
-
-
Constructor Summary
Constructors Constructor Description RecoveryRequest()
Constructs a request for recovery information for all shardsRecoveryRequest(java.lang.String... indices)
Constructs a request for recovery information for all shards for the given indices
-
Method Summary
Modifier and Type Method Description boolean
activeOnly()
True if activeOnly flag is set, false otherwise.void
activeOnly(boolean activeOnly)
Set value of the activeOnly flag.boolean
detailed()
True if detailed flag is set, false otherwise.void
detailed(boolean detailed)
Set value of the detailed flag.void
readFrom(StreamInput in)
Set this object's fields from a StreamInput.void
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.-
Methods inherited from class org.elasticsearch.action.support.broadcast.BroadcastRequest
indices, indices, indicesOptions, indicesOptions, validate
-
Methods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResult
-
Methods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTask
-
Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
-
-
-
Constructor Detail
-
RecoveryRequest
public RecoveryRequest()
Constructs a request for recovery information for all shards
-
RecoveryRequest
public RecoveryRequest(java.lang.String... indices)
Constructs a request for recovery information for all shards for the given indices- Parameters:
indices
- Comma-separated list of indices about which to gather recovery information
-
-
Method Detail
-
detailed
public boolean detailed()
True if detailed flag is set, false otherwise. This value if false by default.- Returns:
- True if detailed flag is set, false otherwise
-
detailed
public void detailed(boolean detailed)
Set value of the detailed flag. Detailed requests will contain extra information such as a list of physical files and their recovery progress.- Parameters:
detailed
- Whether or not to set the detailed flag
-
activeOnly
public boolean activeOnly()
True if activeOnly flag is set, false otherwise. This value is false by default.- Returns:
- True if activeOnly flag is set, false otherwise
-
activeOnly
public void activeOnly(boolean activeOnly)
Set value of the activeOnly flag. If true, this request will only response with on-going recovery information.- Parameters:
activeOnly
- Whether or not to set the activeOnly flag.
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:Streamable
Write this object's fields to a StreamOutput.- Specified by:
writeTo
in interfaceStreamable
- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classBroadcastRequest<RecoveryRequest>
- Throws:
java.io.IOException
-
readFrom
public void readFrom(StreamInput in) throws java.io.IOException
Description copied from interface:Streamable
Set this object's fields from a StreamInput.- Specified by:
readFrom
in interfaceStreamable
- Overrides:
readFrom
in classBroadcastRequest<RecoveryRequest>
- Throws:
java.io.IOException
-
-