AckedRequest
, Streamable
, Writeable
, TaskAwareRequest
public class DeleteRepositoryRequest extends AcknowledgedRequest<DeleteRepositoryRequest>
The unregister repository command just unregisters the repository. No data is getting deleted from the repository.
TransportRequest.Empty
Writeable.Reader<V>, Writeable.Writer<V>
DEFAULT_ACK_TIMEOUT, timeout
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
Constructor | Description |
---|---|
DeleteRepositoryRequest() |
|
DeleteRepositoryRequest(java.lang.String name) |
Constructs a new unregister repository request with the provided name.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
name() |
The name of the repository.
|
DeleteRepositoryRequest |
name(java.lang.String name) |
Sets the name of the repository to unregister.
|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
ActionRequestValidationException |
validate() |
|
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
masterNodeTimeout
ackTimeout, timeout, timeout, timeout
getShouldStoreResult
masterNodeTimeout, masterNodeTimeout, masterNodeTimeout
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createTask, getDescription, setParentTask
remoteAddress, remoteAddress
getParentTask, setParentTask
public DeleteRepositoryRequest()
public DeleteRepositoryRequest(java.lang.String name)
name
- name of the repositorypublic ActionRequestValidationException validate()
validate
in class ActionRequest
public DeleteRepositoryRequest name(java.lang.String name)
name
- name of the repositorypublic java.lang.String name()
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class AcknowledgedRequest<DeleteRepositoryRequest>
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in interface Writeable
writeTo
in class AcknowledgedRequest<DeleteRepositoryRequest>
java.io.IOException