| java.lang.Object org.jasig.portal.services.stats.ThreadFiringStatsRecorder
ThreadFiringStatsRecorder | final public class ThreadFiringStatsRecorder implements IStatsRecorder,InitializingBean(Code) | | Stats recorder implementation which on receipt of each stats recording event
fires a new thread tasked with notifying the child recorder of the event. This
accomplishes processing stats recording in a new thread rather than in
the thread in which the event was generated.
This IStatsRecorder just fires the threads - it requires a target IStatsRecorder
which the threads will invoke. You inject this target via the setTargetStatsRecorder()
setter method.
version: $Revision: 36731 $ $Date: 2006-09-27 11:21:06 -0700 (Wed, 27 Sep 2006) $ |
Constructor Summary | |
public | ThreadFiringStatsRecorder(int initialThreads, int maxThreads, int threadPriority) Constructor specifying configurating of our thread pool. |
Method Summary | |
public void | afterPropertiesSet() | public IStatsRecorder | getTargetStatsRecorder() Get the target IStatsRecorder which the threads we fire will invoke when they
awake. | public void | recordChannelAddedToLayout(IPerson person, UserProfile profile, IUserLayoutChannelDescription channelDesc) | public void | recordChannelDefinitionModified(IPerson person, ChannelDefinition channelDef) | public void | recordChannelDefinitionPublished(IPerson person, ChannelDefinition channelDef) | public void | recordChannelDefinitionRemoved(IPerson person, ChannelDefinition channelDef) | public void | recordChannelInstantiated(IPerson person, UserProfile profile, IUserLayoutChannelDescription channelDesc) | public void | recordChannelMovedInLayout(IPerson person, UserProfile profile, IUserLayoutChannelDescription channelDesc) | public void | recordChannelRemovedFromLayout(IPerson person, UserProfile profile, IUserLayoutChannelDescription channelDesc) | public void | recordChannelRendered(IPerson person, UserProfile profile, IUserLayoutChannelDescription channelDesc) | public void | recordChannelTargeted(IPerson person, UserProfile profile, IUserLayoutChannelDescription channelDesc) | public void | recordChannelUpdatedInLayout(IPerson person, UserProfile profile, IUserLayoutChannelDescription channelDesc) | public void | recordFolderAddedToLayout(IPerson person, UserProfile profile, IUserLayoutFolderDescription folderDesc) | public void | recordFolderMovedInLayout(IPerson person, UserProfile profile, IUserLayoutFolderDescription folderDesc) | public void | recordFolderRemovedFromLayout(IPerson person, UserProfile profile, IUserLayoutFolderDescription folderDesc) | public void | recordFolderUpdatedInLayout(IPerson person, UserProfile profile, IUserLayoutFolderDescription folderDesc) | public void | recordLogin(IPerson person) | public void | recordLogout(IPerson person) | public void | recordSessionCreated(IPerson person) | public void | recordSessionDestroyed(IPerson person) | public void | setTargetStatsRecorder(IStatsRecorder targetStatsRecorder) Set the child IStatsRecorder which the threads we fire will invoke when they
awake. |
ThreadFiringStatsRecorder | public ThreadFiringStatsRecorder(int initialThreads, int maxThreads, int threadPriority)(Code) | | Constructor specifying configurating of our thread pool.
Parameters: initialThreads - initial number of threads in the thread pool Parameters: maxThreads - maximum number of threads to allow in the thread pool Parameters: threadPriority - priority for the threads. |
getTargetStatsRecorder | public IStatsRecorder getTargetStatsRecorder()(Code) | | Get the target IStatsRecorder which the threads we fire will invoke when they
awake.
Returns the targetStatsRecorder. |
recordSessionCreated | public void recordSessionCreated(IPerson person)(Code) | | |
recordSessionDestroyed | public void recordSessionDestroyed(IPerson person)(Code) | | |
setTargetStatsRecorder | public void setTargetStatsRecorder(IStatsRecorder targetStatsRecorder)(Code) | | Set the child IStatsRecorder which the threads we fire will invoke when they
awake.
Parameters: targetStatsRecorder - The targetStatsRecorder to set. |
|
|