|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.csc.phynixx.loggersystem.logger.channellogger.FileChannelDataLoggerFactory
public class FileChannelDataLoggerFactory
create DataLogger using Files to store data. A logger is qualified by its name and a subsequent integer qualifier. It is possible to have more than one log file for a given logger. The logfile differ in the qualifier.
A log file is named according to the follwing pattern 'loggerSystemName'_'loggerName'_'qualifier'.log The different parts of the name make i possible to deduce the following information from the logfile name 1.) loggerSystem 2.) loggername 3.) qualifier pof the logfile for the loggerA logical logger name has to unique for all logfile of the current loggerfactory. Diese Factory erzeugt FileChannelDataLogger . Es wird ein logischer Name mitgegeben und es wird im Verzeichnis eine datei mit diesem namen angelegt und auf dieser Datei eine TAEnabledRandomAccessFile instanziert. The logic Name is unique concerning the loggerssytem
| Constructor Summary | |
|---|---|
FileChannelDataLoggerFactory(String loggerSystemName,
File directory)
|
|
FileChannelDataLoggerFactory(String loggerSystemName,
String directoryName)
|
|
| Method Summary | |
|---|---|
void |
cleanup()
destroys a logfiles |
void |
destroyLogger(String loggerName)
destroys the logger an all is associated resources an information |
Set<String> |
findLoggerNames()
|
String |
getLoggerSystemName()
|
File |
getLoggingDirectory()
|
IDataLogger |
instanciateLogger(String loggerName)
open the logger with mode AccessMode.APPEND |
IDataLogger |
instanciateLogger(String loggerName,
AccessMode accessMode)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileChannelDataLoggerFactory(String loggerSystemName,
String directoryName)
loggerSystemName - directoryName - logfile are created in this directory
public FileChannelDataLoggerFactory(String loggerSystemName,
File directory)
loggerSystemName - directory - logfile are created in this directory| Method Detail |
|---|
public String getLoggerSystemName()
getLoggerSystemName in interface IDataLoggerFactorypublic File getLoggingDirectory()
public IDataLogger instanciateLogger(String loggerName)
throws IOException
IDataLoggerFactoryAccessMode.APPEND
instanciateLogger in interface IDataLoggerFactoryloggerName - unique Identifier of the logger (concering to the logger system)
IOException
public IDataLogger instanciateLogger(String loggerName,
AccessMode accessMode)
throws IOException
instanciateLogger in interface IDataLoggerFactoryloggerName - unique Identifier of the logger (concering to the logger system)
IOExceptionpublic void cleanup()
cleanup in interface IDataLoggerFactorypublic void destroyLogger(String loggerName)
IDataLoggerFactory
destroyLogger in interface IDataLoggerFactory
public Set<String> findLoggerNames()
throws IOException
findLoggerNames in interface IDataLoggerFactoryIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||