Class OMRSArchiveWriter
java.lang.Object
org.odpi.openmetadata.repositoryservices.archiveutilities.OMRSArchiveWriter
- Direct Known Subclasses:
BigGlossariesArchiveWriter
,CanonicalGlossaryOwlArchiveWriter
,CocoTypesArchiveWriter
,EgeriaBaseArchiveWriter
,OpenMetadataTypesArchiveWriter
,SimpleCatalogsArchiveWriter
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Connection
getOpenMetadataArchiveFileConnection
(String fileName) Return the connection for an open metadata archive file.protected void
writeOpenMetadataArchive
(String outputFileName, OpenMetadataArchive openMetadataArchive) Generates and writes out an open metadata archive containing all the open metadata types.protected void
writeOpenMetadataArchive
(String outputFileName, OpenMetadataArchive openMetadataArchive, AuditLog auditLog) Generates and writes out an open metadata archive containing all the open metadata types.
-
Constructor Details
-
OMRSArchiveWriter
public OMRSArchiveWriter()Default constructor
-
-
Method Details
-
getOpenMetadataArchiveFileConnection
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 toopenMetadataArchive
- 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 toopenMetadataArchive
- archive contentauditLog
- logging destination
-