org.apache.jetspeed.statistics.impl
Class BatchedPortletStatistics
java.lang.Object
org.apache.jetspeed.statistics.impl.BatchedStatistics
org.apache.jetspeed.statistics.impl.BatchedPortletStatistics
- All Implemented Interfaces:
- java.lang.Runnable
public class BatchedPortletStatistics
- extends BatchedStatistics
Batches up LogRecord statistics, and flushes them periodically to the
appropriate table in the database.
IMPORTANT: It is the caller's responsibility to insure that the LogRecord
instances added to a BatchedStatistics instance are all of the same type
(Portlet Access, Page Access, or User Logout).
- Version:
- $Id: TestPortletEntityDAO.java,v 1.3 2005/05/24 14:43:19 ate Exp $
- Author:
- Chris Schaefer , David Sean Taylor
Constructor Summary |
BatchedPortletStatistics(javax.sql.DataSource ds,
int batchSize,
long msElapsedTimeThreshold,
java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BatchedPortletStatistics
public BatchedPortletStatistics(javax.sql.DataSource ds,
int batchSize,
long msElapsedTimeThreshold,
java.lang.String name)
canDoRecordType
public boolean canDoRecordType(LogRecord rec)
- Specified by:
canDoRecordType
in class BatchedStatistics
loadOneRecordToStatement
protected void loadOneRecordToStatement(java.sql.PreparedStatement stm,
LogRecord rec)
throws java.sql.SQLException
- Specified by:
loadOneRecordToStatement
in class BatchedStatistics
- Parameters:
stm
- recordIterator
-
- Throws:
java.sql.SQLException
getPreparedStatement
protected java.sql.PreparedStatement getPreparedStatement(java.sql.Connection con)
throws java.sql.SQLException
- Specified by:
getPreparedStatement
in class BatchedStatistics
- Parameters:
con
-
- Returns:
-
- Throws:
java.sql.SQLException
Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.