public class NIOConfiguration extends Object implements com.gigaspaces.config.lrmi.ITransportConfig, Cloneable, Externalizable
GenericExporter
,
Serialized FormConstructor and Description |
---|
NIOConfiguration()
Should not be used, only for externalizable.
|
NIOConfiguration(int minThreads,
int maxThreads,
int maxConnPool,
boolean isMultiplex,
String bindHostName,
String bindPort)
Deprecated.
|
NIOConfiguration(int minThreads,
int maxThreads,
int maxConnPool,
boolean isMultiplex,
String bindHostName,
String bindPort,
int threadsQueueSize,
int slowConsumerThroughput,
int slowConsumerLatency,
int slowConsumerRetries)
Deprecated.
|
NIOConfiguration(int minThreads,
int maxThreads,
int maxConnPool,
boolean isMultiplex,
String bindHostName,
String bindPort,
int threadsQueueSize,
int slowConsumerThroughput,
int slowConsumerLatency,
int slowConsumerRetries,
int readSelectorThreads,
String watchdogRequestTimeout,
String watchdogListeningTimeout,
String watchdogIdleConnectionTimeout,
long threadPoolIdleTimeout,
String socketConnectTimeout)
Deprecated.
|
NIOConfiguration(int minThreads,
int maxThreads,
int maxConnPool,
boolean isMultiplex,
String bindHostName,
String bindPort,
int readSelectorThreads,
String watchdogRequestTimeout,
String watchdogListeningTimeout,
String watchdogIdleConnectionTimeout,
long threadPoolIdleTimeout,
String socketConnectTimeout)
Deprecated.
|
NIOConfiguration(int minThreads,
int maxThreads,
int maxConnPool,
String bindHostName,
String bindPort) |
NIOConfiguration(int minThreads,
int maxThreads,
int maxConnPool,
String bindHostName,
String bindPort,
int threadsQueueSize,
int slowConsumerThroughput,
int slowConsumerLatency,
int slowConsumerRetries)
Deprecated.
|
NIOConfiguration(int minThreads,
int maxThreads,
int maxConnPool,
String bindHostName,
String bindPort,
int threadsQueueSize,
int slowConsumerThroughput,
int slowConsumerLatency,
int slowConsumerRetries,
int slowConsumerReadtimeout,
int readSelectorThreads,
String watchdogRequestTimeout,
String watchdogListeningTimeout,
String watchdogIdleConnectionTimeout,
long threadPoolIdleTimeout,
String socketConnectTimeout,
int systemPriorityQueueCapacity,
long systemPriorityThreadIdleTimeout,
int systemPriorityMinThreads,
int systemPriorityMaxThreads,
int customQueueCapacity,
long customThreadIdleTimeout,
int customMinThreads,
int customMaxThreads,
boolean protocolValidationEnabled)
Constructor.
|
NIOConfiguration(int minThreads,
int maxThreads,
int maxConnPool,
String bindHostName,
String bindPort,
int threadsQueueSize,
int slowConsumerThroughput,
int slowConsumerLatency,
int slowConsumerRetries,
int readSelectorThreads,
String watchdogRequestTimeout,
String watchdogListeningTimeout,
String watchdogIdleConnectionTimeout,
long threadPoolIdleTimeout,
String socketConnectTimeout)
Deprecated.
|
NIOConfiguration(int minThreads,
int maxThreads,
int maxConnPool,
String bindHostName,
String bindPort,
int readSelectorThreads,
String watchdogRequestTimeout,
String watchdogListeningTimeout,
String watchdogIdleConnectionTimeout,
long threadPoolIdleTimeout,
String socketConnectTimeout)
The most commonly used constructor through the services.config configuration file.
|
@Deprecated public NIOConfiguration(int minThreads, int maxThreads, int maxConnPool, boolean isMultiplex, String bindHostName, String bindPort)
public NIOConfiguration(int minThreads, int maxThreads, int maxConnPool, String bindHostName, String bindPort)
@Deprecated public NIOConfiguration(int minThreads, int maxThreads, int maxConnPool, boolean isMultiplex, String bindHostName, String bindPort, int readSelectorThreads, String watchdogRequestTimeout, String watchdogListeningTimeout, String watchdogIdleConnectionTimeout, long threadPoolIdleTimeout, String socketConnectTimeout)
public NIOConfiguration(int minThreads, int maxThreads, int maxConnPool, String bindHostName, String bindPort, int readSelectorThreads, String watchdogRequestTimeout, String watchdogListeningTimeout, String watchdogIdleConnectionTimeout, long threadPoolIdleTimeout, String socketConnectTimeout)
@Deprecated public NIOConfiguration(int minThreads, int maxThreads, int maxConnPool, boolean isMultiplex, String bindHostName, String bindPort, int threadsQueueSize, int slowConsumerThroughput, int slowConsumerLatency, int slowConsumerRetries, int readSelectorThreads, String watchdogRequestTimeout, String watchdogListeningTimeout, String watchdogIdleConnectionTimeout, long threadPoolIdleTimeout, String socketConnectTimeout)
@Deprecated public NIOConfiguration(int minThreads, int maxThreads, int maxConnPool, String bindHostName, String bindPort, int threadsQueueSize, int slowConsumerThroughput, int slowConsumerLatency, int slowConsumerRetries, int readSelectorThreads, String watchdogRequestTimeout, String watchdogListeningTimeout, String watchdogIdleConnectionTimeout, long threadPoolIdleTimeout, String socketConnectTimeout)
public NIOConfiguration(int minThreads, int maxThreads, int maxConnPool, String bindHostName, String bindPort, int threadsQueueSize, int slowConsumerThroughput, int slowConsumerLatency, int slowConsumerRetries, int slowConsumerReadtimeout, int readSelectorThreads, String watchdogRequestTimeout, String watchdogListeningTimeout, String watchdogIdleConnectionTimeout, long threadPoolIdleTimeout, String socketConnectTimeout, int systemPriorityQueueCapacity, long systemPriorityThreadIdleTimeout, int systemPriorityMinThreads, int systemPriorityMaxThreads, int customQueueCapacity, long customThreadIdleTimeout, int customMinThreads, int customMaxThreads, boolean protocolValidationEnabled)
minThreads
- Maintains thread pool in Client and Server that manage incoming remote requests.
The thread pool size is increased each time with one additional thread and shrinks when existing
threads are not used for 5 minutes. This parameter specifies the minimum size of this thread pool.maxThreads
- This parameter specifies the maximum size of this thread pool.
You should make sure the pool max size will accommodate the maximum number of concurrent
requests to the serverEndPoint.
When the pool is exhausted and all threads are consumed to process incoming requests,
additional requests will be blocked until existing requested processing will be completed.maxConnPool
- Client connection pool maximum size to server. Starts with 1 connection.bindHostName
- The host address the server socket is bound to.
Relevant for the multi-NIC environment. If null
resolves to the localhost IP address.bindPort
- the bind port used for incoming client requests.
The server port is set by default to 0, which means next free port.
This means that whenever the serverEndPoint is launched it allocates one of the available ports.
Define a specific port value to enforce a specific port for the serverEndPoint.threadsQueueSize
- Maintains thread pool queue size in Client and Server that manage incoming
remote requests. Once the queue sized is reached the incoming messages are blocked.slowConsumerThroughput
- a client that its network throughput doesn't reach this limit will be suspected
as slow.slowConsumerLatency
- a client that is suspected as slow that will not be recover
after this time will be disconnected.slowConsumerRetries
- the number of retries to recover a client that is suspected as slow.slowConsumerReadtimeout
- the allowed time to read a reply until it is considered slow consumingreadSelectorThreads
- LRMI number of read selector threads default = 1.watchdogRequestTimeout
- LRMI Watchdog request timeout.watchdogListeningTimeout
- LRMI Watchdog Listening timeout.watchdogIdleConnectionTimeout
- threadPoolIdleTimeout
- LRMI ThreadPool idle timeoutsocketConnectTimeout
- The timeout on lrmi socket connect.systemPriorityQueueCapacity
- TODOprotocolValidationEnabled
- TODOSystemProperties.LRMI_READ_SELECTOR_THREADS
,
SystemProperties.WATCHDOG_REQUEST_TIMEOUT_DEFAULT
,
SystemProperties.WATCHDOG_LISTENING_TIMEOUT_DEFAULT
@Deprecated public NIOConfiguration(int minThreads, int maxThreads, int maxConnPool, boolean isMultiplex, String bindHostName, String bindPort, int threadsQueueSize, int slowConsumerThroughput, int slowConsumerLatency, int slowConsumerRetries)
@Deprecated public NIOConfiguration(int minThreads, int maxThreads, int maxConnPool, String bindHostName, String bindPort, int threadsQueueSize, int slowConsumerThroughput, int slowConsumerLatency, int slowConsumerRetries)
public NIOConfiguration()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public static NIOConfiguration create()
public com.gigaspaces.config.lrmi.ITransportConfig clone()
public String getProtocolAdaptorClass()
getProtocolAdaptorClass
in interface com.gigaspaces.config.lrmi.ITransportConfig
public int getMinThreads()
getMinThreads
in interface com.gigaspaces.config.lrmi.ITransportConfig
public void setMinThreads(int minThreads)
public int getMaxThreads()
getMaxThreads
in interface com.gigaspaces.config.lrmi.ITransportConfig
public void setMaxThreads(int maxThreads)
public int getThreadsQueueSize()
getThreadsQueueSize
in interface com.gigaspaces.config.lrmi.ITransportConfig
public void setThreadsQueueSize(int threadsQueueSize)
public int getConnectionPoolSize()
getConnectionPoolSize
in interface com.gigaspaces.config.lrmi.ITransportConfig
public void setMaxConnPool(int maxConnPool)
public void setBindHost(String bindHostName)
public void setBindPort(String bindPort)
public void setBlockingConnection(boolean blockingConnection)
public int getMaxConnPool()
public String getBindPort()
public String getBindHostName()
public final String getProtocolName()
getProtocolName
in interface com.gigaspaces.config.lrmi.ITransportConfig
public boolean isBlockingConnection()
isBlockingConnection
in interface com.gigaspaces.config.lrmi.ITransportConfig
public int getSlowConsumerLatency()
getSlowConsumerLatency
in interface com.gigaspaces.config.lrmi.ITransportConfig
public void setSlowConsumerLatency(int slowConsumerLatency)
public int getSlowConsumerRetries()
getSlowConsumerRetries
in interface com.gigaspaces.config.lrmi.ITransportConfig
public void setSlowConsumerRetries(int slowConsumerRetries)
public int getSlowConsumerReadTimeout()
public void setSlowConsumerReadTimeout(int slowConsumerReadTimeout)
public int getSlowConsumerThroughput()
getSlowConsumerThroughput
in interface com.gigaspaces.config.lrmi.ITransportConfig
public void setSlowConsumerThroughput(int slowConsumerThroughput)
public int getReadSelectorThreads()
getReadSelectorThreads
in interface com.gigaspaces.config.lrmi.ITransportConfig
public int getSystemPriorityQueueCapacity()
getSystemPriorityQueueCapacity
in interface com.gigaspaces.config.lrmi.ITransportConfig
public long getSystemPriorityThreadIdleTimeout()
getSystemPriorityThreadIdleTimeout
in interface com.gigaspaces.config.lrmi.ITransportConfig
public int getSystemPriorityMinThreads()
public int getSystemPriorityMaxThreads()
public int getCustomQueueCapacity()
public long getCustomThreadIdleTimeout()
public int getCustomMinThreads()
public int getCustomMaxThreads()
public long getWatchdogRequestTimeout()
getWatchdogRequestTimeout
in interface com.gigaspaces.config.lrmi.ITransportConfig
public long getWatchdogListeningTimeout()
getWatchdogListeningTimeout
in interface com.gigaspaces.config.lrmi.ITransportConfig
public long getWatchdogIdleConnectionTimeout()
getWatchdogIdleConnectionTimeout
in interface com.gigaspaces.config.lrmi.ITransportConfig
public long getThreadPoolIdleTimeout()
getThreadPoolIdleTimeout
in interface com.gigaspaces.config.lrmi.ITransportConfig
public long getSocketConnectTimeout()
getSocketConnectTimeout
in interface com.gigaspaces.config.lrmi.ITransportConfig
public boolean isProtocolValidationEnabled()
Copyright © GigaSpaces.