Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.stats
Class QuickStats.QuickStatsGenerator

java.lang.Object
  extended by com.jivesoftware.util.AbstractPollableRunnable
      extended by com.jivesoftware.forum.stats.QuickStats.QuickStatsGenerator
All Implemented Interfaces:
PollableRunnable, java.io.Serializable, java.lang.Runnable
Enclosing class:
QuickStats

public static class QuickStats.QuickStatsGenerator
extends AbstractPollableRunnable

A runnable class used to generate a set of quick stats. Use the QuickStats.getResults() method to get the results.

See Also:
Serialized Form

Constructor Summary
QuickStats.QuickStatsGenerator(java.util.Date fromDate, java.util.Date toDate, java.util.List fullForumIDs)
           
 
Method Summary
 void doRun()
          Executes the logic of the task.
 int getTaskValue()
          Returns the current value of the task's progress.
 void setParameters(java.util.Map parameters)
           
 
Methods inherited from class com.jivesoftware.util.AbstractPollableRunnable
cancel, getEndDate, getPercentComplete, getStartDate, getTaskMaximum, getTaskMinimum, isFinished, isIndeterminate, isRunning, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuickStats.QuickStatsGenerator

public QuickStats.QuickStatsGenerator(java.util.Date fromDate,
                                      java.util.Date toDate,
                                      java.util.List fullForumIDs)
Method Detail

getTaskValue

public int getTaskValue()
Description copied from interface: PollableRunnable
Returns the current value of the task's progress. This will be x where min <= x <= max. If this is in indeterminate mode then this will return -1.

Specified by:
getTaskValue in interface PollableRunnable
Specified by:
getTaskValue in class AbstractPollableRunnable
Returns:
the current value of the task's progress.

setParameters

public void setParameters(java.util.Map parameters)

doRun

public void doRun()
Description copied from class: AbstractPollableRunnable
Executes the logic of the task. Errors should be handled by the implementing class as this method does not throw any exceptions.

Specified by:
doRun in class AbstractPollableRunnable

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.