public class GridDrReceiverHubConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DFLT_DIRECT_BUF
Default value of direct buffer allocation.
|
static long |
DFLT_FLUSH_FREQ
Default flush frequency DR data loader.
|
static long |
DFLT_IDLE_TIMEOUT
Default server socket idle timeout.
|
static int |
DFLT_LOCAL_PORT
Default server port.
|
static int |
DFLT_MSG_QUEUE_LIMIT
Default message queue limit per connection (for incoming and outgoing .
|
static int |
DFLT_PARALLEL_LOAD_OPS
Default per node parallel operations for DR data loader.
|
static int |
DFLT_PER_NODE_BUF_SIZE
Default per node buffer buffer size for DR data loader.
|
static int |
DFLT_SELECTOR_CNT
Default quantity of NIO threads responsible for sender hub connections processing.
|
static boolean |
DFLT_TCP_NODELAY
Default TCP_NODELAY flag value for server sockets.
|
static int |
DFLT_WORKER_THREAD_CNT
Default number of threads responsible for sender hub requests processing.
|
static long |
DFLT_WRITE_TIMEOUT
Default server socket write timeout.
|
| Constructor and Description |
|---|
GridDrReceiverHubConfiguration()
Default constructor.
|
GridDrReceiverHubConfiguration(GridDrReceiverHubConfiguration cfg)
Copying constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getFlushFrequency()
Gets data flush frequency.
|
long |
getIdleTimeout()
Gets idle timeout for receiver hub's TCP server connection.
|
String |
getLocalInboundHost()
Gets local host name receiver hub TCP server is bound to.
|
int |
getLocalInboundPort()
Gets local port receiver hub TCP server is bound to.
|
int |
getMessageQueueLimit()
Gets message queue limit for incoming and outgoing messages in receiver hub's TCP server.
|
int |
getPerNodeBufferSize()
Gets per-node data buffer size.
|
int |
getPerNodeParallelLoadOperations()
Gets per-node parallel load operations.
|
int |
getSelectorCount()
Gets amount of selector threads in receiver hub's TCP server.
|
int |
getWorkerThreads()
Gets amount of threads responsible for sender hub batches processing.
|
long |
getWriteTimeout()
Gets write timeout for receiver hub's TCP server connection.
|
boolean |
isDirectBuffer()
Gets direct buffer flag in receiver hub's TCP server.
|
boolean |
isTcpNodelay()
Gets TCP_NODELAY flag in receiver hub's TCP server.
|
void |
setDirectBuffer(boolean directBuf)
Sets direct buffer flag in receiver hub's TCP server.
|
void |
setFlushFrequency(long flushFreq)
Sets data flush frequency.
|
void |
setIdleTimeout(long idleTimeout)
Sets idle timeout for receiver hub's TCP server connection.
|
void |
setLocalInboundHost(String locInboundHost)
Sets local host name receiver hub TCP server is bound to.
|
void |
setLocalInboundPort(int locInboundPort)
Sets local port receiver hub TCP server is bound to.
|
void |
setMessageQueueLimit(int msgQueueLimit)
Sets message queue limit for incoming and outgoing messages in receiver hub's TCP server.
|
void |
setPerNodeBufferSize(int perNodeBufSize)
Sets per-node data buffer size.
|
void |
setPerNodeParallelLoadOperations(int perNodeParallelLoadOps)
Sets per-node parallel load operations.
|
void |
setSelectorCount(int selectorCnt)
Sets amount of selector threads in receiver hub's TCP server.
|
void |
setTcpNodelay(boolean tcpNodelay)
Sets TCP_NODELAY flag in receiver hub's TCP server.
|
void |
setWorkerThreads(int workerCnt)
Sets amount of threads responsible for sender hub batches processing.
|
void |
setWriteTimeout(long writeTimeout)
Sets write timeout for receiver hub's TCP server connection.
|
String |
toString() |
public static final int DFLT_LOCAL_PORT
public static final int DFLT_SELECTOR_CNT
public static final int DFLT_WORKER_THREAD_CNT
public static final int DFLT_MSG_QUEUE_LIMIT
public static final boolean DFLT_TCP_NODELAY
public static final boolean DFLT_DIRECT_BUF
public static final long DFLT_IDLE_TIMEOUT
public static final long DFLT_WRITE_TIMEOUT
public static final long DFLT_FLUSH_FREQ
public static final int DFLT_PER_NODE_BUF_SIZE
public static final int DFLT_PARALLEL_LOAD_OPS
public GridDrReceiverHubConfiguration()
public GridDrReceiverHubConfiguration(GridDrReceiverHubConfiguration cfg)
cfg - Configuration to copy.public String getLocalInboundHost()
If not set, GridConfiguration.getLocalHost() will be used.
Defaults to null.
public void setLocalInboundHost(String locInboundHost)
getLocalInboundHost() for more
information.locInboundHost - Local host name receiver hub TCP server is bound to.public int getLocalInboundPort()
Defaults to DFLT_LOCAL_PORT.
public void setLocalInboundPort(int locInboundPort)
getLocalInboundPort() for more information.locInboundPort - Local port receiver hub TCP server is bound to.public int getSelectorCount()
Defaults to DFLT_SELECTOR_CNT.
public void setSelectorCount(int selectorCnt)
getSelectorCount() for more
information.selectorCnt - Amount of selector threads in receiver hub's TCP server.public int getWorkerThreads()
Defaults to DFLT_WORKER_THREAD_CNT.
public void setWorkerThreads(int workerCnt)
getWorkerThreads() for
more information.workerCnt - Amount of threads responsible for sender hub batches processing.public int getMessageQueueLimit()
Defaults to DFLT_MSG_QUEUE_LIMIT.
public void setMessageQueueLimit(int msgQueueLimit)
getMessageQueueLimit() for more information.msgQueueLimit - Message queue limit for incoming and outgoing messages in receiver hub's TCP server.public boolean isTcpNodelay()
Defaults to DFLT_TCP_NODELAY.
public void setTcpNodelay(boolean tcpNodelay)
isTcpNodelay() for more information.tcpNodelay - TCP_NODELAY flag in receiver hub's TCP server.public boolean isDirectBuffer()
Defaults to DFLT_DIRECT_BUF.
public void setDirectBuffer(boolean directBuf)
isDirectBuffer() for more information.directBuf - Direct buffer flag in receiver hub's TCP server.public long getIdleTimeout()
Defaults to DFLT_IDLE_TIMEOUT.
public void setIdleTimeout(long idleTimeout)
getWriteTimeout() for more information.idleTimeout - Idle timeout for receiver hub's TCP server connection.public long getWriteTimeout()
Defaults to DFLT_WRITE_TIMEOUT.
public void setWriteTimeout(long writeTimeout)
getWriteTimeout() for more
information.writeTimeout - Write timeout for receiver hub's TCP server connection.public long getFlushFrequency()
Defaults to DFLT_FLUSH_FREQ.
public void setFlushFrequency(long flushFreq)
getFlushFrequency() for more information.flushFreq - Data flush frequency.public int getPerNodeBufferSize()
Defaults to DFLT_PER_NODE_BUF_SIZE.
public void setPerNodeBufferSize(int perNodeBufSize)
getPerNodeBufferSize() for more information.perNodeBufSize - Per-node data buffer size.public int getPerNodeParallelLoadOperations()
Defaults DFLT_PARALLEL_LOAD_OPS.
public void setPerNodeParallelLoadOperations(int perNodeParallelLoadOps)
getPerNodeParallelLoadOperations() for more information.perNodeParallelLoadOps - Per-node parallel load operationsCopyright © 2014. All rights reserved.