Class BasicFileStoreConnector

java.lang.Object
org.odpi.openmetadata.frameworks.connectors.Connector
org.odpi.openmetadata.frameworks.connectors.ConnectorBase
org.odpi.openmetadata.adapters.connectors.datastore.basicfile.BasicFileStoreConnector
All Implemented Interfaces:
BasicFileStore, org.odpi.openmetadata.frameworks.connectors.SecureConnectorExtension

public class BasicFileStoreConnector extends org.odpi.openmetadata.frameworks.connectors.ConnectorBase implements BasicFileStore
BasicFileStoreConnector works with files to retrieve simple objects.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Close the file
    Return the Java File object that provides access to the file.
    void
    initialize(String connectorInstanceId, org.odpi.openmetadata.frameworks.connectors.properties.ConnectionProperties connectionProperties)
    Initialize the connector.

    Methods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase

    equals, getConnectedAssetProperties, getConnection, getConnectorInstanceId, hashCode, initializeConnectedAssetProperties, initializeSecretsStoreConnector, isActive, start, toString

    Methods inherited from class org.odpi.openmetadata.frameworks.connectors.Connector

    clearStatisticProperty, clearStatisticTimestamp, getConnectorStatistics, getStatisticCounter, getStatisticProperty, getStatisticTimestamp, incrementStatisticCounter, initializeStatisticCounter, setStatisticProperty, setStatisticTimestamp

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • BasicFileStoreConnector

      public BasicFileStoreConnector()
  • Method Details

    • initialize

      public void initialize(String connectorInstanceId, org.odpi.openmetadata.frameworks.connectors.properties.ConnectionProperties connectionProperties)
      Initialize the connector.
      Overrides:
      initialize in class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
      Parameters:
      connectorInstanceId - - unique id for the connector instance - useful for messages etc
      connectionProperties - - POJO for the configuration used to create the connector.
    • getFile

      public File getFile() throws FileException
      Return the Java File object that provides access to the file.
      Specified by:
      getFile in interface BasicFileStore
      Returns:
      File object
      Throws:
      FileException - problem accessing the file
    • disconnect

      public void disconnect()
      Close the file
      Overrides:
      disconnect in class org.odpi.openmetadata.frameworks.connectors.ConnectorBase