Module org.elasticsearch.server
Class GetRepositoriesRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.AbstractTransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.LegacyActionRequest
org.elasticsearch.action.support.master.MasterNodeRequest<GetRepositoriesRequest>
org.elasticsearch.action.support.master.MasterNodeReadRequest<GetRepositoriesRequest>
org.elasticsearch.action.admin.cluster.repositories.get.GetRepositoriesRequest
- All Implemented Interfaces:
Writeable,RefCounted,TaskAwareRequest,TransportRequest
Get repository request
-
Nested Class Summary
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.master.MasterNodeReadRequest
localFields inherited from class org.elasticsearch.action.support.master.MasterNodeRequest
INFINITE_MASTER_NODE_TIMEOUT, TRAPPY_IMPLICIT_DEFAULT_MASTER_NODE_TIMEOUTFields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
ConstructorsConstructorDescriptionGetRepositoriesRequest(TimeValue masterNodeTimeout, String[] repositories) Constructs a new get repositories request with a list of repositories. -
Method Summary
Modifier and TypeMethodDescriptionString[]The names of the repositories.repositories(String[] repositories) Sets the list or repositories.validate()voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.master.MasterNodeReadRequest
local, localMethods inherited from class org.elasticsearch.action.support.master.MasterNodeRequest
masterNodeTimeout, masterNodeTimeout, masterTermMethods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResultMethods inherited from class org.elasticsearch.transport.AbstractTransportRequest
getParentTask, getRequestId, remoteAddress, remoteAddress, setParentTask, setRequestId, toStringMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
decRef, hasReferences, incRef, mustIncRef, tryIncRefMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, createTask, getDescription, setParentTask
-
Constructor Details
-
GetRepositoriesRequest
Constructs a new get repositories request with a list of repositories.If the list of repositories is empty or it contains a single element "_all", all registered repositories are returned.
- Parameters:
repositories- list of repositories
-
GetRepositoriesRequest
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classMasterNodeReadRequest<GetRepositoriesRequest>- Throws:
IOException
-
validate
- Specified by:
validatein classActionRequest
-
repositories
The names of the repositories.- Returns:
- list of repositories
-
repositories
Sets the list or repositories.If the list of repositories is empty or it contains a single element "_all", all registered repositories are returned.
- Parameters:
repositories- list of repositories- Returns:
- this request
-