public class TaskRequest
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
actorMaxOperationTimeoutSec
The actor max operation timeout sec.
|
private ParallecResponseHandler |
handler
The handler.
|
private java.lang.String |
host
The host.
|
private java.lang.String |
hostUniform
The host uniform.
|
private java.util.Map<java.lang.String,java.lang.String> |
httpHeaderMap
The http header map.
|
private HttpMethod |
httpMethod
The http method.
|
private static org.slf4j.Logger |
logger
The logger.
|
private PingMeta |
pingMeta
The ping meta.
|
private boolean |
pollable
The pollable.
|
private int |
port
The port.
|
private RequestProtocol |
protocol
The protocol.
|
private java.lang.String |
requestContent
The request content.
|
private java.lang.String |
resourcePath
The resource path.
|
private java.util.Map<java.lang.String,java.lang.Object> |
responseContext
The response context.
|
private ResponseHeaderMeta |
responseHeaderMeta
The response header meta.
|
private SshMeta |
sshMeta
The ssh meta.
|
private TcpMeta |
tcpMeta
The tcp meta.
|
private UdpMeta |
udpMeta
The tcp meta.
|
Constructor and Description |
---|
TaskRequest(int actorMaxOperationTimeoutSec,
RequestProtocol protocol,
java.lang.String host,
java.lang.String hostUniform,
int port,
java.lang.String resourcePath,
java.lang.String requestContent,
HttpMethod httpMethod,
boolean pollable,
java.util.Map<java.lang.String,java.lang.String> httpHeaderMap,
ParallecResponseHandler handler,
java.util.Map<java.lang.String,java.lang.Object> responseContext,
SshMeta sshMeta,
TcpMeta tcpMeta,
UdpMeta udpMeta,
PingMeta pingMeta,
ResponseHeaderMeta responseHeaderMeta)
Instantiates a new task request.
|
Modifier and Type | Method and Description |
---|---|
int |
getActorMaxOperationTimeoutSec()
Gets the actor max operation timeout sec.
|
ParallecResponseHandler |
getHandler()
Gets the handler.
|
java.lang.String |
getHost()
Gets the host.
|
java.lang.String |
getHostUniform()
Gets the host uniform.
|
java.util.Map<java.lang.String,java.lang.String> |
getHttpHeaderMap()
Gets the http header map.
|
HttpMethod |
getHttpMethod()
Gets the http method.
|
PingMeta |
getPingMeta()
Gets the ping meta.
|
int |
getPort()
Gets the port.
|
java.lang.String |
getPostData()
Gets the post data.
|
RequestProtocol |
getProtocol()
Gets the protocol.
|
java.lang.String |
getRequestContent()
Gets the request content.
|
java.lang.String |
getResourcePath()
Gets the resource path.
|
java.util.Map<java.lang.String,java.lang.Object> |
getResponseContext()
Gets the response context.
|
ResponseHeaderMeta |
getResponseHeaderMeta()
Gets the response header meta.
|
SshMeta |
getSshMeta()
Gets the ssh meta.
|
TcpMeta |
getTcpMeta()
Gets the tcp meta.
|
UdpMeta |
getUdpMeta()
Gets the udp meta.
|
boolean |
isPollable()
Checks if is pollable.
|
java.lang.String |
toString() |
private static org.slf4j.Logger logger
private final int actorMaxOperationTimeoutSec
private final java.lang.String resourcePath
private final java.lang.String requestContent
private final HttpMethod httpMethod
private final boolean pollable
private final java.util.Map<java.lang.String,java.lang.String> httpHeaderMap
private final RequestProtocol protocol
private final java.lang.String host
private final java.lang.String hostUniform
private final int port
private final SshMeta sshMeta
private final TcpMeta tcpMeta
private final UdpMeta udpMeta
private final PingMeta pingMeta
private final ParallecResponseHandler handler
private final java.util.Map<java.lang.String,java.lang.Object> responseContext
private final ResponseHeaderMeta responseHeaderMeta
public TaskRequest(int actorMaxOperationTimeoutSec, RequestProtocol protocol, java.lang.String host, java.lang.String hostUniform, int port, java.lang.String resourcePath, java.lang.String requestContent, HttpMethod httpMethod, boolean pollable, java.util.Map<java.lang.String,java.lang.String> httpHeaderMap, ParallecResponseHandler handler, java.util.Map<java.lang.String,java.lang.Object> responseContext, SshMeta sshMeta, TcpMeta tcpMeta, UdpMeta udpMeta, PingMeta pingMeta, ResponseHeaderMeta responseHeaderMeta)
actorMaxOperationTimeoutSec
- the actor max operation timeout secprotocol
- the protocolhost
- the hosthostUniform
- the host uniformport
- the portresourcePath
- the resource pathrequestContent
- the request contenthttpMethod
- the http methodpollable
- the pollablehttpHeaderMap
- the http header maphandler
- the handlerresponseContext
- the response contextsshMeta
- the ssh metatcpMeta
- the tcp metaudpMeta
- the udp metapingMeta
- the ping metaresponseHeaderMeta
- the response header metapublic java.lang.String getResourcePath()
public HttpMethod getHttpMethod()
public java.lang.String getPostData()
public java.lang.String getRequestContent()
public boolean isPollable()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Map<java.lang.String,java.lang.String> getHttpHeaderMap()
public RequestProtocol getProtocol()
public java.lang.String getHost()
public java.lang.String getHostUniform()
public int getPort()
public SshMeta getSshMeta()
public int getActorMaxOperationTimeoutSec()
public TcpMeta getTcpMeta()
public PingMeta getPingMeta()
public ParallecResponseHandler getHandler()
public java.util.Map<java.lang.String,java.lang.Object> getResponseContext()
public UdpMeta getUdpMeta()
public ResponseHeaderMeta getResponseHeaderMeta()