com.jalios.jcms.stat
Class StatExporter

java.lang.Object
  extended by java.lang.Thread
      extended by com.jalios.jcms.stat.StatExporter
All Implemented Interfaces:
Runnable

public class StatExporter
extends Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
protected  RawDataExportHandler driver
           
protected  long fromDate
           
protected  StatHandler handler
           
protected  boolean isWorking
           
static String JCMS_EXPORT_RAW_DATA
           
static String JCMS_EXPORT_RAW_DATA_PARAMS_MAP
           
protected  boolean mailNotification
           
protected  Member member
           
protected  MonitoredInputStream monitorStream
           
static String RAW_EXPORT_DIR
           
static String REVISION
           
protected  long toDate
           
static String TOKEN
           
protected  Workspace workspace
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
StatExporter(long fromDate, long toDate, Workspace workspace, RawDataExportHandler driver, boolean mailNotification, Member member, String token)
           
 
Method Summary
protected  StatHandler buildExportStatHandler(long fromDate, long toDate, Workspace workspace, RawDataExportHandler driver)
          Build the StatHandler
protected  StatListener createRawExportListener(RawDataExportHandler exportDriver)
           
 long getSpentTime(boolean elapse)
           
 StatHandler getStatHandler()
           
 int getStatus()
           
 boolean isWorking()
           
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values

JCMS_EXPORT_RAW_DATA

public static final String JCMS_EXPORT_RAW_DATA
See Also:
Constant Field Values

JCMS_EXPORT_RAW_DATA_PARAMS_MAP

public static final String JCMS_EXPORT_RAW_DATA_PARAMS_MAP
See Also:
Constant Field Values

TOKEN

public static final String TOKEN
See Also:
Constant Field Values

fromDate

protected long fromDate

toDate

protected long toDate

handler

protected StatHandler handler

isWorking

protected boolean isWorking

workspace

protected Workspace workspace

driver

protected RawDataExportHandler driver

monitorStream

protected MonitoredInputStream monitorStream

mailNotification

protected boolean mailNotification

member

protected Member member

RAW_EXPORT_DIR

public static String RAW_EXPORT_DIR
Constructor Detail

StatExporter

public StatExporter(long fromDate,
                    long toDate,
                    Workspace workspace,
                    RawDataExportHandler driver,
                    boolean mailNotification,
                    Member member,
                    String token)
Method Detail

getStatHandler

public StatHandler getStatHandler()

isWorking

public boolean isWorking()

getStatus

public int getStatus()

getSpentTime

public long getSpentTime(boolean elapse)

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

buildExportStatHandler

protected StatHandler buildExportStatHandler(long fromDate,
                                             long toDate,
                                             Workspace workspace,
                                             RawDataExportHandler driver)
                                      throws Exception
Build the StatHandler

Parameters:
fromDate -
toDate -
driver -
Returns:
StatHandler
Throws:
Exception

createRawExportListener

protected StatListener createRawExportListener(RawDataExportHandler exportDriver)


Copyright © 2001-2010 Jalios SA. All Rights Reserved.