Class DataEngineConnectorBase

  • All Implemented Interfaces:
    DataEngineInterface

    public abstract class DataEngineConnectorBase
    extends ConnectorBase
    implements DataEngineInterface
    Base implementation of a Data Engine Connector, implementing all of the required methods any Data Engine Connector is expected to provide (via the DataEngineInterface). It is an abstract class as on its own it does absolutely nothing, and therefore a Data Engine Connector needs to extend it and override at least one of the methods to actually do something.
    • Constructor Detail

      • DataEngineConnectorBase

        public DataEngineConnectorBase()
        Default constructor
    • Method Detail

      • requiresPolling

        public boolean requiresPolling()
        Indicates whether the data engine requires polling (true) or is capable of notifying of changes on its own (false).
        Specified by:
        requiresPolling in interface DataEngineInterface
        Returns:
        boolean
      • setChangesLastSynced

        public void setChangesLastSynced​(Date time)
        Persist the date and time at which changes were last successfully synchronized.
        Specified by:
        setChangesLastSynced in interface DataEngineInterface
        Parameters:
        time - the time to record for the last synchronization
      • getOldestChangeSince

        public Date getOldestChangeSince​(Date time)
        Retrieve the date of the oldest change since the time specified, or if there were no changes since the time specified return null.
        Specified by:
        getOldestChangeSince in interface DataEngineInterface
        Parameters:
        time - the time from which to look for the oldest change
        Returns:
        Date
      • getChangedSchemaTypes

        public List<SchemaType> getChangedSchemaTypes​(Date from,
                                                      Date to)
        Retrieve a list of the changed schema types between the dates and times provided.
        Specified by:
        getChangedSchemaTypes in interface DataEngineInterface
        Parameters:
        from - the date and time from which to look for changes (exclusive)
        to - the date and time up to which to look for changes (inclusive)
        Returns:
        List<SchemaType>
      • getChangedDataStores

        public List<? super Referenceable> getChangedDataStores​(Date from,
                                                                Date to)
        Retrieve a list of the changed data stores between the dates and times provided.
        Specified by:
        getChangedDataStores in interface DataEngineInterface
        Parameters:
        from - the date and time from which to look for changes (exclusive)
        to - the date and time up to which to look for changes (inclusive)
        Returns:
        List<SchemaType>
      • getChangedProcesses

        public List<Process> getChangedProcesses​(Date from,
                                                 Date to)
        Retrieve a list of the changed processes between the dates and times provided.
        Specified by:
        getChangedProcesses in interface DataEngineInterface
        Parameters:
        from - the date and time from which to look for changes (exclusive)
        to - the date and time up to which to look for changes (inclusive)
        Returns:
        List<Process>
      • getChangedProcessHierarchies

        public List<ProcessHierarchy> getChangedProcessHierarchies​(Date from,
                                                                   Date to)
        Retrieve a list of the changed process hierarchies between the dates and times provided.
        Specified by:
        getChangedProcessHierarchies in interface DataEngineInterface
        Parameters:
        from - the date and time from which to look for changes (exclusive)
        to - the date and time up to which to look for changes (inclusive)
        Returns:
        List<ProcessHierarchy>
      • getChangedLineageMappings

        public List<LineageMapping> getChangedLineageMappings​(Date from,
                                                              Date to)
        Retrieve a list of the changed lineage mappings between the dates and times provided.
        Specified by:
        getChangedLineageMappings in interface DataEngineInterface
        Parameters:
        from - the date and time from which to look for changes (exclusive)
        to - the date and time up to which to look for changes (inclusive)
        Returns:
        List<LineageMapping>