Class DiscoveryPipeline
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.Connector
-
- org.odpi.openmetadata.frameworks.connectors.ConnectorBase
-
- org.odpi.openmetadata.frameworks.discovery.DiscoveryService
-
- org.odpi.openmetadata.frameworks.discovery.DiscoveryPipeline
-
- All Implemented Interfaces:
AuditLoggingComponent,VirtualConnectorExtension
public abstract class DiscoveryPipeline extends DiscoveryService implements VirtualConnectorExtension
DiscoveryPipeline is a discovery service that is responsible for choreographing the discovery services passed on initializeEmbeddedConnectors.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
ConnectorBase.ProtectedConnection
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Connector>embeddedConnectorsprotected List<DiscoveryService>embeddedDiscoveryServices-
Fields inherited from class org.odpi.openmetadata.frameworks.discovery.DiscoveryService
auditLog, discoveryContext, discoveryServiceName
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
connectedAssetProperties, connectionBean, connectionProperties, connectorInstanceId, securedProperties
-
-
Constructor Summary
Constructors Constructor Description DiscoveryPipeline()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddisconnect()Free up any resources held since the connector is no longer needed.voidinitializeEmbeddedConnectors(List<Connector> embeddedConnectors)Set up the list of discovery services connectors that will be invoked as part of this discovery pipeline.protected abstract voidrunDiscoveryPipeline()This implementation provides an inline sequential invocation of the supplied discovery services.voidstart()Start the pipeline.-
Methods inherited from class org.odpi.openmetadata.frameworks.discovery.DiscoveryService
getDiscoveryContext, getEmbeddedDiscoveryServices, handleUnexpectedException, setAuditLog, setDiscoveryContext, setDiscoveryServiceName
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
equals, getConnectedAssetProperties, getConnection, getConnectorInstanceId, hashCode, initialize, initializeConnectedAssetProperties, isActive, toString
-
-
-
-
Field Detail
-
embeddedDiscoveryServices
protected List<DiscoveryService> embeddedDiscoveryServices
-
-
Method Detail
-
initializeEmbeddedConnectors
public void initializeEmbeddedConnectors(List<Connector> embeddedConnectors)
Set up the list of discovery services connectors that will be invoked as part of this discovery pipeline. The connectors are initialized waiting to start. After start() is called on the discovery pipeline, it will choreograph the invocation of its embedded discovery services by calling start() to each of them when they are to run. Similarly for disconnect().- Specified by:
initializeEmbeddedConnectorsin interfaceVirtualConnectorExtension- Parameters:
embeddedConnectors- list of embedded connectors that are hopefully discovery services
-
start
public void start() throws ConnectorCheckedExceptionStart the pipeline.- Overrides:
startin classDiscoveryService- Throws:
ConnectorCheckedException- there is a problem within the discovery service.
-
runDiscoveryPipeline
protected abstract void runDiscoveryPipeline() throws ConnectorCheckedExceptionThis implementation provides an inline sequential invocation of the supplied discovery services.- Throws:
ConnectorCheckedException- there is a problem within the discovery service.
-
disconnect
public void disconnect() throws ConnectorCheckedExceptionFree up any resources held since the connector is no longer needed.- Overrides:
disconnectin classDiscoveryService- Throws:
ConnectorCheckedException- there is a problem within the discovery service.
-
-