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()
throws org.bonitasoft.engine.commons.exceptions.SBonitaException
start in interface org.bonitasoft.engine.commons.LifecycleServiceorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic void stop()
throws org.bonitasoft.engine.commons.exceptions.SBonitaException
stop in interface org.bonitasoft.engine.commons.LifecycleServiceorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic void pause()
throws org.bonitasoft.engine.commons.exceptions.SBonitaException
pause in interface org.bonitasoft.engine.commons.LifecycleServiceorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic void resume()
throws org.bonitasoft.engine.commons.exceptions.SBonitaException
resume in interface org.bonitasoft.engine.commons.LifecycleServiceorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic boolean isStarted()
public boolean isFlushThreadAlive()
Copyright © 2014 Bonitasoft S.A.. All rights reserved.