Class IntegrationConnectorBase

    • Field Detail

      • connectorName

        protected java.lang.String connectorName
      • embeddedConnectors

        protected java.util.List<Connector> embeddedConnectors
    • Constructor Detail

      • IntegrationConnectorBase

        public IntegrationConnectorBase()
    • Method Detail

      • 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
      • initializeEmbeddedConnectors

        public void initializeEmbeddedConnectors​(java.util.List<Connector> embeddedConnectors)
        Set up the list of connectors that this virtual connector will use to support its interface. The connectors are initialized waiting to start. When start() is called on the virtual connector, it needs to pass start() to each of the embedded connectors. Similarly for disconnect().
        Specified by:
        initializeEmbeddedConnectors in interface VirtualConnectorExtension
        Parameters:
        embeddedConnectors - list of connectors
      • setConnectorName

        public void setConnectorName​(java.lang.String connectorName)
        Set up the connector name for logging.
        Specified by:
        setConnectorName in interface IntegrationConnector
        Parameters:
        connectorName - connector name from the configuration
      • engage

        public void engage()
                    throws ConnectorCheckedException
        This method is for blocking calls to wait for new metadata. It is called from its own thread iff the connector is configured to have its own thread. It is recommended that the engage() method returns when each blocking call completes. The integration daemon will pause a second and then call engage() again. This pattern enables the calling thread to detect the shutdown of the integration daemon. This method should be overridden if the connector needs to issue calls that wait for new metadata. If this specific implementation is called a message is logged in the audit log because there is probably a mismatch between the configuration and the connector implementation.
        Specified by:
        engage in interface IntegrationConnector
        Throws:
        ConnectorCheckedException - there is a problem within the connector.