public class CompatibilityRepositoryExporter extends java.lang.Object implements RepositoryExporter
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 and Description |
|---|
CompatibilityRepositoryExporter(java.io.File outputFile,
HpelFormatter formatter)
Creates an instance for storing records in a file in a Basic or Advanced text format.
|
CompatibilityRepositoryExporter(java.io.PrintStream out,
HpelFormatter formatter)
Creates an instance for writing records into a stream in a Basic or Advanced text format.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
flushes and closes the output stream
|
void |
storeHeader(java.util.Properties header)
Stores the header properties into the output file
|
void |
storeHeader(java.util.Properties header,
java.lang.String subProcess)
Writes header information into exported sub process repository.
|
void |
storeRecord(RepositoryLogRecord record)
Stores a RepositoryLogRecord into the proper text format
|
public CompatibilityRepositoryExporter(java.io.File outputFile,
HpelFormatter formatter)
throws java.io.IOException
outputFile - output fileformatter - formatter to use when converting LogRecords into textjava.io.IOException - if an I/O error has occurredpublic CompatibilityRepositoryExporter(java.io.PrintStream out,
HpelFormatter formatter)
out - output stream.formatter - formatter to use when converting LogRecords into textHpelFormatterpublic void close()
close in interface RepositoryExporterpublic void storeHeader(java.util.Properties header)
storeHeader in interface RepositoryExporterheader - Properties (key/value) storing header informationpublic void storeHeader(java.util.Properties header,
java.lang.String subProcess)
RepositoryExporterRepositoryExporter.storeRecord(RepositoryLogRecord).storeHeader in interface RepositoryExporterheader - 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.public void storeRecord(RepositoryLogRecord record)
storeRecord in interface RepositoryExporterrecord - RepositoryLogRecord which formatter will convert to Basic or Advanced output format