public class PhynixxXARecorderRepository extends Object implements IXARecorderRepository
PhynixxXADataRecorder| Constructor and Description |
|---|
PhynixxXARecorderRepository(IDataLoggerFactory dataLoggerFactory)
the dataRecorder are not re-used.
|
PhynixxXARecorderRepository(IXARecorderProvider dataRecorderPool) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
closes all open recorder.
|
IXADataRecorder |
createXADataRecorder()
creates a recorder ready for logging.
|
void |
destroy()
destroys all recovered recorder.
|
boolean |
isClosed() |
void |
open() |
public PhynixxXARecorderRepository(IXARecorderProvider dataRecorderPool)
public PhynixxXARecorderRepository(IDataLoggerFactory dataLoggerFactory)
dataLoggerFactory - public IXADataRecorder createXADataRecorder() throws Exception
IXARecorderRepositoryIXADataRecorder.disqualify() closes the logger (but keeps the
content) and the repository forgets this logger.
IXADataRecorder.disqualify() indicates that the content of the
logger can be discarded. The repository decides, what to do with the
logger.
IXADataRecorder.destroy() destroys the logger (incl.the content)
and repository forgets this logger.createXADataRecorder in interface IXARecorderRepositoryIOExceptionExceptionpublic boolean isClosed()
isClosed in interface IXARecorderRepositorypublic void open()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void close()
IXARecorderRepositoryIXADataRecorder.disqualify() and removed from the repository.
They can not be recovered.close in interface IXARecorderRepositorypublic void destroy()
throws IOException,
InterruptedException
IXARecorderRepositoryIXADataRecorder.destroy()
and removed from the repository.
They can not be recovered.destroy in interface IXARecorderRepositoryIOExceptionInterruptedExceptionCopyright © 2017. All rights reserved.