public class TcpMeta
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private org.jboss.netty.channel.ChannelFactory |
channelFactory |
private java.lang.String |
command
The command
|
private static org.slf4j.Logger |
logger
The logger.
|
static org.jboss.netty.channel.ChannelHandler |
stringDecoder |
static org.jboss.netty.channel.ChannelHandler |
stringEncoder |
private java.lang.Integer |
tcpConnectTimeoutMillis |
private java.lang.Integer |
tcpIdleTimeoutSec |
private java.lang.Integer |
tcpPort
The tcp port.
|
Constructor and Description |
---|
TcpMeta() |
TcpMeta(java.lang.String command,
int tcpPort,
int tcpConnectTimeoutMillis,
int tcpIdleTimeoutSec,
org.jboss.netty.channel.ChannelFactory channelFactory) |
Modifier and Type | Method and Description |
---|---|
org.jboss.netty.channel.ChannelFactory |
getChannelFactory() |
java.lang.String |
getCommand() |
int |
getTcpConnectTimeoutMillis() |
java.lang.Integer |
getTcpIdleTimeoutSec() |
int |
getTcpPort() |
void |
setChannelFactory(org.jboss.netty.channel.ChannelFactory channelFactory) |
void |
setCommand(java.lang.String command) |
void |
setTcpConnectTimeoutMillis(int tcpConnectTimeoutMillis) |
void |
setTcpIdleTimeoutSec(java.lang.Integer tcpIdleTimeoutSec) |
void |
setTcpPort(int tcpPort) |
boolean |
validation() |
private static org.slf4j.Logger logger
public static final org.jboss.netty.channel.ChannelHandler stringDecoder
public static final org.jboss.netty.channel.ChannelHandler stringEncoder
private java.lang.String command
private java.lang.Integer tcpPort
private java.lang.Integer tcpConnectTimeoutMillis
private java.lang.Integer tcpIdleTimeoutSec
private org.jboss.netty.channel.ChannelFactory channelFactory
public TcpMeta(java.lang.String command, int tcpPort, int tcpConnectTimeoutMillis, int tcpIdleTimeoutSec, org.jboss.netty.channel.ChannelFactory channelFactory)
public TcpMeta()
public boolean validation() throws ParallelTaskInvalidException
ParallelTaskInvalidException
public java.lang.String getCommand()
public void setCommand(java.lang.String command)
public int getTcpPort()
public void setTcpPort(int tcpPort)
public int getTcpConnectTimeoutMillis()
public void setTcpConnectTimeoutMillis(int tcpConnectTimeoutMillis)
public org.jboss.netty.channel.ChannelFactory getChannelFactory()
public void setChannelFactory(org.jboss.netty.channel.ChannelFactory channelFactory)
public java.lang.Integer getTcpIdleTimeoutSec()
public void setTcpIdleTimeoutSec(java.lang.Integer tcpIdleTimeoutSec)