Class ConnectorProviderBase

    • Field Detail

      • connectorInterfaces

        protected java.util.List<java.lang.String> connectorInterfaces
    • Constructor Detail

      • ConnectorProviderBase

        public ConnectorProviderBase()
        Typical constructor
    • Method Detail

      • getNewConnectorGUID

        protected java.lang.String getNewConnectorGUID()
        Each connector has a guid to make it easier to correlate log messages from the various components that serve it. It uses a type 4 (pseudo randomly generated) UUID. The UUID is generated using a cryptographically strong pseudo random number generator.
        Returns:
        guid for a new connector instance
      • getConnectorClassName

        public java.lang.String getConnectorClassName()
        Return the class name for the connector that the connector provider generates.
        Returns:
        connectorClassName will be null initially.
      • setConnectorClassName

        protected void setConnectorClassName​(java.lang.String newConnectorClassName)
        Update the class name for this connector provider.
        Parameters:
        newConnectorClassName - this must be a valid Java class name for a class that implements the org.odpi.openmetadata.Connector interface.
      • setConnectorComponentDescription

        protected void setConnectorComponentDescription​(ComponentDescription connectorComponentDescription)
        Update the component name to use in the creation of the connector's audit log.
        Parameters:
        connectorComponentDescription - component description.
      • setAuditLog

        public void setAuditLog​(AuditLog auditLog)
        Receive an audit log object that can be used to record audit log messages. The caller has initialized it with the correct component description and log destinations.
        Specified by:
        setAuditLog in interface AuditLoggingComponent
        Parameters:
        auditLog - audit log object
      • getConnectorTypeProperties

        public ConnectorTypeProperties getConnectorTypeProperties()
        Returns the properties about the type of connector that this Connector Provider supports.
        Specified by:
        getConnectorTypeProperties in class ConnectorProvider
        Returns:
        properties including the name of the connector type, the connector provider class and any specific connection properties that are recognized by this connector.
      • getConnectorType

        public ConnectorType getConnectorType()
        Returns the properties about the type of connector that this ConnectorTypeManager supports.
        Specified by:
        getConnectorType in class ConnectorProvider
        Returns:
        properties including the name of the connector type, the connector provider class and any specific connection properties that are recognized by this connector.
      • setConnectorTypeProperties

        protected void setConnectorTypeProperties​(ConnectorType connectorTypeBean)
        Setter method to enable a subclass to set up the connector type properties that are added to a connection properties object. The connector type properties guide the ConnectorBroker and ConnectorProvider on how to create and configure a Connector instance.
        Parameters:
        connectorTypeBean - default properties for this type of connector
      • hashCode

        public int hashCode()
        Provide a common implementation of hashCode for all OCF Connector Provider objects. The UUID is unique and is randomly assigned and so its hashCode is as good as anything to describe the hash code of the properties object.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        random UUID as hashcode
      • equals

        public boolean equals​(java.lang.Object object)
        Provide a common implementation of equals for all OCF Connector Provider objects. The UUID is unique and is randomly assigned and so its hashCode is as good as anything to evaluate the equality of the connector provider object.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        object - object to test
        Returns:
        boolean flag
      • toString

        public java.lang.String toString()
        Standard toString method.
        Overrides:
        toString in class java.lang.Object
        Returns:
        print out of variables in a JSON-style