public class GetRepositoriesRequest extends MasterNodeReadRequest<GetRepositoriesRequest>
TransportRequest.Empty
local
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
Constructor and Description |
---|
GetRepositoriesRequest() |
GetRepositoriesRequest(java.lang.String[] repositories)
Constructs a new get repositories request with a list of repositories.
|
Modifier and Type | Method and Description |
---|---|
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
java.lang.String[] |
repositories()
The names of the repositories.
|
GetRepositoriesRequest |
repositories(java.lang.String[] repositories)
Sets the list or repositories.
|
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
local, local
masterNodeTimeout, masterNodeTimeout, masterNodeTimeout
getShouldStoreResult
getParentTask, setParentTask
remoteAddress, remoteAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createTask, getDescription, setParentTask
public GetRepositoriesRequest()
public GetRepositoriesRequest(java.lang.String[] repositories)
If the list of repositories is empty or it contains a single element "_all", all registered repositories are returned.
repositories
- list of repositoriespublic ActionRequestValidationException validate()
validate
in class ActionRequest
public java.lang.String[] repositories()
public GetRepositoriesRequest repositories(java.lang.String[] repositories)
If the list of repositories is empty or it contains a single element "_all", all registered repositories are returned.
repositories
- list of repositoriespublic void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class MasterNodeReadRequest<GetRepositoriesRequest>
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class MasterNodeReadRequest<GetRepositoriesRequest>
java.io.IOException