You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2005/11/04 05:12:12 UTC
svn commit: r330700 - in
/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed: ./
statistics/
Author: taylor
Date: Thu Nov 3 20:12:02 2005
New Revision: 330700
URL: http://svn.apache.org/viewcvs?rev=330700&view=rev
Log:
http://issues.apache.org/jira/browse/JS2-362
statistics portlet query support
Added:
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/statistics/AggregateStatistics.java
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/statistics/InvalidCriteriaException.java
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/statistics/StatisticsQueryCriteria.java
Modified:
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/CommonPortletServices.java
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/statistics/PortalStatistics.java
Modified: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/CommonPortletServices.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/CommonPortletServices.java?rev=330700&r1=330699&r2=330700&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/CommonPortletServices.java (original)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/CommonPortletServices.java Thu Nov 3 20:12:02 2005
@@ -39,4 +39,6 @@
public final static String CPS_JETSPEED_POWERTOOL_FACTORY = "cps:Powertools";
public final static String CPS_HEADER_RESOURCE_FACTORY = "cps:HeaderResource";
public final static String CPS_PERMISSION_MANAGER = "cps:PermissionManager";
+ public final static String CPS_PORTAL_STATISTICS = "cps:PortalStatistics";
+
}
Added: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/statistics/AggregateStatistics.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/statistics/AggregateStatistics.java?rev=330700&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/statistics/AggregateStatistics.java (added)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/statistics/AggregateStatistics.java Thu Nov 3 20:12:02 2005
@@ -0,0 +1,31 @@
+/*
+ * Created on Nov 3, 2005
+ *
+ * TODO To change the template for this generated file go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+package org.apache.jetspeed.statistics;
+
+import java.io.Serializable;
+
+
+/**
+ * @author david
+ *
+ * TODO To change the template for this generated type comment go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+public interface AggregateStatistics extends Serializable
+{
+ public int getHitCount();
+ public float getAvgProcessingTime();
+ public float getMinProcessingTime();
+ public float getMaxProcessingTime();
+ public float getStdDevProcessingTime();
+ public void setHitCount(int hitCount);
+ public void setAvgProcessingTime(float time);
+ public void setMinProcessingTime(float time);
+ public void setMaxProcessingTime(float time);
+ public void setStdDevProcessingTime(float time);
+
+}
Added: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/statistics/InvalidCriteriaException.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/statistics/InvalidCriteriaException.java?rev=330700&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/statistics/InvalidCriteriaException.java (added)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/statistics/InvalidCriteriaException.java Thu Nov 3 20:12:02 2005
@@ -0,0 +1,31 @@
+/* Copyright 2005 Apache Software Foundation
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+package org.apache.jetspeed.statistics;
+
+
+
+/**
+ * InvalidCriteriaException
+ *
+ * @author <a href="mailto:chris@bluesunrise.com">Chris Schaefer</a>
+ * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
+ * @version $Id: $
+ */
+public class InvalidCriteriaException extends Exception
+{
+ public InvalidCriteriaException(String mesg) {
+ super(mesg);
+ }
+}
Modified: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/statistics/PortalStatistics.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/statistics/PortalStatistics.java?rev=330700&r1=330699&r2=330700&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/statistics/PortalStatistics.java (original)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/statistics/PortalStatistics.java Thu Nov 3 20:12:02 2005
@@ -118,5 +118,7 @@
* useful for writing decent tests
*/
public DataSource getDataSource();
+
+ public AggregateStatistics queryStatistics(StatisticsQueryCriteria criteria) throws InvalidCriteriaException;
}
Added: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/statistics/StatisticsQueryCriteria.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/statistics/StatisticsQueryCriteria.java?rev=330700&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/statistics/StatisticsQueryCriteria.java (added)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/statistics/StatisticsQueryCriteria.java Thu Nov 3 20:12:02 2005
@@ -0,0 +1,27 @@
+/*
+ * Created on Nov 3, 2005
+ *
+ * TODO To change the template for this generated file go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+package org.apache.jetspeed.statistics;
+
+import java.io.Serializable;
+
+
+/**
+ * @author david
+ *
+ * TODO To change the template for this generated type comment go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+public interface StatisticsQueryCriteria extends Serializable
+{
+
+ public String getIpAddress();
+ public void setIpAddress(String ipAddress);
+ public String getUser();
+ public void setUser(String user);
+ public void setQueryType(String queryType);
+ public String getQueryType();
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org