public abstract class MasterNodeRequest<T extends MasterNodeRequest<T>> extends ChildTaskActionRequest<T>
TransportRequest.Empty
Modifier and Type | Field and Description |
---|---|
static TimeValue |
DEFAULT_MASTER_NODE_TIMEOUT |
protected TimeValue |
masterNodeTimeout |
headers
Modifier | Constructor and Description |
---|---|
protected |
MasterNodeRequest() |
protected |
MasterNodeRequest(ActionRequest request) |
Modifier and Type | Method and Description |
---|---|
TimeValue |
masterNodeTimeout() |
T |
masterNodeTimeout(String timeout)
A timeout value in case the master has not been discovered yet or disconnected.
|
T |
masterNodeTimeout(TimeValue timeout)
A timeout value in case the master has not been discovered yet or disconnected.
|
void |
readFrom(StreamInput in) |
void |
writeTo(StreamOutput out) |
createTask, createTask, setParentTask
validate
getDescription
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
public static final TimeValue DEFAULT_MASTER_NODE_TIMEOUT
protected TimeValue masterNodeTimeout
protected MasterNodeRequest()
protected MasterNodeRequest(ActionRequest request)
public final T masterNodeTimeout(TimeValue timeout)
public final T masterNodeTimeout(String timeout)
public final TimeValue masterNodeTimeout()
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class ChildTaskActionRequest<T extends MasterNodeRequest<T>>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class ChildTaskActionRequest<T extends MasterNodeRequest<T>>
IOException
Copyright © 2009–2017. All rights reserved.