Class OMRSArchiveWriter


  • public class OMRSArchiveWriter
    extends java.lang.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 Detail

      • OMRSArchiveWriter

        public OMRSArchiveWriter()
        Default constructor
    • Method Detail

      • getOpenMetadataArchiveFileConnection

        protected Connection getOpenMetadataArchiveFileConnection​(java.lang.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​(java.lang.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​(java.lang.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