public class TimeTracker extends Object implements org.bonitasoft.engine.commons.TenantLifecycleService
| Constructor and Description |
|---|
TimeTracker(org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
boolean startTracking,
List<FlushEventListener> flushEventListeners,
int maxSize,
int flushIntervalInSeconds,
String... activatedRecords) |
TimeTracker(org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
Clock clock,
boolean startTracking,
List<FlushEventListener> flushEventListeners,
int maxSize,
int flushIntervalInMS,
String... activatedRecords) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
activateFlushEventListener(String flushEventListenerName) |
void |
activateRecord(TimeTrackerRecords activatedRecord) |
void |
clearRecords() |
void |
deactivatedRecord(TimeTrackerRecords activatedRecord) |
boolean |
deactivateFlushEventListener(String flushEventListenerName) |
FlushResult |
flush() |
Set<TimeTrackerRecords> |
getActivatedRecords() |
Clock |
getClock() |
long |
getFlushIntervalInMS() |
org.bonitasoft.engine.log.technical.TechnicalLoggerService |
getLogger() |
List<Record> |
getRecordsCopy() |
String |
getStatus() |
boolean |
isTrackable(TimeTrackerRecords recordName) |
boolean |
isTracking() |
void |
pause() |
void |
resume() |
void |
setFlushIntervalInMS(long flushIntervalInMS) |
void |
setFlushIntervalInSeconds(long flushIntervalInSeconds) |
void |
start() |
void |
startTracking() |
void |
stop() |
void |
stopTracking() |
void |
track(TimeTrackerRecords recordName,
String recordDescription,
long duration) |
public TimeTracker(org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
boolean startTracking,
List<FlushEventListener> flushEventListeners,
int maxSize,
int flushIntervalInSeconds,
String... activatedRecords)
public TimeTracker(org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
Clock clock,
boolean startTracking,
List<FlushEventListener> flushEventListeners,
int maxSize,
int flushIntervalInMS,
String... activatedRecords)
public boolean activateFlushEventListener(String flushEventListenerName)
public boolean deactivateFlushEventListener(String flushEventListenerName)
public void activateRecord(TimeTrackerRecords activatedRecord)
public void deactivatedRecord(TimeTrackerRecords activatedRecord)
public Set<TimeTrackerRecords> getActivatedRecords()
public void startTracking()
public void stopTracking()
public boolean isTracking()
public long getFlushIntervalInMS()
public void setFlushIntervalInSeconds(long flushIntervalInSeconds)
public void setFlushIntervalInMS(long flushIntervalInMS)
public Clock getClock()
public String getStatus()
public boolean isTrackable(TimeTrackerRecords recordName)
public org.bonitasoft.engine.log.technical.TechnicalLoggerService getLogger()
public void track(TimeTrackerRecords recordName, String recordDescription, long duration)
public FlushResult flush()
public void clearRecords()
public void start()
start in interface org.bonitasoft.engine.commons.LifecycleServicepublic void stop()
stop in interface org.bonitasoft.engine.commons.LifecycleServicepublic void pause()
pause in interface org.bonitasoft.engine.commons.LifecycleServicepublic void resume()
resume in interface org.bonitasoft.engine.commons.LifecycleServiceCopyright © 2016 Bonitasoft S.A.. All rights reserved.