Package com.logicaldoc.core.stats
Class StatsCollector
java.lang.Object
com.logicaldoc.core.task.Task
com.logicaldoc.core.stats.StatsCollector
- All Implemented Interfaces:
Runnable
Collects statistical informations to the stats site
- Since:
- 6.0
- Author:
- Marco Meschieri - LogicalDOC
-
Field Summary
FieldsFields inherited from class com.logicaldoc.core.task.Task
STATUS_IDLE, STATUS_RUNNING, STATUS_STOPPING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetSize()The the total size of the processing(number of units of work)booleanConcrete implementations must override this method declaring if the task supports multiple instances running concurrently.booleanConcrete implementations must override this method declaring if the task is indeterminate.static voidsetProduct(String product) static voidsetProductName(String productName) static voidstatic voidMethods inherited from class com.logicaldoc.core.task.Task
addTaskListener, getCompletionPercentage, getConfig, getName, getProgress, getReportRecipients, getScheduling, getStatus, interrupt, isInterrupted, isInterruptRequested, isRunning, isSendActivityReport, notifyReport, removeTaskListener, run, save, saveWork, setReportRecipients, setSendActivityReport, setSize
-
Field Details
-
STAT
- See Also:
-
NAME
- See Also:
-
-
Constructor Details
-
StatsCollector
public StatsCollector()
-
-
Method Details
-
getSize
public long getSize()Description copied from class:TaskThe the total size of the processing(number of units of work) -
isIndeterminate
public boolean isIndeterminate()Description copied from class:TaskConcrete implementations must override this method declaring if the task is indeterminate. An indeterminate task is not able to compute it's time length- Specified by:
isIndeterminatein classTask- Returns:
- true if the task is indeterminate
-
isConcurrent
public boolean isConcurrent()Description copied from class:TaskConcrete implementations must override this method declaring if the task supports multiple instances running concurrently. tHIbernat- Specified by:
isConcurrentin classTask- Returns:
- true if the task is concurrent
-
setUserno
-
setSID
-
setProduct
-
setProductName
-