Class DataEngineConnectorBase
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.Connector
-
- org.odpi.openmetadata.frameworks.connectors.ConnectorBase
-
- org.odpi.openmetadata.governanceservers.dataengineproxy.connectors.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
ConnectorBase.ProtectedConnection
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
connectedAssetProperties, connectionBean, connectionProperties, connectorInstanceId, securedProperties
-
-
Constructor Summary
Constructors Constructor Description DataEngineConnectorBase()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<? super Referenceable>getChangedDataStores(Date from, Date to)Retrieve a list of the changed data stores between the dates and times provided.List<LineageMapping>getChangedLineageMappings(Date from, Date to)Retrieve a list of the changed lineage mappings between the dates and times provided.List<Process>getChangedProcesses(Date from, Date to)Retrieve a list of the changed processes between the dates and times provided.List<ProcessHierarchy>getChangedProcessHierarchies(Date from, Date to)Retrieve a list of the changed process hierarchies between the dates and times provided.List<SchemaType>getChangedSchemaTypes(Date from, Date to)Retrieve a list of the changed schema types between the dates and times provided.DategetChangesLastSynced()Retrieve the date and time at which changes were last synchronized.DategetOldestChangeSince(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.booleanrequiresPolling()Indicates whether the data engine requires polling (true) or is capable of notifying of changes on its own (false).voidsetChangesLastSynced(Date time)Persist the date and time at which changes were last successfully synchronized.-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
disconnect, equals, getConnectedAssetProperties, getConnection, getConnectorInstanceId, hashCode, initialize, 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
-
Methods inherited from interface org.odpi.openmetadata.governanceservers.dataengineproxy.connectors.DataEngineInterface
getDataEngineDetails
-
-
-
-
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:
requiresPollingin interfaceDataEngineInterface- Returns:
- boolean
-
getChangesLastSynced
public Date getChangesLastSynced() throws ConnectorCheckedException, PropertyServerException
Retrieve the date and time at which changes were last synchronized.- Specified by:
getChangesLastSyncedin interfaceDataEngineInterface- Returns:
- Date
- Throws:
ConnectorCheckedExceptionPropertyServerException
-
setChangesLastSynced
public void setChangesLastSynced(Date time) throws ConnectorCheckedException, PropertyServerException
Persist the date and time at which changes were last successfully synchronized.- Specified by:
setChangesLastSyncedin interfaceDataEngineInterface- Parameters:
time- the time to record for the last synchronization- Throws:
ConnectorCheckedExceptionPropertyServerException
-
getOldestChangeSince
public Date getOldestChangeSince(Date time) throws ConnectorCheckedException, PropertyServerException
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:
getOldestChangeSincein interfaceDataEngineInterface- Parameters:
time- the time from which to look for the oldest change- Returns:
- Date
- Throws:
ConnectorCheckedExceptionPropertyServerException
-
getChangedSchemaTypes
public List<SchemaType> getChangedSchemaTypes(Date from, Date to) throws ConnectorCheckedException, PropertyServerException
Retrieve a list of the changed schema types between the dates and times provided.- Specified by:
getChangedSchemaTypesin interfaceDataEngineInterface- 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>- Throws:
ConnectorCheckedExceptionPropertyServerException
-
getChangedDataStores
public List<? super Referenceable> getChangedDataStores(Date from, Date to) throws ConnectorCheckedException, PropertyServerException
Retrieve a list of the changed data stores between the dates and times provided.- Specified by:
getChangedDataStoresin interfaceDataEngineInterface- 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>- Throws:
ConnectorCheckedExceptionPropertyServerException
-
getChangedProcesses
public List<Process> getChangedProcesses(Date from, Date to) throws ConnectorCheckedException, PropertyServerException
Retrieve a list of the changed processes between the dates and times provided.- Specified by:
getChangedProcessesin interfaceDataEngineInterface- 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>- Throws:
ConnectorCheckedExceptionPropertyServerException
-
getChangedProcessHierarchies
public List<ProcessHierarchy> getChangedProcessHierarchies(Date from, Date to) throws ConnectorCheckedException, PropertyServerException
Retrieve a list of the changed process hierarchies between the dates and times provided.- Specified by:
getChangedProcessHierarchiesin interfaceDataEngineInterface- 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>- Throws:
ConnectorCheckedExceptionPropertyServerException
-
getChangedLineageMappings
public List<LineageMapping> getChangedLineageMappings(Date from, Date to) throws ConnectorCheckedException, PropertyServerException
Retrieve a list of the changed lineage mappings between the dates and times provided.- Specified by:
getChangedLineageMappingsin interfaceDataEngineInterface- 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>- Throws:
ConnectorCheckedExceptionPropertyServerException
-
-