public abstract class DiscoveryService extends ConnectorBase
ConnectorBase.ProtectedConnection| Modifier and Type | Field and Description |
|---|---|
protected DiscoveryContext |
discoveryContext |
protected String |
discoveryServiceName |
connectedAssetProperties, connectionBean, connectionProperties, connectorInstanceId, isActive, 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 void |
handleUnexpectedException(String methodName,
Throwable error)
Provide a common exception for unexpected errors.
|
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
public 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()
public void start()
throws ConnectorCheckedException
start in class ConnectorBaseDiscoveryServiceException - there is a problem within the discovery service.ConnectorCheckedExceptionprotected 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 connector.Copyright © 2018–2019 ODPi. All rights reserved.