01: /* Copyright 2002 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal.services.stats;
07:
08: import org.jasig.portal.utils.threading.BaseTask;
09:
10: /**
11: * Base class for all stats recorder worker tasks to extend.
12: * @author Ken Weiner, kweiner@unicon.net
13: * @version $Revision: 36546 $
14: *
15: * @deprecated IStatsRecorder implementation is replaced with a much more flexible system
16: * based on the Spring ApplicationEventPublisher and Event Listeners.
17: * For more information see:
18: * http://www.ja-sig.org/wiki/display/UPC/Proposal+to+Deprecate+IStatsRecorder
19: */
20: public abstract class StatsRecorderWorkerTask extends BaseTask {
21:
22: protected IStatsRecorder statsRecorder;
23:
24: /**
25: * Does the real work of the worker task
26: */
27: public abstract void execute() throws Exception;
28:
29: /**
30: * Set the stats reocorder that this task should use
31: * @param statsRecorder the stats recorder that this task should use
32: */
33: public void setStatsRecorder(IStatsRecorder statsRecorder) {
34: this.statsRecorder = statsRecorder;
35: }
36: }
|