Class FileBasedOpenMetadataArchiveStoreConnector

All Implemented Interfaces:
AuditLoggingComponent, SecureConnectorExtension, VirtualConnectorExtension, OpenMetadataArchiveStore

public class FileBasedOpenMetadataArchiveStoreConnector extends OpenMetadataArchiveStoreConnector
FileBasedOpenMetadataArchiveStoreConnector provides a connector that can read an Open Metadata Archive file coded in JSON.
  • Constructor Details

    • FileBasedOpenMetadataArchiveStoreConnector

      public FileBasedOpenMetadataArchiveStoreConnector()
      Default constructor
  • Method Details

    • initialize

      public void initialize(String connectorInstanceId, ConnectionProperties connectionProperties)
      Retrieve the archive store information from the endpoint.
      Overrides:
      initialize in class ConnectorBase
      Parameters:
      connectorInstanceId - unique id for the connector instance useful for messages etc
      connectionProperties - POJO for the configuration used to create the connector.
    • getArchiveContents

      public OpenMetadataArchive getArchiveContents() throws RepositoryErrorException
      Return the contents of the archive.
      Returns:
      OpenMetadataArchive object
      Throws:
      RepositoryErrorException - there is a problem accessing the archive
    • setArchiveContents

      public void setArchiveContents(OpenMetadataArchive archiveContents)
      Set new contents into the archive. This overrides any content previously stored.
      Parameters:
      archiveContents - OpenMetadataArchive object
    • start

      public void start() throws ConnectorCheckedException
      Indicates that the connector is completely configured and can begin processing.
      Overrides:
      start in class ConnectorBase
      Throws:
      ConnectorCheckedException - there is a problem within the connector.
    • disconnect

      public void disconnect() throws ConnectorCheckedException
      Free up any resources held since the connector is no longer needed.
      Overrides:
      disconnect in class ConnectorBase
      Throws:
      ConnectorCheckedException - there is a problem within the connector.