Class CompatibilityRepositoryExporter
java.lang.Object
com.ibm.websphere.logging.hpel.writer.CompatibilityRepositoryExporter
- All Implemented Interfaces:
- RepositoryExporter
- Direct Known Subclasses:
- CompatibilityZipRepositoryExporter
Implementation of the 
RepositoryExporter interface exporting log records
 into a text file in Basic or Advanced WebSphere format. The method storeHeader must be called before
 any records can be stored.  Each record is stored with the storeRecord function.  Failure to
 follow the order will result in runtime exceptions.- 
Constructor SummaryConstructorsConstructorDescriptionCompatibilityRepositoryExporter(File outputFile, HpelFormatter formatter) Creates an instance for storing records in a file in a Basic or Advanced text format.CompatibilityRepositoryExporter(PrintStream out, HpelFormatter formatter) Creates an instance for writing records into a stream in a Basic or Advanced text format.
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()flushes and closes the output streamvoidstoreHeader(Properties header) Stores the header properties into the output filevoidstoreHeader(Properties header, String subProcess) Writes header information into exported sub process repository.voidstoreRecord(RepositoryLogRecord record) Stores a RepositoryLogRecord into the proper text format
- 
Constructor Details- 
CompatibilityRepositoryExporterCreates an instance for storing records in a file in a Basic or Advanced text format.- Parameters:
- outputFile- output file
- formatter- formatter to use when converting LogRecords into text
- Throws:
- IOException- if an I/O error has occurred
 
- 
CompatibilityRepositoryExporterCreates an instance for writing records into a stream in a Basic or Advanced text format.- Parameters:
- out- output stream.
- formatter- formatter to use when converting LogRecords into text
- See Also:
 
 
- 
- 
Method Details- 
closepublic void close()flushes and closes the output stream- Specified by:
- closein interface- RepositoryExporter
 
- 
storeHeaderStores the header properties into the output file- Specified by:
- storeHeaderin interface- RepositoryExporter
- Parameters:
- header- Properties (key/value) storing header information
 
- 
storeHeaderDescription copied from interface:RepositoryExporterWrites header information into exported sub process repository. This call starts export of a new sub process instance. It should be called after all records of the main process were exported withRepositoryExporter.storeRecord(RepositoryLogRecord).- Specified by:
- storeHeaderin interface- RepositoryExporter
- Parameters:
- header- Header information related to all consequent log records.
- subProcess- String identifier of the sub process. Use the key corresponding to the sub process used in- ServerInstanceLogRecordList.getChildren()map.
 
- 
storeRecordStores a RepositoryLogRecord into the proper text format- Specified by:
- storeRecordin interface- RepositoryExporter
- Parameters:
- record- RepositoryLogRecord which formatter will convert to Basic or Advanced output format
 
 
-