public abstract class DiscoveryService extends ConnectorBase implements AuditLoggingComponent
ConnectorBase.ProtectedConnection| Modifier and Type | Field and Description |
|---|---|
protected AuditLog |
auditLog |
protected DiscoveryContext |
discoveryContext |
protected String |
discoveryServiceName |
connectedAssetProperties, connectionBean, connectionProperties, connectorInstanceId, securedProperties| Constructor and Description |
|---|
DiscoveryService() |
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect()
Free up any resources held since the connector is no longer needed.
|
DiscoveryContext |
getDiscoveryContext()
Return the discovery context for this discovery service.
|
protected List<DiscoveryService> |
getEmbeddedDiscoveryServices(List<Connector> embeddedConnectors)
Retrieve and validate the list of embedded connectors and cast them to discovery service connector.
|
protected void |
handleUnexpectedException(String methodName,
Throwable error)
Provide a common exception for unexpected errors.
|
void |
setAuditLog(AuditLog auditLog)
Receive an audit log object that can be used to record audit log messages.
|
void |
setDiscoveryContext(DiscoveryContext discoveryContext)
Set up details of the asset to analyze and the results of any previous analysis.
|
void |
setDiscoveryServiceName(String discoveryServiceName)
Set up the discovery service name.
|
void |
start()
Indicates that the discovery service is completely configured and can begin processing.
|
equals, getConnectedAssetProperties, getConnection, getConnectorInstanceId, hashCode, initialize, initializeConnectedAssetProperties, isActive, toStringprotected String discoveryServiceName
protected DiscoveryContext discoveryContext
protected AuditLog auditLog
public void setAuditLog(AuditLog auditLog)
setAuditLog in interface AuditLoggingComponentauditLog - audit log objectpublic void setDiscoveryContext(DiscoveryContext discoveryContext)
discoveryContext - information about the asset to analyze and the results of analysis of
other discovery service request. Partial results from other discovery
services run as part of the same discovery service request may also be
stored in the newAnnotations list.public void setDiscoveryServiceName(String discoveryServiceName)
discoveryServiceName - name of the discovery servicepublic DiscoveryContext getDiscoveryContext()
protected List<DiscoveryService> getEmbeddedDiscoveryServices(List<Connector> embeddedConnectors) throws DiscoveryServiceException
embeddedConnectors - list of supplied connector instances supplied by the Connector Broker.DiscoveryServiceException - one of the embedded connectors is not a discovery servicepublic void start()
throws ConnectorCheckedException
start in class ConnectorBaseConnectorCheckedException - there is a problem within the discovery service.protected void handleUnexpectedException(String methodName, Throwable error) throws ConnectorCheckedException
methodName - calling methoderror - caught exceptionConnectorCheckedException - wrapped exceptionpublic void disconnect()
throws ConnectorCheckedException
disconnect in class ConnectorBaseConnectorCheckedException - there is a problem within the discovery service.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.