java.lang.Object
org.odpi.openmetadata.repositoryservices.archiveutilities.OMRSArchiveWriter
Direct Known Subclasses:
BigGlossariesArchiveWriter, CanonicalGlossaryOwlArchiveWriter, CocoTypesArchiveWriter, EgeriaBaseArchiveWriter, OpenMetadataTypesArchiveWriter, SimpleCatalogsArchiveWriter

public class OMRSArchiveWriter extends Object
OMRSArchiveWriter creates physical open metadata archive files for the supplied open metadata archives encoded using Open Metadata Repository Services (OMRS) formats. To use it, create a subclass that builds the archive content in memory and then writes it out.
  • Constructor Details

    • OMRSArchiveWriter

      public OMRSArchiveWriter()
      Default constructor
  • Method Details

    • getOpenMetadataArchiveFileConnection

      protected Connection getOpenMetadataArchiveFileConnection(String fileName)
      Return the connection for an open metadata archive file.
      Parameters:
      fileName - name of the archive file
      Returns:
      OCF Connection used to create the file-based open metadata archive
    • writeOpenMetadataArchive

      protected void writeOpenMetadataArchive(String outputFileName, OpenMetadataArchive openMetadataArchive)
      Generates and writes out an open metadata archive containing all the open metadata types.
      Parameters:
      outputFileName - name of file to write archive to
      openMetadataArchive - archive content
    • writeOpenMetadataArchive

      protected void writeOpenMetadataArchive(String outputFileName, OpenMetadataArchive openMetadataArchive, AuditLog auditLog)
      Generates and writes out an open metadata archive containing all the open metadata types.
      Parameters:
      outputFileName - name of file to write archive to
      openMetadataArchive - archive content
      auditLog - logging destination