Wednesday, May 11, 2011

Common Attributes Apache Tomcat Configuration



Common Attributes Apache Tomcat Configuration


Attribute Description
className Java class name of the implementation to use. This class must implement the org.apache.catalina.Server interface. If no class name is specified, the standard implementation will be used.

port The TCP/IP port number on which this server waits for a shutdown command. This connection must be initiated from the same server computer that is running this instance of Tomcat.

shutdown The command string that must be received via a TCP/IP connection to the specified port number, in order to shut down Tomcat.

Common Sender Attributes

Attribute Description
className Required, only available implementation is org.apache.catalina.tribes.transport.ReplicationTransmitter

Common Transport Attributes

Attribute                  Description
className              Required, an implementation of the org.apache.catalina.tribes.transport.MultiPointSender.
Non-blocking implementation is org.apache.catalina.tribes.transport.nio.PooledParallelSender
Blocking implementation is org.apache.catalina.tribes.transport.bio.PooledMultiSender

rxBufSize                The receive buffer size on the socket. Default value is 25188 bytes.

txBufSize                The send buffer size on the socket. Default value is 43800 bytes.

direct                      Possible values are true or false. Set to true if you want the receiver to use direct bytebuffers when reading data from the sockets. Default value is false

keepAliveCount     The number of requests that can go through the socket before the socket is closed, and reopened for the next request. The default value is -1, which is unlimited.

keepAliveTime      The number of milliseconds a connection is kept open after its been opened. The default value is -1, which is unlimited.

timeout                 Sets the SO_TIMEOUT option on the socket. The value is in milliseconds and the default value is 3000 milliseconds.

maxRetryAttempts    How many times do we retry a failed message, that received a IOException at the socket level. The default value is 1, meaning we will retry a message that has failed once. In other words, we will attempt a message send no more than twice. One is the original send, and one is the maxRetryAttempts.

ooBInline                 Boolean value for the socket OOBINLINE option. Possible values are true or false.

soKeepAlive            Boolean value for the socket SO_KEEPALIVE option. Possible values are true or false.

soLingerOn             Boolean value to determine whether to use the SO_LINGER socket option. Possible values are true or false. Default value is true.

soLingerTime         Sets the SO_LINGER socket option time value. The value is in seconds. The default value is 3 seconds.

soReuseAddress    Boolean value for the socket SO_REUSEADDR option. Possible values are true or false.

soTrafficClass        Sets the traffic class level for the socket, the value is between 0 and 255. Default value is int soTrafficClass = 0x04 | 0x08 | 0x010; Different values are defined in java.net.Socket#setTrafficClass(int).

tcpNoDelay           Boolean value for the socket TCP_NODELAY option. Possible values are true or false. The default value is true

throwOnFailedAck    Boolean value, default value is true. If set to true, the sender will throw a org.apache.catalina.tribes.RemoteProcessException when we receive a negative ack from the remote member. Set to false, and Tribes will treat a positive ack the same way as a negative ack, that the message was received.

No comments:

Post a Comment

 
THANK YOU FOR VISITING