public class TimeTracker extends Object implements org.bonitasoft.engine.commons.TenantLifecycleService
| Constructor and Description |
|---|
TimeTracker(org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
boolean startFlushThread,
List<? extends FlushEventListener> flushEventListeners,
int maxSize,
int flushIntervalInSeconds,
String... activatedRecords) |
TimeTracker(org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
Clock clock,
boolean startFlushThread,
List<? extends FlushEventListener> flushEventListeners,
int maxSize,
int flushIntervalInSeconds,
String... activatedRecords) |
| Modifier and Type | Method and Description |
|---|---|
List<FlushResult> |
flush() |
List<Record> |
getRecords() |
boolean |
isFlushThreadAlive() |
boolean |
isStarted() |
boolean |
isTrackable(String recordName) |
void |
pause() |
void |
resume() |
void |
start() |
void |
stop() |
void |
track(Record record) |
void |
track(String recordName,
String recordDescription,
long duration) |
public TimeTracker(org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
boolean startFlushThread,
List<? extends FlushEventListener> flushEventListeners,
int maxSize,
int flushIntervalInSeconds,
String... activatedRecords)
public TimeTracker(org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
Clock clock,
boolean startFlushThread,
List<? extends FlushEventListener> flushEventListeners,
int maxSize,
int flushIntervalInSeconds,
String... activatedRecords)
public boolean isTrackable(String recordName)
public void track(Record record)
public List<FlushResult> flush()
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.LifecycleServicepublic boolean isStarted()
public boolean isFlushThreadAlive()
Copyright © 2014 Bonitasoft S.A.. All rights reserved.