<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!DOCTYPE mbeans-descriptors PUBLIC
   "-//Apache Software Foundation//DTD Model MBeans Configuration File"
   "http://jakarta.apache.org/commons/dtds/mbeans-descriptors.dtd">
<mbeans-descriptors>

  <mbean         name="SimpleTcpCluster"
           description="Tcp Cluster implementation"
               domain="Catalina"
                group="Cluster"
                 type="org.apache.catalina.cluster.tcp.SimpleTcpCluster">
    <attribute   name="info"
          description="Class version info"
                 type="java.lang.String"
                 writeable="false"/>
    <attribute   name="notifyLifecycleListenerOnFailure"
          description="notify lifecycleListener from message transfer failure"
			     is="true"
                 type="boolean"/>                 
    <attribute   name="clusterName"
          description="name of cluster"
                 type="java.lang.String"/>
    <attribute   name="managerClassName"
          description="session mananager classname"
                 type="java.lang.String"/>
    <attribute   name="clusterLogName"
          description="Name of cluster transfer log device"
                 type="java.lang.String"/>
    <attribute   name="doClusterLog"
			     is="true"
          description="enable cluster log transfer logging"
                 type="boolean"/>
    <operation   name="setProperty"
               description="set a property to all cluster managers (with prefix 'manager.')"
               impact="ACTION"
               returnType="void">
      <parameter name="key"
                 description="Property name"
                 type="java.lang.String"/>
      <parameter name="value"
                 description="Property value"
                 type="java.lang.String"/>
    </operation>

    <operation   name="send"
               description="send message to all cluster members"
               impact="ACTION"
               returnType="void">
      <parameter name="message"
                 description="replication message"
                 type="org.apache.catalina.cluster.ClusterMessage"/>
    </operation>
    
    <operation   name="sendClusterDomain"
               description="send message to all cluster members with same domain"
               impact="ACTION"
               returnType="void">
      <parameter name="message"
                 description="replication message"
                 type="org.apache.catalina.cluster.ClusterMessage"/>
    </operation>
        
    <operation   name="sendToMember"
               description="send message to one cluster member"
               impact="ACTION"
               returnType="void">
      <parameter name="message"
                 description="replication message"
                 type="org.apache.catalina.cluster.ClusterMessage"/>
      <parameter name="member"
                 description="cluster member"
                 type="java.lang.String"/>
    </operation>

    <operation   name="start"
               description="Start the cluster"
               impact="ACTION"
               returnType="void">
    </operation>
    
    <operation name="stop"
               description="Stop the cluster"
               impact="ACTION"
               returnType="void">
    </operation>
                 
  </mbean>

  <mbean         name="ReplicationListener"
           description="Tcp Cluster ReplicationListener implementation"
               domain="Catalina"
                group="Cluster"
                 type="org.apache.catalina.cluster.tcp.ReplicationListener">
    <attribute   name="info"
          description="Class version info"
                 type="java.lang.String"
                 writeable="false"/>
    <attribute   name="tcpListenAddress"
          description="tcp listener address"
                 type="java.lang.String"/>
    <attribute   name="tcpListenPort"
          description="tcp listener port"
                 type="int"/>
    <attribute   name="tcpThreadCount"
          description="number of tcp listener worker threads"
                 type="int"/>
    <attribute   name="tcpSelectorTimeout"
          description="tcp listener Selector timeout (msec)"
                 type="long"/>
    <attribute   name="soTrafficClass"
          description="traffic class (default 0x04 | 0x08 | 0x010)"
                 type="int"/>
    <attribute   name="rxBufSize"
          description="receiver buffer size (default 43800)"
                 type="int"/>
    <attribute   name="txBufSize"
          description="send buffer size (default 25188)"
                 type="int"/>
    <attribute   name="tcpNoDelay"
          description="set tcpNoDelay (default true)"
			     is="true"
                 type="boolean" />
    <attribute   name="soKeepAlive"
          description="set soKeepAlive (default false)"
			     is="true"
                 type="boolean" />
    <attribute   name="ooBInline"
          description="set ooBInline (default true)"
			     is="true"
                 type="boolean" />
    <attribute   name="soReuseAddress"
          description="set soReuseAddress (default true)"
			     is="true"
                 type="boolean" />
    <attribute   name="soLingerOn"
          description="set soLingerOn (default false)"
			     is="true"
                 type="boolean" />             
    <attribute   name="soLingerTime"
          description="if soLingerOn use soLingerTime (default 3 msec)"
                 type="int"/>
    <attribute   name="timeout"
          description="soTimeout and acknowledge timeout (default no timeout (-1), use msec)"
                 type="long"/>
    <attribute   name="nrOfMsgsReceived"
          description="number of messages received from other nodes"
                 type="long"
                 writeable="false"/>
    <attribute   name="receivedTime"
          description="total time message send time"
                 type="long"
                 writeable="false"/>
    <attribute   name="receivedProcessingTime"
          description="received processing time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="minReceivedProcessingTime"
          description="minimal received processing time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="avgReceivedProcessingTime"
          description="received processing time / nrOfRequests (msec)"
                 type="double"
                 writeable="false"/>
    <attribute   name="maxReceivedProcessingTime"
          description="maximal received processing time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="doReceivedProcessingStats"
          description="create received processing time stats"
			     is="true"
                 type="boolean" />                
    <attribute   name="avgTotalReceivedBytes"
          description="received totalReceivedBytes / nrOfMsgsReceived (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="totalReceivedBytes"
          description="number of bytes received"
                 type="long"
                 writeable="false"/>
    <attribute   name="sendAck"
          description="send ack after data received"
			     is="true"
                 type="boolean"
                 writeable="false" />
    <attribute   name="compress"
          description="data received compressed"
			     is="true"
                 type="boolean"
                 writeable="false" />
    <attribute   name="doListen"
          description="is port really started"
			     is="true"
                 type="boolean"
                 writeable="false" />
                 
	<operation name="resetStatistics"
               description="Reset all statistics"
               impact="ACTION"
               returnType="void">
    </operation>	

    <operation   name="start"
               description="Start the cluster"
               impact="ACTION"
               returnType="void">
    </operation>
    
    <operation name="stop"
               description="Stop the cluster"
               impact="ACTION"
               returnType="void">
    </operation>
                 
  </mbean>

  <mbean         name="SocketReplicationListener"
           description="Tcp Cluster SocketReplicationListener implementation"
               domain="Catalina"
                group="Cluster"
                 type="org.apache.catalina.cluster.tcp.SocketReplicationListener">
    <attribute   name="info"
          description="Class version info"
                 type="java.lang.String"
                 writeable="false"/>
    <attribute   name="tcpListenAddress"
          description="tcp listener address"
                 type="java.lang.String"/>
    <attribute   name="tcpListenPort"
          description="tcp listener port"
                 type="int"/>
    <attribute   name="tcpListenMaxPort"
          description="max tcp listen used port"
                 type="int"/>
    <attribute   name="tcpListenTimeout"
          description="max tcp listen timeout (sec) wait for ServerSocket start"
                 type="int"/>                
    <attribute   name="nrOfMsgsReceived"
          description="number of messages received from other nodes"
                 type="long"
                 writeable="false"/>
    <attribute   name="soTrafficClass"
          description="traffic class (default 0x04 | 0x08 | 0x010)"
                 type="int"/>
    <attribute   name="rxBufSize"
          description="receiver buffer size (default 43800)"
                 type="int"/>
    <attribute   name="txBufSize"
          description="send buffer size (default 25188)"
                 type="int"/>
    <attribute   name="tcpNoDelay"
          description="set tcpNoDelay (default true)"
			     is="true"
                 type="boolean" />
    <attribute   name="soKeepAlive"
          description="set soKeepAlive (default false)"
			     is="true"
                 type="boolean" />
    <attribute   name="ooBInline"
          description="set ooBInline (default true)"
			     is="true"
                 type="boolean" />
    <attribute   name="soReuseAddress"
          description="set soReuseAddress (default true)"
			     is="true"
                 type="boolean" />
    <attribute   name="soLingerOn"
          description="set soLingerOn (default false)"
			     is="true"
                 type="boolean" />             
    <attribute   name="soLingerTime"
          description="if soLingerOn use soLingerTime (default 3 msec)"
                 type="int"/>
    <attribute   name="timeout"
          description="soTimeout and acknowledge timeout (default no timeout (-1), use msec)"
                 type="long"/>
    <attribute   name="receivedTime"
          description="total time message send time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="receivedProcessingTime"
          description="received processing time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="minReceivedProcessingTime"
          description="minimal received processing time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="avgReceivedProcessingTime"
          description="received processing time / nrOfRequests (msec)"
                 type="double"
                 writeable="false"/>
    <attribute   name="maxReceivedProcessingTime"
          description="maximal received processing time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="doReceivedProcessingStats"
          description="create received processing time stats"
			     is="true"
                 type="boolean" />                
    <attribute   name="avgTotalReceivedBytes"
          description="received totalReceivedBytes / nrOfMsgsReceived (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="totalReceivedBytes"
          description="number of bytes received"
                 type="long"
                 writeable="false"/>
    <attribute   name="sendAck"
          description="send ack after data received"
			     is="true"
                 type="boolean"
                 writeable="false" />
   <attribute   name="compress"
          description="data received compressed"
			     is="true"
                 type="boolean"
                 writeable="false" />
   <attribute   name="doListen"
          description="is port really started"
			     is="true"
                 type="boolean"
                 writeable="false" />
                 
	<operation name="resetStatistics"
               description="Reset all statistics"
               impact="ACTION"
               returnType="void">
    </operation>	

    <operation   name="start"
               description="Start the cluster"
               impact="ACTION"
               returnType="void">
    </operation>
    
    <operation name="stop"
               description="Stop the cluster"
               impact="ACTION"
               returnType="void">
    </operation>
                 
  </mbean>
  
  <mbean         name="ReplicationTransmitter"
          description="Tcp replication transmitter"
               domain="Catalina"
                group="ClusterSender"
                 type="org.apache.catalina.cluster.tcp.ReplicationTransmitter">
    <attribute   name="info"
          description="Class version info"
                 type="java.lang.String"
                 writeable="false"/>
    <attribute   name="replicationMode"
          description="replication mode (synchnous,pooled.asynchnous,fastasyncqueue)"
                 type="java.lang.String"/>
    <attribute   name="ackTimeout"
          description="acknowledge timeout (msec)"
                 type="long"/>
    <attribute   name="autoConnect"
          description="is sender disabled, fork a new socket"
			     is="true"
                 type="boolean" />
    <attribute   name="waitForAck"
          description="Wait for ack after data send"
			     is="true"
                 type="boolean"
                 writeable="false" />
    <attribute   name="processingTime"
          description="sending processing time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="minProcessingTime"
          description="minimal sending processing time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="avgProcessingTime"
          description="processing time / nrOfRequests (msec)"
                 type="double"
                 writeable="false"/>
    <attribute   name="maxProcessingTime"
          description="maximal sending processing time  (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="doTransmitterProcessingStats"
          description="create processing time stats"
			     is="true"
                 type="boolean" />                
    <attribute   name="nrOfRequests"
          description="number of send messages to other members"
                 type="long"
                 writeable="false"/>
    <attribute   name="totalBytes"
          description="number of bytes transfered"
                 type="long"
                 writeable="false"/>
    <attribute   name="failureCounter"
          description="number of wrong transfers"
                 type="long"
                 writeable="false"/>
	<attribute name="senderObjectNames"
               description="get all sender object names"
               type="[Ljavax.management.ObjectName;"
               writeable="false"/>
    <operation   name="start"
               description="Start the cluster"
               impact="ACTION"
               returnType="void">
    </operation>    
    <operation name="stop"
               description="Stop the cluster"
               impact="ACTION"
               returnType="void">
    </operation>
	<operation name="resetStatistics"
               description="Reset all statistics"
               impact="ACTION"
               returnType="void">
    </operation>	
	<operation name="checkKeepAlive"
               description="Check all sender connection for close socket (keepalive)"
               impact="ACTION"
               returnType="void">
    </operation>
  </mbean>

  <mbean         name="AsyncSocketSender"
          description="Async Cluster Sender"
               domain="Catalina"
                group="IDataSender"
                 type="org.apache.catalina.cluster.tcp.AsyncSocketSender">
    <attribute   name="info"
          description="Class version info"
                 type="java.lang.String"
                 writeable="false"/>
    <attribute   name="address"
          description="sender ip address"
                 type="java.net.InetAddress"
                 writeable="false"/>
    <attribute   name="port"
          description="sender port"
                 type="int"
                 writeable="false" />
    <attribute   name="suspect"
          description="Socket is gone"
                 type="boolean"/>
    <attribute   name="waitForAck"
          description="Wait for ack after data send"
			     is="true"
                 type="boolean"
                 writeable="false"/>
    <attribute   name="txBufSize"
          description="send buffer size (default 43800)"
                 type="int"/>
    <attribute   name="tcpNoDelay"
          description="set tcpNoDelay (default true)"
			     is="true"
                 type="boolean" />
    <attribute   name="soKeepAlive"
          description="set soKeepAlive (default false)"
			     is="true"
                 type="boolean" />
    <attribute   name="ooBInline"
          description="set ooBInline (default true)"
			     is="true"
                 type="boolean" />
    <attribute   name="soReuseAddress"
          description="set soReuseAddress (default true)"
			     is="true"
                 type="boolean" />
    <attribute   name="soLingerOn"
          description="set soLingerOn (default false)"
			     is="true"
                 type="boolean" />             
    <attribute   name="soLingerTime"
          description="if soLingerOn use soLingerTime (default 3 msec)"
                 type="int"/>
    <attribute   name="timeout"
          description="connect and acknowledge timeout (default 30000 msec)"
                 type="long"/>
    <attribute   name="ackTimeout"
          description="acknowledge timeout acknowledge timeout (deprecated use timeout)"
                 type="long"/>                 
    <attribute   name="avgMessageSize"
                 writeable="false"
          description="avg message size (totalbytes/nrOfRequests)"
                 type="long"/>
    <attribute   name="queueSize"
                 writeable="false"
          description="queue size"
                 type="int"/>
    <attribute   name="queuedNrOfBytes"
                 writeable="false"
          description="number of bytes over all queued messages"
                 type="long"/>
    <attribute   name="messageTransferStarted"
          description="message is in transfer"
                 type="boolean"
                 is="true"
                 writeable="false"/>
    <attribute   name="keepAliveTimeout"
          description="active socket keep alive timeout (msec)"
                 type="long"/>
    <attribute   name="keepAliveMaxRequestCount"
          description="max request over this socket"
                 type="int"/>
    <attribute   name="keepAliveCount"
          description="keep Alive request count"
                 type="int"
                 writeable="false"/>
    <attribute   name="keepAliveConnectTime"
          description="Connect time for keep alive (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="resend"
          description="after send failure make a resend"
			     is="true"
                 type="boolean" />
    <attribute   name="connected"
                 is="true"
          description="socket connected"
                 type="boolean"
                 writeable="false"/>
    <attribute   name="nrOfRequests"
          description="number of send messages to other members"
                 type="long"
                 writeable="false"/>
    <attribute   name="totalBytes"
          description="number of bytes transfered"
                 type="long"
                 writeable="false"/>
    <attribute   name="processingTime"
          description="sending processing time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="minProcessingTime"
          description="minimal sending processing time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="avgProcessingTime"
          description="processing time / nrOfRequests (msec)"
                 type="double"
                 writeable="false"/>
    <attribute   name="maxProcessingTime"
          description="maximal sending processing time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="doProcessingStats"
          description="create processing time stats"
			     is="true"
                 type="boolean" />
    <attribute   name="waitAckTime"
          description="sending waitAck time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="minWaitAckTime"
          description="minimal sending waitAck time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="avgWaitAckTime"
          description="waitAck time / nrOfRequests (msec)"
                 type="double"
                 writeable="false"/>
    <attribute   name="maxWaitAckTime"
          description="maximal sending waitAck time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="doWaitAckStats"
          description="create waitAck time stats"
			     is="true"
                 type="boolean" />
    <attribute   name="connectCounter"
          description="counts connects"
                 type="long"
                 writeable="false"/>
    <attribute   name="disconnectCounter"
          description="counts disconnects"
                 type="long"
                 writeable="false"/>
    <attribute   name="socketOpenCounter"
          description="counts open socket (KeepAlive and connects)"
                 type="long"
                 writeable="false"/>
    <attribute   name="socketOpenFailureCounter"
          description="counts open socket failures"
                 type="long"
                 writeable="false"/>                 				 
    <attribute   name="socketCloseCounter"
          description="counts closed socket (KeepAlive and disconnects)"
                 type="long"
                 writeable="false"/>
    <attribute   name="missingAckCounter"
          description="counts missing ack"
                 type="long"
                 writeable="false"/>
    <attribute   name="dataResendCounter"
          description="counts data resends"
                 type="long"
                 writeable="false"/>
    <attribute   name="dataFailureCounter"
          description="counts data send failures"
                 type="long"
                 writeable="false"/>
    <attribute   name="inQueueCounter"
          description="counts all queued messages"
                 type="long"
                 writeable="false"/>
    <attribute   name="outQueueCounter"
          description="counts all successfully sended messages"
                 type="long"
                 writeable="false"/>
	<operation name="connect"
               description="connect to other replication node"
               impact="ACTION"
               returnType="void">
    </operation>
	<operation name="disconnect"
               description="disconnect to other replication node"
               impact="ACTION"
               returnType="void">
    </operation>
	<operation name="checkKeepAlive"
               description="Check connection for close socket"
               impact="ACTION"
               returnType="boolean">
    </operation>
	<operation name="resetStatistics"
               description="Reset all statistics"
               impact="ACTION"
               returnType="void">
    </operation>
				 
  </mbean>

 <mbean         name="FastAsyncSocketSender"
          description="Fast Async Cluster Sender"
               domain="Catalina"
                group="IDataSender"
                 type="org.apache.catalina.cluster.tcp.FastAsyncSocketSender">
    <attribute   name="info"
          description="Class version info"
                 type="java.lang.String"
                 writeable="false"/>
    <attribute   name="threadPriority"
          description="change queue thread priority"
                 type="int"/>                 
    <attribute   name="address"
          description="sender ip address"
                 type="java.net.InetAddress"
                 writeable="false"/>
    <attribute   name="port"
          description="sender port"
                 type="int"
                 writeable="false" />
    <attribute   name="suspect"
          description="Socket is gone"
                 type="boolean"/>
    <attribute   name="waitForAck"
          description="Wait for ack after data send"
			     is="true"
                 type="boolean"
                 writeable="false"/>
    <attribute   name="soTrafficClass"
          description="traffic class (default 0x04 | 0x08 | 0x010)"
                 type="int"/>
    <attribute   name="rxBufSize"
          description="receiver buffer size (default 25188)"
                 type="int"/>
    <attribute   name="txBufSize"
          description="send buffer size (default 43800)"
                 type="int"/>
    <attribute   name="tcpNoDelay"
          description="set tcpNoDelay (default true)"
			     is="true"
                 type="boolean" />
    <attribute   name="soKeepAlive"
          description="set soKeepAlive (default false)"
			     is="true"
                 type="boolean" />
    <attribute   name="ooBInline"
          description="set ooBInline (default true)"
			     is="true"
                 type="boolean" />
    <attribute   name="soReuseAddress"
          description="set soReuseAddress (default true)"
			     is="true"
                 type="boolean" />
    <attribute   name="soLingerOn"
          description="set soLingerOn (default false)"
			     is="true"
                 type="boolean" />             
    <attribute   name="soLingerTime"
          description="if soLingerOn use soLingerTime (default 3)"
                 type="int"/>
    <attribute   name="timeout"
          description="connect and acknowledge timeout (default 30000 msec)"
                 type="int"/>
    <attribute   name="ackTimeout"
          description="acknowledge timeout (deprecated use timeout)"
                 type="long"/>
    <attribute   name="avgMessageSize"
                 writeable="false"
          description="avg message size (totalbytes/nrOfRequests) (msec)"
                 type="long" />
    <attribute   name="queueSize"
                 writeable="false"
          description="queue size"
                 type="int"/>
    <attribute   name="queuedNrOfBytes"
                 writeable="false"
          description="number of bytes over all queued messages"
                 type="long"/>
    <attribute   name="messageTransferStarted"
          description="message is in transfer"
                 type="boolean"
                 is="true"
                 writeable="false"/>
    <attribute   name="keepAliveTimeout"
          description="active socket keep alive timeout (msec)"
                 type="long"/>
    <attribute   name="keepAliveMaxRequestCount"
          description="max request over this socket"
                 type="int"/>
    <attribute   name="queueAddWaitTimeout"
          description="add wait timeout (default 10000 msec)"
                 type="long"/>
    <attribute   name="queueRemoveWaitTimeout"
          description="remove wait timeout (default 30000 msec)"
                 type="long"/>
    <attribute   name="maxQueueLength"
          description="max queue length"
                 type="int"/>
    <attribute   name="queueTimeWait"
          description="remember queue wait times (msec)"
                 is="true"
                 type="boolean"/>
    <attribute   name="queueCheckLock"
          description="check to lost locks"
                 is="true"
                 type="boolean"/>
    <attribute   name="queueDoStats"
          description="activated queue stats"
                 is="true"
                 type="boolean"/>
    <attribute   name="keepAliveCount"
          description="keep Alive request count"
                 type="int"
                 writeable="false"/>
    <attribute   name="keepAliveConnectTime"
          description="Connect time for keep alive (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="resend"
          description="after send failure make a resend (default true)"
			     is="true"
                 type="boolean" />
    <attribute   name="recoverTimeout"
          description="recover Timeout after push message failure (default 5000 msec)"
                 type="long" />
    <attribute   name="recoverCounter"
          description="number of recover tries (default 0 - means off)"
                 type="int" />
    <attribute   name="connected"
                 is="true"
          description="socket connected"
                 type="boolean"
                 writeable="false"/>
    <attribute   name="nrOfRequests"
          description="number of send messages to other members"
                 type="long"
                 writeable="false"/>
    <attribute   name="totalBytes"
          description="number of bytes transfered"
                 type="long"
                 writeable="false"/>
    <attribute   name="processingTime"
          description="sending processing time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="minProcessingTime"
          description="minimal sending processing time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="avgProcessingTime"
          description="processing time / nrOfRequests (msec)"
                 type="double"
                 writeable="false"/>
    <attribute   name="maxProcessingTime"
          description="maximal sending processing time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="doProcessingStats"
          description="create Processing time stats"
			     is="true"
                 type="boolean" />                 
    <attribute   name="waitAckTime"
          description="sending waitAck time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="minWaitAckTime"
          description="minimal sending waitAck time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="avgWaitAckTime"
          description="waitAck time / nrOfRequests (msec)"
                 type="double"
                 writeable="false"/>
    <attribute   name="maxWaitAckTime"
          description="maximal sending waitAck time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="doWaitAckStats"
          description="create waitAck time stats"
			     is="true"
                 type="boolean" />
    <attribute   name="connectCounter"
          description="counts connects"
                 type="long"
                 writeable="false"/>
    <attribute   name="disconnectCounter"
          description="counts disconnects"
                 type="long"
                 writeable="false"/>
    <attribute   name="socketOpenCounter"
          description="counts open socket (KeepAlive and connects)"
                 type="long"
                 writeable="false"/>				 
    <attribute   name="socketOpenFailureCounter"
          description="counts open socket failures"
                 type="long"
                 writeable="false"/>                 				 
    <attribute   name="socketCloseCounter"
          description="counts closed socket (KeepAlive and disconnects)"
                 type="long"
                 writeable="false"/>
    <attribute   name="missingAckCounter"
          description="counts missing ack"
                 type="long"
                 writeable="false"/>
    <attribute   name="dataResendCounter"
          description="counts data resends"
                 type="long"
                 writeable="false"/>
    <attribute   name="dataFailureCounter"
          description="counts data send failures"
                 type="long"
                 writeable="false"/>
    <attribute   name="inQueueCounter"
          description="counts all queued messages"
                 type="long"
                 writeable="false"/>
    <attribute   name="outQueueCounter"
          description="counts all successfully sended messages"
                 type="long"
                 writeable="false"/>
    <attribute   name="queueAddWaitTime"
          description="queue add wait time (tomcat thread waits) (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="queueRemoveWaitTime"
          description="queue remove wait time (queue thread waits) (msec)"
                 type="long"
                 writeable="false"/>
 	<operation name="connect"
               description="connect to other replication node"
               impact="ACTION"
               returnType="void">
    </operation>
	<operation name="disconnect"
               description="disconnect to other replication node"
               impact="ACTION"
               returnType="void">
    </operation>
	<operation name="checkKeepAlive"
               description="Check connection for close socket"
               impact="ACTION"
               returnType="boolean">
    </operation>
	<operation name="resetStatistics"
               description="Reset all statistics"
               impact="ACTION"
               returnType="void">
    </operation>
				 
  </mbean>

  <mbean         name="PooledSocketSender"
          description="Pooled Cluster Sender"
               domain="Catalina"
                group="IDataSender"
                 type="org.apache.catalina.cluster.tcp.PooledSocketSender">
    <attribute   name="address"
          description="sender ip address"
                 type="java.net.InetAddress"
                 writeable="false"/>
    <attribute   name="port"
          description="sender port"
                 type="int"
                 writeable="false" />
    <attribute   name="suspect"
          description="Socket is gone"
                 type="boolean"/>
    <attribute   name="soTrafficClass"
          description="traffic class (default 0x04 | 0x08 | 0x010)"
                 type="int"/>
    <attribute   name="rxBufSize"
          description="receiver buffer size (default 25188)"
                 type="int"/>
    <attribute   name="txBufSize"
          description="send buffer size (default 43800)"
                 type="int"/>
    <attribute   name="tcpNoDelay"
          description="set tcpNoDelay (default true)"
			     is="true"
                 type="boolean" />
    <attribute   name="soKeepAlive"
          description="set soKeepAlive (default false)"
			     is="true"
                 type="boolean" />
    <attribute   name="ooBInline"
          description="set ooBInline (default true)"
			     is="true"
                 type="boolean" />
    <attribute   name="soReuseAddress"
          description="set soReuseAddress (default true)"
			     is="true"
                 type="boolean" />
    <attribute   name="soLingerOn"
          description="set soLingerOn (default false)"
			     is="true"
                 type="boolean" />             
    <attribute   name="soLingerTime"
          description="if soLingerOn use soLingerTime (default 3)"
                 type="int"/>
    <attribute   name="timeout"
          description="connect and acknowledge timeout (default 30000 msec)"
                 type="int"/>
    <attribute   name="ackTimeout"
          description="acknowledge timeout (deprecated use timeout)"
                 type="long"/>
    <attribute   name="waitForAck"
          description="Wait for ack after data send"
			     is="true"
                 type="boolean"
                 writeable="false" />
    <attribute   name="maxPoolSocketLimit"
          description="Max parallel sockets"
                 type="int"/>
    <attribute   name="inPoolSize"
          description="get current SocketSender pool size"
                 type="int"/>
    <attribute   name="inUsePoolSize"
          description="get size of current busy SocketSender from pool"
                 type="int"/>                 
    <attribute   name="keepAliveTimeout"
          description="active socket keep alive timeout (msec)"
                 type="long"/>
    <attribute   name="keepAliveMaxRequestCount"
          description="max request over this socket"
                 type="int"/>
    <attribute   name="resend"
          description="after send failure make a resend"
			     is="true"
                 type="boolean" />
    <attribute   name="connected"
                 is="true"
          description="socket connected"
                 type="boolean"
                 writeable="false"/>
    <attribute   name="avgMessageSize"
                 writeable="false"
          description="avg message size (totalbytes/nrOfRequests)"
                 type="long"/>
    <attribute   name="nrOfRequests"
          description="number of send messages to other members"
                 type="long"
                 writeable="false"/>
    <attribute   name="totalBytes"
          description="number of bytes transfered"
                 type="long"
                 writeable="false"/>
    <attribute   name="connectCounter"
          description="counts connects"
                 type="long"
                 writeable="false"/>
    <attribute   name="disconnectCounter"
          description="counts disconnects"
                 type="long"
                 writeable="false"/>
	<operation name="connect"
               description="start Queue to connect to ohter replication node"
               impact="ACTION"
               returnType="void">
    </operation>
	<operation name="disconnect"
               description="stop Queue to other replication node"
               impact="ACTION"
               returnType="void">
    </operation>
	<operation name="resetStatistics"
               description="Reset all statistics"
               impact="ACTION"
               returnType="void">
    </operation>
				 
  </mbean>

  <mbean         name="SocketSender"
          description="Sync Cluster Sender"
               domain="Catalina"
                group="IDataSender"
                 type="org.apache.catalina.cluster.tcp.SocketSender">
    <attribute   name="address"
          description="sender ip address"
                 type="java.net.InetAddress"
                 writeable="false"/>
    <attribute   name="port"
          description="sender port"
                 type="int"
                 writeable="false" />
    <attribute   name="suspect"
          description="Socket is gone"
                 type="boolean"/>
    <attribute   name="soTrafficClass"
          description="traffic class (default 0x04 | 0x08 | 0x010)"
                 type="int"/>
    <attribute   name="rxBufSize"
          description="receiver buffer size (default 25188)"
                 type="int"/>
    <attribute   name="txBufSize"
          description="send buffer size (default 43800)"
                 type="int"/>
    <attribute   name="tcpNoDelay"
          description="set tcpNoDelay (default true)"
			     is="true"
                 type="boolean" />
    <attribute   name="soKeepAlive"
          description="set soKeepAlive (default false)"
			     is="true"
                 type="boolean" />
    <attribute   name="ooBInline"
          description="set ooBInline (default true)"
			     is="true"
                 type="boolean" />
    <attribute   name="soReuseAddress"
          description="set soReuseAddress (default true)"
			     is="true"
                 type="boolean" />
    <attribute   name="soLingerOn"
          description="set soLingerOn (default false)"
			     is="true"
                 type="boolean" />             
    <attribute   name="soLingerTime"
          description="if soLingerOn use soLingerTime (default 3)"
                 type="int"/>
    <attribute   name="timeout"
          description="connect and acknowledge timeout (default 30000 msec)"
                 type="int"/>
    <attribute   name="ackTimeout"
          description="acknowledge timeout (deprecated use timeout)"
                 type="long"/>
    <attribute   name="waitForAck"
          description="Wait for ack after data send (default false)"
			     is="true"
                 type="boolean"
                 writeable="false" />
    <attribute   name="keepAliveTimeout"
          description="active socket keep alive timeout (msec)"
                 type="long"/>
    <attribute   name="keepAliveMaxRequestCount"
          description="max request over this socket"
                 type="int"/>
    <attribute   name="messageTransferStarted"
          description="message is in transfer"
                 type="boolean"
                 is="true"
                 writeable="false"/>
    <attribute   name="keepAliveCount"
          description="keep Alive request count"
                 type="int"
                 writeable="false"/>
    <attribute   name="keepAliveConnectTime"
          description="Connect time for keep alive (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="resend"
          description="after send failure make a resend"
			     is="true"
                 type="boolean" />
    <attribute   name="connected"
                 is="true"
          description="socket connected"
                 type="boolean"
                 writeable="false"/>
    <attribute   name="avgMessageSize"
                 writeable="false"
          description="avg message size (totalbytes/nrOfRequests)"
                 type="long"/>
    <attribute   name="nrOfRequests"
          description="number of send messages to other members"
                 type="long"
                 writeable="false"/>
    <attribute   name="totalBytes"
          description="number of bytes transfered"
                 type="long"
                 writeable="false"/>
    <attribute   name="processingTime"
          description="sending processing time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="minProcessingTime"
          description="minimal sending processing time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="avgProcessingTime"
          description="processing time / nrOfRequests (msec)"
                 type="double"
                 writeable="false"/>
    <attribute   name="maxProcessingTime"
          description="maximal sending processing time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="doProcessingStats"
          description="create Processing time stats"
			     is="true"
                 type="boolean" />
    <attribute   name="waitAckTime"
          description="sending waitAck time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="minWaitAckTime"
          description="minimal sending waitAck time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="avgWaitAckTime"
          description="waitAck time / nrOfRequests (msec)"
                 type="double"
                 writeable="false"/>
    <attribute   name="maxWaitAckTime"
          description="maximal sending waitAck time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="doWaitAckStats"
          description="create waitAck time stats"
			     is="true"
                 type="boolean" />
    <attribute   name="connectCounter"
          description="counts connects"
                 type="long"
                 writeable="false"/>
    <attribute   name="disconnectCounter"
          description="counts disconnects"
                 type="long"
                 writeable="false"/>
    <attribute   name="socketCloseCounter"
          description="counts closed socket (KeepAlive and disconnects)"
                 type="long"
                 writeable="false"/>
    <attribute   name="socketOpenFailureCounter"
          description="counts open socket failures"
                 type="long"
                 writeable="false"/>                 				 
    <attribute   name="socketOpenCounter"
          description="counts open socket (KeepAlive and connects)"
                 type="long"
                 writeable="false"/>				 
    <attribute   name="missingAckCounter"
          description="counts missing ack"
                 type="long"
                 writeable="false"/>
    <attribute   name="dataResendCounter"
          description="counts data resends"
                 type="long"
                 writeable="false"/>
    <attribute   name="dataFailureCounter"
          description="counts data send failures"
                 type="long"
                 writeable="false"/>
	<operation name="connect"
               description="connect to other replication node"
               impact="ACTION"
               returnType="void">
    </operation>
	<operation name="disconnect"
               description="disconnect to other replication node"
               impact="ACTION"
               returnType="void">
    </operation>
	<operation name="checkKeepAlive"
               description="Check connection for close socket"
               impact="ACTION"
               returnType="boolean">
    </operation>
	<operation name="resetStatistics"
               description="Reset all statistics"
               impact="ACTION"
               returnType="void">
    </operation>
				 
  </mbean>
    
  <mbean         name="ReplicationValve"
          description="Valve for simple tcp replication"
               domain="Catalina"
                group="Valve"
                 type="org.apache.catalina.cluster.tcp.ReplicationValve">
    <attribute   name="info"
          description="Class version info"
                 type="java.lang.String"
                 writeable="false"/>
    <attribute   name="filter"
          description="resource filter to disable session replication check"
                 type="java.lang.String"/>
    <attribute   name="primaryIndicator"
 			     is="true"
          description="set indicator that request processing is at primary session node"
                 type="boolean"/>
    <attribute   name="primaryIndicatorName"
          description="Request attribute name to indicate that request processing is at primary session node"
                 type="java.lang.String"/>
    <attribute   name="doProcessingStats"
 			     is="true"
          description="active statistics counting"
                 type="boolean"/>
	<attribute   name="nrOfRequests"
          description="number of replicated requests"
                 type="long"
                 writeable="false"/>
	<attribute   name="nrOfFilterRequests"
          description="number of filtered requests"
                 type="long"
                 writeable="false"/>
	<attribute   name="nrOfSendRequests"
          description="number of send requests"
                 type="long"
                 writeable="false"/>
	<attribute   name="nrOfCrossContextSendRequests"
          description="number of send cross context session requests"
                 type="long"
                 writeable="false"/>
    <attribute   name="totalRequestTime"
          description="total replicated request time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="totalSendTime"
          description="total replicated send time (msec)"
                 type="long"
                 writeable="false"/>
    <attribute   name="lastSendTime"
          description="last replicated request time (msec)"
                 type="long"
                 writeable="false"/>
    <operation name="resetStatistics"
               description="Reset all statistics"
               impact="ACTION"
               returnType="void">
    </operation>
                 
  </mbean>


</mbeans-descriptors>
