pero 2005/04/10 09:23:08
Modified: jk/java/org/apache/jk/common HandlerRequest.java
jk/java/org/apache/jk mbeans-descriptors.xml
Log:
Add some JMX Attributes and operations.
Revision Changes Path
1.44 +4 -1
jakarta-tomcat-connectors/jk/java/org/apache/jk/common/HandlerRequest.java
Index: HandlerRequest.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/common/HandlerRequest.java,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- HandlerRequest.java 29 Jan 2005 19:29:55 -0000 1.43
+++ HandlerRequest.java 10 Apr 2005 16:23:08 -0000 1.44
@@ -557,6 +557,8 @@
msg.getBytes( tmpMB );
String v=tmpMB.toString();
req.setAttribute(n, v );
+ if(log.isTraceEnabled())
+ log.trace("jk Attribute set " + n + "=" + v);
}
@@ -627,7 +629,8 @@
case SC_A_SECRET :
msg.getBytes(tmpMB);
String secret=tmpMB.toString();
- log.info("Secret: " + secret );
+ if(log.isInfoEnabled())
+ log.info("Secret: " + secret );
// endpoint note
ep.setNote( secretNote, secret );
break;
1.4 +69 -3
jakarta-tomcat-connectors/jk/java/org/apache/jk/mbeans-descriptors.xml
Index: mbeans-descriptors.xml
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/mbeans-descriptors.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- mbeans-descriptors.xml 11 Apr 2003 20:21:39 -0000 1.3
+++ mbeans-descriptors.xml 10 Apr 2005 16:23:08 -0000 1.4
@@ -15,9 +15,75 @@
group="Jk"
type="org.apache.jk.common.ChannelSocket">
- <attribute name="port"
- description="Destination port"
- type="java.lang.Integer"/>
+ <attribute name="port"
+ description="The port number on which we listen for ajp13 requests"
+ type="int"/>
+ <attribute name="maxPort"
+ description="The max port number on which we listen for ajp13
requests"
+ type="int"/>
+ <attribute name="address"
+ description="The IP address on which to bind"
+ type="java.lang.String"/>
+ <attribute name="maxSpareThreads"
+ description="The maximum number of unused request processing
threads"
+ type="int"/>
+ <attribute name="maxThreads"
+ description="The maximum number of request processing threads to
be created"
+ type="int"/>
+ <attribute name="minSpareThreads"
+ description="The number of request processing threads that will be
created"
+ type="int"/>
+ <attribute name="tcpNoDelay"
+ description="Should we use TCP no delay?"
+ type="boolean"/>
+ <attribute name="soLinger"
+ description="Linger value on the incoming connection"
+ type="int"/>
+ <attribute name="soTimeout"
+ description="Socket timeout"
+ type="int"/>
+ <attribute name="requestCount"
+ description="current request count"
+ type="int"
+ writeable="false"/>
+ <attribute name="daemon"
+ description="are worker threads on daemon mode"
+ type="boolean"
+ writeable="false"/>
+
+ <operation name="start"
+ description="Start, if server socket no create call init"
+ impact="ACTION"
+ returnType="void" />
+ <operation name="stop"
+ description="Stop"
+ impact="ACTION"
+ returnType="void" />
+ <operation name="pause"
+ description="Pause ajp socket, no new connection accepted"
+ impact="ACTION"
+ returnType="void"/>
+ <operation name="resume"
+ description="Resume socket for new connections"
+ impact="ACTION"
+ returnType="void"/>
+ <operation name="reinit"
+ description="Init and Destroy"
+ impact="ACTION"
+ returnType="void" />
+ <operation name="init"
+ description="Init"
+ impact="ACTION"
+ returnType="void" />
+ <operation name="destroy"
+ description="Destroy"
+ impact="ACTION"
+ returnType="void" />
+ <operation name="resetCounters"
+ description="reset request counter"
+ impact="ACTION"
+ returnType="void"/>
+
</mbean>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]