public class StatExporter
extends java.lang.Thread
Modifier and Type | Field and Description |
---|---|
protected RawDataExportHandler |
driver |
protected long |
fromDate |
protected StatHandler |
handler |
protected boolean |
isWorking |
static java.lang.String |
JCMS_EXPORT_RAW_DATA |
static java.lang.String |
JCMS_EXPORT_RAW_DATA_PARAMS_MAP |
protected boolean |
mailNotification |
protected Member |
member |
protected MonitoredInputStream |
monitorStream |
static java.lang.String |
RAW_EXPORT_DIR |
static java.lang.String |
REVISION |
protected long |
toDate |
static java.lang.String |
TOKEN |
protected Workspace |
workspace |
Constructor and Description |
---|
StatExporter(long fromDate,
long toDate,
Workspace workspace,
RawDataExportHandler driver,
boolean mailNotification,
Member member,
java.lang.String token) |
Modifier and Type | Method and Description |
---|---|
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() |
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
public static final java.lang.String REVISION
public static final java.lang.String JCMS_EXPORT_RAW_DATA
public static final java.lang.String JCMS_EXPORT_RAW_DATA_PARAMS_MAP
public static final java.lang.String TOKEN
protected long fromDate
protected long toDate
protected StatHandler handler
protected boolean isWorking
protected Workspace workspace
protected RawDataExportHandler driver
protected MonitoredInputStream monitorStream
protected boolean mailNotification
protected Member member
public static java.lang.String RAW_EXPORT_DIR
public StatExporter(long fromDate, long toDate, Workspace workspace, RawDataExportHandler driver, boolean mailNotification, Member member, java.lang.String token)
public StatHandler getStatHandler()
public boolean isWorking()
public int getStatus()
public long getSpentTime(boolean elapse)
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
protected StatHandler buildExportStatHandler(long fromDate, long toDate, Workspace workspace, RawDataExportHandler driver) throws java.lang.Exception
fromDate
- the start datetoDate
- the end dateworkspace
- the workspacedriver
- the driverjava.lang.Exception
- if something wrong occursprotected StatListener createRawExportListener(RawDataExportHandler exportDriver)
Copyright © 2001-2010 Jalios SA. All Rights Reserved.