Class SurveyActionServiceConnector
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.Connector
org.odpi.openmetadata.frameworks.connectors.ConnectorBase
org.odpi.openmetadata.frameworks.surveyaction.SurveyActionServiceConnector
- All Implemented Interfaces:
org.odpi.openmetadata.frameworks.auditlog.AuditLoggingComponent,org.odpi.openmetadata.frameworks.connectors.SecureConnectorExtension,org.odpi.openmetadata.frameworks.connectors.VirtualConnectorExtension,SurveyActionService
- Direct Known Subclasses:
SurveyActionPipelineConnector
public abstract class SurveyActionServiceConnector
extends org.odpi.openmetadata.frameworks.connectors.ConnectorBase
implements SurveyActionService, org.odpi.openmetadata.frameworks.auditlog.AuditLoggingComponent
SurveyActionServiceConnector describes a specific type of connector that is responsible for analyzing the content
of a specific asset. Information about the asset to analyze is passed in the survey context.
The returned discovery context also contains the results.
Some discovery services manage the invocation of other discovery services. These discovery services are called
discovery pipelines.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidFree up any resources held since the connector is no longer needed.org.odpi.openmetadata.frameworks.auditlog.ComponentDescriptionReturn the component description that is used by this connector in the audit log.getJSONProperties(Object properties) Convert the supplied properties object to a JSON String.voidsetAuditLog(org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Receive an audit log object that can be used to record audit log messages.voidsetSurveyActionServiceName(String surveyActionServiceName) Set up the survey action service name.voidsetSurveyContext(SurveyContext surveyContext) Set up details of the asset to analyze and the results of any previous analysis.voidstart()Indicates that the survey action service is completely configured and can begin processing.Methods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
equals, getConnectedAssetProperties, getConnection, getConnectorInstanceId, hashCode, initialize, initializeConnectedAssetProperties, initializeEmbeddedConnectors, initializeSecretsStoreConnector, isActive, toStringMethods inherited from class org.odpi.openmetadata.frameworks.connectors.Connector
clearStatisticProperty, clearStatisticTimestamp, getConnectorStatistics, getStatisticCounter, getStatisticProperty, getStatisticTimestamp, incrementStatisticCounter, initializeStatisticCounter, setStatisticProperty, setStatisticTimestamp
-
Constructor Details
-
SurveyActionServiceConnector
public SurveyActionServiceConnector()
-
-
Method Details
-
setAuditLog
public void setAuditLog(org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Receive an audit log object that can be used to record audit log messages. The caller has initialized it with the correct component description and log destinations.- Specified by:
setAuditLogin interfaceorg.odpi.openmetadata.frameworks.auditlog.AuditLoggingComponent- Parameters:
auditLog- audit log object
-
getConnectorComponentDescription
public org.odpi.openmetadata.frameworks.auditlog.ComponentDescription getConnectorComponentDescription()Return the component description that is used by this connector in the audit log.- Specified by:
getConnectorComponentDescriptionin interfaceorg.odpi.openmetadata.frameworks.auditlog.AuditLoggingComponent- Returns:
- id, name, description, wiki page URL.
-
getJSONProperties
public String getJSONProperties(Object properties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Convert the supplied properties object to a JSON String.- Parameters:
properties- properties object- Returns:
- properties as a JSON String
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- parsing error
-
setSurveyContext
Set up details of the asset to analyze and the results of any previous analysis.- Parameters:
surveyContext- information about the asset to analyze and the results of analysis of other survey action service request. Partial results from other survey action services run as part of the same survey action service request may also be stored in the newAnnotations list.
-
setSurveyActionServiceName
Set up the survey action service name. This is used in error messages.- Parameters:
surveyActionServiceName- name of the survey action service
-
start
public void start() throws org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedExceptionIndicates that the survey action service is completely configured and can begin processing. This is where the function of the survey action service is implemented. This is a standard method from the Open Connector Framework (OCF) so be sure to call super.start() in your version.- Overrides:
startin classorg.odpi.openmetadata.frameworks.connectors.ConnectorBase- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException- there is a problem within the survey action service.
-
disconnect
public void disconnect() throws org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedExceptionFree up any resources held since the connector is no longer needed.- Overrides:
disconnectin classorg.odpi.openmetadata.frameworks.connectors.ConnectorBase- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException- there is a problem within the connector.
-