Author: rjung
Date: Tue Mar 10 00:10:49 2009
New Revision: 751914

URL: http://svn.apache.org/viewvc?rev=751914&view=rev
Log:
Add utility function to retrieve new attribute
error_escalation_time().
Modified:
    tomcat/connectors/trunk/jk/native/common/jk_util.c
    tomcat/connectors/trunk/jk/native/common/jk_util.h

Modified: tomcat/connectors/trunk/jk/native/common/jk_util.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_util.c?rev=751914&r1=751913&r2=751914&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_util.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_util.c Tue Mar 10 00:10:49 2009
@@ -87,6 +87,7 @@
 #define IS_WORKER_STOPPED_DEPRECATED  ("stopped")
 #define ACTIVATION_OF_WORKER        ("activation")
 #define WORKER_RECOVER_TIME         ("recover_time")
+#define WORKER_ERROR_ESCALATION_TIME ("error_escalation_time")
 #define MAX_REPLY_TIMEOUTS_OF_WORKER ("max_reply_timeouts")
 #define RETRY_INTERVAL_OF_WORKER    ("retry_interval")
 #define WORKER_MAX_PACKET_SIZE      ("max_packet_size")
@@ -988,6 +989,19 @@
     return jk_map_get_int(m, buf, def);
 }
 
+int jk_get_worker_error_escalation_time(jk_map_t *m, const char *wname, int 
def)
+{
+    char buf[1024];
+
+    if (!m || !wname) {
+        return -1;
+    }
+
+    MAKE_WORKER_PARAM(WORKER_ERROR_ESCALATION_TIME);
+
+    return jk_map_get_int(m, buf, def);
+}
+
 int jk_get_worker_max_reply_timeouts(jk_map_t *m, const char *wname, int def)
 {
     char buf[1024];

Modified: tomcat/connectors/trunk/jk/native/common/jk_util.h
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_util.h?rev=751914&r1=751913&r2=751914&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_util.h (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_util.h Tue Mar 10 00:10:49 2009
@@ -100,6 +100,8 @@
 
 int jk_get_worker_recover_timeout(jk_map_t *m, const char *wname, int def);
 
+int jk_get_worker_error_escalation_time(jk_map_t *m, const char *wname, int 
def);
+
 int jk_get_worker_max_reply_timeouts(jk_map_t *m, const char *wname, int def);
 
 int jk_get_worker_retry_interval(jk_map_t *m, const char *wname, int def);



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to