|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.base.stats.ReadStatsManager
public class ReadStatsManager
Manager for read statistics in the Jive Platform products. This class handles adding new read stats and read sessions.
This API is really only write-only - there's no way to get a list of read stats or sessions from this class - it's assumed this will be done in the reports classes.
ReadStat
,
ReadStatSession
Nested Class Summary | |
---|---|
static class |
ReadStatsManager.BytesTask
An internal class which updates the bytesSent field of a HTTPReadStatSession or NNTPReadStatSession object to the database. |
static class |
ReadStatsManager.PersistenceTask
An internal class which saves sessions and read stats to the database. |
Field Summary | |
---|---|
protected ReadStatsManager.BytesTask |
bytesTask
|
protected java.util.TimerTask |
bytesTaskTimer
|
protected boolean |
initialized
|
protected ReadStatsManager.PersistenceTask |
persistenceTask
|
protected java.util.TimerTask |
persistenceTaskTimer
|
protected java.util.List |
readStats
|
protected java.util.List |
sessions
|
protected java.util.Map |
updatedSessions
|
Constructor Summary | |
---|---|
ReadStatsManager()
|
Method Summary | |
---|---|
void |
addReadStat(ReadStat readStat)
Adds a new read stat. |
void |
addReadStatSession(ReadStatSession session)
Adds a new read stat session. |
protected void |
checkEnabled()
|
void |
clearReadStats(java.util.Date date)
Clears read stats entries from the database for every date prior to the one specified. |
protected ReadStatsManager.BytesTask |
createBytesTask()
|
protected ReadStatsManager.PersistenceTask |
createPersistenceTask()
|
ReadStatsManager.BytesTask |
getBytesTask()
Returns the 'bytes sent' persistence task. |
ReadStatsManager.PersistenceTask |
getPersistenceTask()
Returns the persistence thread. |
static boolean |
isReadStatsEnabled()
|
void |
jivePropertyAdded(JivePropertyEvent jivePropertyEvent)
Fired when a jive property is added |
void |
jivePropertyModified(JivePropertyEvent jivePropertyEvent)
Fired when a jive property is modified |
void |
jivePropertyRemoved(JivePropertyEvent jivePropertyEvent)
Fired when a jive property is removed |
void |
saveReadStatSession(ReadStatSession session)
Saves (updates) the given session. |
protected void |
validateLicense()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List sessions
protected java.util.Map updatedSessions
protected java.util.List readStats
protected ReadStatsManager.PersistenceTask persistenceTask
protected java.util.TimerTask persistenceTaskTimer
protected ReadStatsManager.BytesTask bytesTask
protected java.util.TimerTask bytesTaskTimer
protected boolean initialized
Constructor Detail |
---|
public ReadStatsManager()
Method Detail |
---|
protected void checkEnabled()
protected void validateLicense()
protected ReadStatsManager.BytesTask createBytesTask()
protected ReadStatsManager.PersistenceTask createPersistenceTask()
public static boolean isReadStatsEnabled()
public ReadStatsManager.PersistenceTask getPersistenceTask()
public ReadStatsManager.BytesTask getBytesTask()
public void addReadStatSession(ReadStatSession session)
session
- a new read stat session.public void saveReadStatSession(ReadStatSession session)
session
- a read stat session.public void addReadStat(ReadStat readStat)
readStat
- a new read stat object.public void clearReadStats(java.util.Date date)
date
- clears read stats prior to this datepublic void jivePropertyAdded(JivePropertyEvent jivePropertyEvent)
JivePropertyListener
jivePropertyAdded
in interface JivePropertyListener
jivePropertyEvent
- event firedpublic void jivePropertyRemoved(JivePropertyEvent jivePropertyEvent)
JivePropertyListener
jivePropertyRemoved
in interface JivePropertyListener
jivePropertyEvent
- event firedpublic void jivePropertyModified(JivePropertyEvent jivePropertyEvent)
JivePropertyListener
jivePropertyModified
in interface JivePropertyListener
jivePropertyEvent
- event fired
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |