com.ibm.websphere.logging.hpel.writer

Interface RepositoryExporter

All known implementing classes:
com.ibm.ws.logging.hpel.impl.AbstractHPELRepositoryExporter, CompatibilityRepositoryExporter, CompatibilityZipRepositoryExporter, HPELRepositoryExporter, HPELZipRepositoryExporter

  1. public interface RepositoryExporter
Interface for exporting read repository records into another repository.

Method Summary

Modifier and Type Method and Description
  1. void
close()
Finishes writing exported repository and closes all open resources.
  1. void
storeHeader(java.util.Properties header)
Writes header information into exported repository.
  1. void
storeHeader(java.util.Properties header,java.lang.String subProcess)
Writes header information into exported sub process repository.
  1. void
storeRecord(RepositoryLogRecord record)
Writes log record into exported repository.

Method Detail

storeHeader

  1. void storeHeader(java.util.Properties header)
Writes header information into exported repository. This call starts export of a new server instance.
Parameters:
header - Header information related to all consequent log records.

storeHeader

  1. void storeHeader(java.util.Properties header,
  2. java.lang.String subProcess)
Writes 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 with storeRecord(RepositoryLogRecord).
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.

storeRecord

  1. void storeRecord(RepositoryLogRecord record)
Writes log record into exported repository. Calling this method before storeHeader(Properties) will result in IllegalStateException being thrown.
Parameters:
record - log record to be exported.

close

  1. void close()
Finishes writing exported repository and closes all open resources. Calling either storeHeader(Properties) or storeRecord(RepositoryLogRecord) after calling close() will result in IllegalStateException being thrown.