remm 2005/06/27 06:44:04
Modified: util/java/org/apache/tomcat/util/net AprEndpoint.java
http11/src/java/org/apache/coyote/http11
Http11AprProtocol.java
jk/java/org/apache/coyote/ajp AjpAprProtocol.java
Log:
- Expose some config attributes.
Revision Changes Path
1.51 +0 -12
jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/AprEndpoint.java
Index: AprEndpoint.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/AprEndpoint.java,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- AprEndpoint.java 24 Jun 2005 13:14:28 -0000 1.50
+++ AprEndpoint.java 27 Jun 2005 13:44:04 -0000 1.51
@@ -314,18 +314,6 @@
public Sendfile getSendfile() { return sendfile; }
- /**
- * Dummy maxSpareThreads property.
- */
- public int getMaxSpareThreads() { return 0; }
-
-
- /**
- * Dummy minSpareThreads property.
- */
- public int getMinSpareThreads() { return 0; }
-
-
// --------------------------------------------------------- Public
Methods
1.11 +18 -0
jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11AprProtocol.java
Index: Http11AprProtocol.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11AprProtocol.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- Http11AprProtocol.java 17 Jun 2005 11:50:01 -0000 1.10
+++ Http11AprProtocol.java 27 Jun 2005 13:44:04 -0000 1.11
@@ -296,6 +296,24 @@
setAttribute("pollTime", "" + i);
}
+ public void setPollerSize(int i) {
+ ep.setPollerSize(i);
+ setAttribute("pollerSize", "" + i);
+ }
+
+ public int getPollerSize() {
+ return ep.getPollerSize();
+ }
+
+ public void setSendfileSize(int i) {
+ ep.setSendfileSize(i);
+ setAttribute("sendfileSize", "" + i);
+ }
+
+ public int getSendfileSize() {
+ return ep.getSendfileSize();
+ }
+
public boolean getUseSendfile() {
return ep.getUseSendfile();
}
1.5 +9 -0
jakarta-tomcat-connectors/jk/java/org/apache/coyote/ajp/AjpAprProtocol.java
Index: AjpAprProtocol.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/coyote/ajp/AjpAprProtocol.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- AjpAprProtocol.java 23 Jun 2005 11:45:29 -0000 1.4
+++ AjpAprProtocol.java 27 Jun 2005 13:44:04 -0000 1.5
@@ -326,6 +326,15 @@
setAttribute("pollTime", "" + i);
}
+ public void setPollerSize(int i) {
+ ep.setPollerSize(i);
+ setAttribute("pollerSize", "" + i);
+ }
+
+ public int getPollerSize() {
+ return ep.getPollerSize();
+ }
+
public int getMaxPostSize() {
return maxPostSize;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]