com.ibm.websphere.logging.hpel.writer
Class HPELZipRepositoryExporter
- java.lang.Object
-
- com.ibm.ws.logging.hpel.impl.AbstractHPELRepositoryExporter
-
- com.ibm.websphere.logging.hpel.writer.HPELZipRepositoryExporter
-
- All Implemented Interfaces:
- RepositoryExporter
public class HPELZipRepositoryExporter extends com.ibm.ws.logging.hpel.impl.AbstractHPELRepositoryExporter
Implementation of theRepositoryExporter
interface exporting log records in a compressed file containing HPEL formatted files.
-
-
Constructor Summary
Constructors Constructor and Description HPELZipRepositoryExporter(java.io.File archiveFile)
Constructs exporter storing log records in HPEL format.
-
Method Summary
Methods Modifier and Type Method and Description void
close()
Finishes writing exported repository and closes all open resources.protected com.ibm.ws.logging.hpel.LogRepositoryWriter
createSubWriter(java.lang.String pid, java.lang.String label, java.lang.String superPid)
protected com.ibm.ws.logging.hpel.LogRepositoryWriter
createWriter(java.lang.String pid, java.lang.String label)
-
-
-
Constructor Detail
-
HPELZipRepositoryExporter
public HPELZipRepositoryExporter(java.io.File archiveFile) throws java.io.IOException
Constructs exporter storing log records in HPEL format.- Parameters:
archiveFile
- output zipped file where repository log files will be created.- Throws:
java.io.IOException
- if an I/O error has occurred
-
-
Method Detail
-
close
public void close()
Description copied from interface:RepositoryExporter
Finishes writing exported repository and closes all open resources. Calling eitherRepositoryExporter.storeHeader(Properties)
orRepositoryExporter.storeRecord(RepositoryLogRecord)
after callingRepositoryExporter.close()
will result inIllegalStateException
being thrown.- Specified by:
close
in interfaceRepositoryExporter
- Overrides:
close
in classcom.ibm.ws.logging.hpel.impl.AbstractHPELRepositoryExporter
-
createWriter
protected com.ibm.ws.logging.hpel.LogRepositoryWriter createWriter(java.lang.String pid, java.lang.String label)
- Specified by:
createWriter
in classcom.ibm.ws.logging.hpel.impl.AbstractHPELRepositoryExporter
-
createSubWriter
protected com.ibm.ws.logging.hpel.LogRepositoryWriter createSubWriter(java.lang.String pid, java.lang.String label, java.lang.String superPid)
- Specified by:
createSubWriter
in classcom.ibm.ws.logging.hpel.impl.AbstractHPELRepositoryExporter
-
-