Package com.logicaldoc.core.stats
Class StatsCollector
- java.lang.Object
-
- com.logicaldoc.core.task.Task
-
- com.logicaldoc.core.stats.StatsCollector
-
-
Field Summary
Fields Modifier and Type Field Description static String
NAME
static String
STAT
-
Fields inherited from class com.logicaldoc.core.task.Task
STATUS_IDLE, STATUS_RUNNING, STATUS_STOPPING
-
-
Constructor Summary
Constructors Constructor Description StatsCollector()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ContextProperties
getConfig()
DocumentDAO
getDocumentDAO()
FolderDAO
getFolderDAO()
GenericDAO
getGenericDAO()
GroupDAO
getGroupDAO()
long
getSize()
The the total size of the processing(number of units of work)boolean
isConcurrent()
Concrete implementations must override this method declaring if the task supports multiple instances running concurrently.boolean
isIndeterminate()
Concrete implementations must override this method declaring if the task is indeterminate.void
setConfig(ContextProperties config)
void
setDocumentDAO(DocumentDAO documentDAO)
void
setFolderDAO(FolderDAO folderDAO)
void
setGenericDAO(GenericDAO genericDAO)
void
setGroupDAO(GroupDAO groupDAO)
static void
setProduct(String product)
static void
setProductName(String productName)
void
setSequenceDAO(SequenceDAO sequenceDAO)
static void
setSID(String sid)
void
setTenantDAO(TenantDAO tenantDAO)
static void
setUserno(String userno)
-
Methods inherited from class com.logicaldoc.core.task.Task
addTaskListener, getCompletionPercentage, getName, getProgress, getReportRecipients, getScheduling, getStatus, interrupt, isInterrupted, isInterruptRequested, isRunning, isSendActivityReport, notifyReport, removeTaskListener, run, save, saveWork, setLockManager, setReportRecipients, setSendActivityReport, setSender, setSize, setSystemLoadMonitor, setUserDao
-
-
-
-
Field Detail
-
STAT
public static final String STAT
- See Also:
- Constant Field Values
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSize
public long getSize()
Description copied from class:Task
The the total size of the processing(number of units of work)
-
isIndeterminate
public boolean isIndeterminate()
Description copied from class:Task
Concrete 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:
isIndeterminate
in classTask
- Returns:
- true if the task is indeterminate
-
isConcurrent
public boolean isConcurrent()
Description copied from class:Task
Concrete implementations must override this method declaring if the task supports multiple instances running concurrently.- Specified by:
isConcurrent
in classTask
- Returns:
- true if the task is concurrent
-
getGenericDAO
public GenericDAO getGenericDAO()
-
setGenericDAO
public void setGenericDAO(GenericDAO genericDAO)
-
getConfig
public ContextProperties getConfig()
-
setConfig
public void setConfig(ContextProperties config)
-
getDocumentDAO
public DocumentDAO getDocumentDAO()
-
setDocumentDAO
public void setDocumentDAO(DocumentDAO documentDAO)
-
getFolderDAO
public FolderDAO getFolderDAO()
-
setFolderDAO
public void setFolderDAO(FolderDAO folderDAO)
-
getGroupDAO
public GroupDAO getGroupDAO()
-
setGroupDAO
public void setGroupDAO(GroupDAO groupDAO)
-
setUserno
public static void setUserno(String userno)
-
setSID
public static void setSID(String sid)
-
setProduct
public static void setProduct(String product)
-
setProductName
public static void setProductName(String productName)
-
setTenantDAO
public void setTenantDAO(TenantDAO tenantDAO)
-
setSequenceDAO
public void setSequenceDAO(SequenceDAO sequenceDAO)
-
-