Class OMRSArchiveManager
java.lang.Object
org.odpi.openmetadata.repositoryservices.archivemanager.OMRSArchiveManager
OMRSArchiveManager manages the loading and unloading of open metadata archives from the local OMRS repository.
An open metadata archive provides pre-built definitions for types and metadata instances.
-
Constructor Summary
ConstructorDescriptionOMRSArchiveManager
(List<OpenMetadataArchiveStoreConnector> startUpOpenMetadataArchives, AuditLog auditLog) Constructor to save the initial list of open metadata archives from the server startup configuration. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addOpenMetadataArchive
(OpenMetadataArchiveStore archiveStore, String archiveSource) Add a new archive to the local repository.void
close()
Close down any open archives.void
setLocalRepository
(String localMetadataCollectionId, OMRSRepositoryContentManager repositoryContentManager, LocalOMRSInstanceEventProcessor instanceProcessor) The local repository is accessed through its inbound event processors.
-
Constructor Details
-
OMRSArchiveManager
public OMRSArchiveManager(List<OpenMetadataArchiveStoreConnector> startUpOpenMetadataArchives, AuditLog auditLog) Constructor to save the initial list of open metadata archives from the server startup configuration. These will be processed as soon as the event processors are supplied from the local repository.- Parameters:
startUpOpenMetadataArchives
- initial list of open metadata archives provided in startup configurationauditLog
- audit log for this component.
-
-
Method Details
-
close
public void close()Close down any open archives. -
setLocalRepository
public void setLocalRepository(String localMetadataCollectionId, OMRSRepositoryContentManager repositoryContentManager, LocalOMRSInstanceEventProcessor instanceProcessor) throws RepositoryErrorException The local repository is accessed through its inbound event processors. A server will always have the local Content Manager and TypeDef Processor but the local Instance Processor is only available if the local server has a metadata repository defined.- Parameters:
localMetadataCollectionId
- unique identifier of the local repositoryrepositoryContentManager
- typeDef processor for the local repositoryinstanceProcessor
- instance processor for the local repository- Throws:
RepositoryErrorException
- there is a problem accessing the archive
-
addOpenMetadataArchive
public void addOpenMetadataArchive(OpenMetadataArchiveStore archiveStore, String archiveSource) throws RepositoryErrorException Add a new archive to the local repository. If there are problems processing the archive, an exception is thrown. This method allows archives to be loaded into a running server.- Parameters:
archiveStore
- new open metadata archive to processarchiveSource
- source of the archive- Throws:
RepositoryErrorException
- there is a problem accessing the archive
-