Package com.jalios.jcms.analytics
Class AbstractAnalyzeJob
java.lang.Object
com.jalios.jcms.analytics.AbstractAnalyzeJob
- Direct Known Subclasses:
AnalyzeJob,PeriodAnalyzeJob
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractAnalyzeJob(Interval interval, StatisticContext context, List<AbstractStatisticAgent> agentList, ProgressListener listener) -
Method Summary
Modifier and TypeMethodDescriptioncall()protected intprotected intprotected static AbstractReportMetricgetReportMetric(Workspace analyzedWS, StatisticContext context, Class<? extends AbstractReportMetric> clazz) protected static AbstractReportMetricgetReportMetric(Workspace analyzedWS, StatisticContext context, Date startDate, Date endDate, Class<? extends AbstractReportMetric> clazz) protected voidreadEvents(AbstractEventDataProvider eventDataProvider) ReadEventDatafrom a file and call every agent to process itvoidsetAgentList(List<AbstractStatisticAgent> agentList) voidsetContext(StatisticContext context) voidsetListener(ProgressListener listener)
-
Field Details
-
DEFAULT_MAX_ITERATION_PER_TRANSACTION
protected static final int DEFAULT_MAX_ITERATION_PER_TRANSACTION- See Also:
-
DEFAULT_IDLE_PERIOD
protected static final int DEFAULT_IDLE_PERIOD- See Also:
-
MAX_ITERATION_PER_TRANSACTION_PROPERTY
- See Also:
-
IDLE_PROPERTY
- See Also:
-
isTraceEnabled
protected boolean isTraceEnabled
-
-
Constructor Details
-
AbstractAnalyzeJob
public AbstractAnalyzeJob(Interval interval, StatisticContext context, List<AbstractStatisticAgent> agentList, ProgressListener listener)
-
-
Method Details
-
getContext
-
setContext
-
getAgentList
-
setAgentList
-
getListener
-
setListener
-
call
-
readEvents
ReadEventDatafrom a file and call every agent to process it- Parameters:
eventDataProvider- theAbstractEventDataProviderto read from- Throws:
Exception- Exception thrown when reading the file
-
getReportMetric
protected static AbstractReportMetric getReportMetric(Workspace analyzedWS, StatisticContext context, Class<? extends AbstractReportMetric> clazz) throws ReflectiveOperationException - Throws:
ReflectiveOperationException
-
getReportMetric
protected static AbstractReportMetric getReportMetric(Workspace analyzedWS, StatisticContext context, Date startDate, Date endDate, Class<? extends AbstractReportMetric> clazz) throws ReflectiveOperationException - Throws:
ReflectiveOperationException
-
getIdlePeriod
protected int getIdlePeriod() -
getMaxIterationPerTransaction
protected int getMaxIterationPerTransaction()
-