jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r654733 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/AbstractQueryHandler.java
Date Fri, 09 May 2008 09:22:05 GMT
Author: mreutegg
Date: Fri May  9 02:22:05 2008
New Revision: 654733

URL: http://svn.apache.org/viewvc?rev=654733&view=rev
Log:
JCR-1582: Parameters 'idleTime' and 'queryClass' cause QueryHandler to fail

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/AbstractQueryHandler.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/AbstractQueryHandler.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/AbstractQueryHandler.java?rev=654733&r1=654732&r2=654733&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/AbstractQueryHandler.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/AbstractQueryHandler.java
Fri May  9 02:22:05 2008
@@ -38,6 +38,17 @@
     private OnWorkspaceInconsistency owi = OnWorkspaceInconsistency.FAIL;
 
     /**
+     * The name of a class that extends {@link AbstractQueryImpl}.
+     */
+    private String queryClass;
+
+    /**
+     * The max idle time for this query handler until it is stopped. This
+     * property is actually not used anymore.
+     */
+    private String idleTime;
+
+    /**
      * Initializes this query handler by setting all properties in this class
      * with appropriate parameter values.
      *
@@ -113,4 +124,36 @@
     public String getOnWorkspaceInconsistency() {
         return owi.getName();
     }
+
+    /**
+     * Sets the name of the query class to use.
+     *
+     * @param queryClass the name of the query class to use.
+     */
+    public void setQueryClass(String queryClass) {
+        this.queryClass = queryClass;
+    }
+
+    /**
+     * @return the name of the query class to use.
+     */
+    public String getQueryClass() {
+        return queryClass;
+    }
+
+    /**
+     * Sets the query handler idle time.
+     *
+     * @param idleTime the query handler idle time.
+     */
+    public void setIdleTime(String idleTime) {
+        this.idleTime = idleTime;
+    }
+
+    /**
+     * @return the query handler idle tim.
+     */
+    public String getIdleTime() {
+        return idleTime;
+    }
 }



Mime
View raw message