Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.base.stats
Class ReadStatsManager.PersistenceTask

java.lang.Object
  extended by com.jivesoftware.base.stats.ReadStatsManager.PersistenceTask
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
ReadStatsManager

public static class ReadStatsManager.PersistenceTask
extends java.lang.Object
implements java.lang.Runnable

An internal class which saves sessions and read stats to the database. This task is run every few seconds.


Constructor Summary
ReadStatsManager.PersistenceTask(java.util.List sessions, java.util.List readStats)
           
 
Method Summary
protected  void insertExtraSessions(ReadStatSession[] rsSessions, boolean canBatch)
           
 void run()
          Loops through all queued sessions and read stats and saves them to the DB.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadStatsManager.PersistenceTask

public ReadStatsManager.PersistenceTask(java.util.List sessions,
                                        java.util.List readStats)
Method Detail

run

public void run()
Loops through all queued sessions and read stats and saves them to the DB. DB inserts are done as batched inserts if those are supported by the database.

Specified by:
run in interface java.lang.Runnable

insertExtraSessions

protected void insertExtraSessions(ReadStatSession[] rsSessions,
                                   boolean canBatch)

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.