Add an executorName attribute to Connectors so it is possible to trace ThreadPool to Connector to Executor via JMX.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@
1003304 13f79535-47bb-0310-9956-
ffa450edef68
return useIPVHosts;
}
+
+ public String getExecutorName() {
+ Object obj = protocolHandler.getExecutor();
+ if (obj instanceof org.apache.catalina.Executor) {
+ return ((org.apache.catalina.Executor) obj).getName();
+ }
+ return "Internal";
+ }
+
// --------------------------------------------------------- Public Methods
description="The 'enable DNS lookups' flag for this Connector"
type="boolean"/>
+ <attribute name="executorName"
+ description="The name of the executor - if any - associated with this Connector"
+ type="java.lang.String"
+ writeable="false"/>
+
<!-- Common -->
<attribute name="keepAliveTimeout"
description="The number of seconds Tomcat will wait for a subsequent request before closing the connection"
and Tomcat 7. (markt)
</fix>
<fix>
+ <bug>49856</bug>: Add an executorName attribute to Connectors so it is
+ possible to trace ThreadPool to Connector to Executor via the JMX
+ interface. (markt)
+ </fix>
+ <fix>
<bug>49865</bug>: Tomcat failed to start if catalina.properties was not
present. (markt)
</fix>