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

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

    Nested classes/interfaces inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase

    org.odpi.openmetadata.frameworks.connectors.ConnectorBase.ProtectedConnection
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
     

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

    connectedAssetProperties, connectionBean, connectionProperties, connectorInstanceId, securedProperties
  • 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.
    protected File
    getFile(String methodName)
    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, 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

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • fileStoreName

      protected String fileStoreName
  • 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
    • getFile

      protected File getFile(String methodName) throws FileException
      Return the Java File object that provides access to the file.
      Parameters:
      methodName - , calling method
      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