Author: ehillenius
Date: Mon Jul 16 12:29:22 2007
New Revision: 556702

URL: http://svn.apache.org/viewvc?view=rev&rev=556702
Log:
added request time out to JMX

Modified:
    
incubator/wicket/trunk/jdk-1.5/wicket-jmx/src/main/java/org/apache/wicket/jmx/RequestCycleSettings.java
    
incubator/wicket/trunk/jdk-1.5/wicket-jmx/src/main/java/org/apache/wicket/jmx/RequestCycleSettingsMBean.java

Modified: 
incubator/wicket/trunk/jdk-1.5/wicket-jmx/src/main/java/org/apache/wicket/jmx/RequestCycleSettings.java
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.5/wicket-jmx/src/main/java/org/apache/wicket/jmx/RequestCycleSettings.java?view=diff&rev=556702&r1=556701&r2=556702
==============================================================================
--- 
incubator/wicket/trunk/jdk-1.5/wicket-jmx/src/main/java/org/apache/wicket/jmx/RequestCycleSettings.java
 (original)
+++ 
incubator/wicket/trunk/jdk-1.5/wicket-jmx/src/main/java/org/apache/wicket/jmx/RequestCycleSettings.java
 Mon Jul 16 12:29:22 2007
@@ -16,6 +16,8 @@
  */
 package org.apache.wicket.jmx;
 
+import org.apache.wicket.util.time.Duration;
+
 
 /**
  * Exposes Application related functionality for JMX.
@@ -61,6 +63,14 @@
        }
 
        /**
+        * @see org.apache.wicket.jmx.RequestCycleSettingsMBean#getTimeout()
+        */
+       public String getTimeout()
+       {
+               return 
application.getRequestCycleSettings().getTimeout().toString();
+       }
+
+       /**
         * @see 
org.apache.wicket.jmx.RequestCycleSettingsMBean#setBufferResponse(boolean)
         */
        public void setBufferResponse(boolean bufferResponse)
@@ -83,5 +93,13 @@
        public void setResponseRequestEncoding(String responseRequestEncoding)
        {
                
application.getRequestCycleSettings().setResponseRequestEncoding(responseRequestEncoding);
+       }
+
+       /**
+        * @see 
org.apache.wicket.jmx.RequestCycleSettingsMBean#setTimeout(java.lang.String)
+        */
+       public void setTimeout(String timeout)
+       {
+               
application.getRequestCycleSettings().setTimeout(Duration.valueOf(timeout));
        }
 }

Modified: 
incubator/wicket/trunk/jdk-1.5/wicket-jmx/src/main/java/org/apache/wicket/jmx/RequestCycleSettingsMBean.java
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.5/wicket-jmx/src/main/java/org/apache/wicket/jmx/RequestCycleSettingsMBean.java?view=diff&rev=556702&r1=556701&r2=556702
==============================================================================
--- 
incubator/wicket/trunk/jdk-1.5/wicket-jmx/src/main/java/org/apache/wicket/jmx/RequestCycleSettingsMBean.java
 (original)
+++ 
incubator/wicket/trunk/jdk-1.5/wicket-jmx/src/main/java/org/apache/wicket/jmx/RequestCycleSettingsMBean.java
 Mon Jul 16 12:29:22 2007
@@ -54,6 +54,14 @@
        String getResponseRequestEncoding();
 
        /**
+        * Gets the time that a request will by default be waiting for the 
previous
+        * request to be handled before giving up.
+        * 
+        * @return The time out
+        */
+       String getTimeout();
+
+       /**
         * @param bufferResponse
         *            True if this application should buffer responses.
         */
@@ -84,4 +92,12 @@
         *            The request and response encoding to be used.
         */
        void setResponseRequestEncoding(final String responseRequestEncoding);
+
+       /**
+        * Sets the time that a request will by default be waiting for the 
previous
+        * request to be handled before giving up.
+        * 
+        * @param timeout
+        */
+       void setTimeout(String timeout);
 }


Reply via email to