Class PostgresServerSurveyActionService
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.Connector
org.odpi.openmetadata.frameworks.connectors.ConnectorBase
org.odpi.openmetadata.frameworks.opensurvey.SurveyActionServiceConnector
org.odpi.openmetadata.adapters.connectors.postgres.survey.PostgresServerSurveyActionService
- All Implemented Interfaces:
AuditLoggingComponent,SecureConnectorExtension,VirtualConnectorExtension,SurveyActionService
PostgresServerSurveyActionService surveys each of the databases hosted by a PostgreSQL Database Server.
-
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.opensurvey.SurveyActionServiceConnector
connector, csvFileConnectorTypeGUID, embeddedConnectors, objectMapper, propertyHelper, surveyActionServiceName, surveyContextFields inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
auditLog, connectionBean, connectorInstanceId, messageFormatter, secretsStoreConnectorMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidFree up any resources held since the connector is no longer needed.voidstart()Indicates that the survey action service is completely configured and can begin processing.Methods inherited from class org.odpi.openmetadata.frameworks.opensurvey.SurveyActionServiceConnector
getArrayRequestOrConfigurationProperty, getConnectorComponentDescription, getEmbeddedSurveyActionServices, getJSONProperties, getRootSchemaType, getSurveyContext, handleUnexpectedException, hasReachedFinalAnalysisStep, isFinalAnalysisStep, performCheckAssetAnalysisStep, performCheckAssetAnalysisStep, setAuditLog, setCSVFileConnectorTypeGUID, setSurveyActionServiceName, setSurveyContext, setUpAnnotation, setUpAnnotation, setUpAnnotation, throwMissingSchemaType, throwNoAssetConnector, writeNameCountInventory, writeNameDescriptionInventory, writeNameListInventory, writePropertyListInventoryMethods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
combineConfigurationProperties, disconnectConnectors, equals, fromCamelToCanonicalCase, fromCanonicalToCamelCase, fromCanonicalToKebabCase, fromCanonicalToSnakeCase, fromKebabToCanonicalCase, fromSnakeToCanonicalCase, getArrayConfigurationProperty, getArrayConfigurationProperty, getArrayConfigurationProperty, getArrayValue, getBooleanConfigurationProperty, getConnection, getConnectorInstanceId, getDateConfigurationProperty, getIntConfigurationProperty, getLongConfigurationProperty, getSecretsCollectionName, getSecretsLocation, getSecretsProvider, getStringConfigurationProperty, getStringConfigurationProperty, getSuppliedPlaceholderProperties, hashCode, initialize, initializeEmbeddedConnectors, initializeSecretsStoreConnector, isActive, logExceptionRecord, logExceptionRecord, logRecord, logRecord, throwMissingConfigurationProperty, throwMissingElement, throwMissingEndpointAddress, throwMissingResource, throwNoAsset, throwWrongTypeOfAsset, throwWrongTypeOfResource, throwWrongTypeOfRootSchema, toStringMethods inherited from class org.odpi.openmetadata.frameworks.connectors.Connector
clearStatisticProperty, clearStatisticTimestamp, getConnectorStatistics, getStatisticCounter, getStatisticProperty, getStatisticTimestamp, incrementStatisticCounter, initializeStatisticCounter, refreshStatistics, setStatisticProperty, setStatisticTimestamp
-
Constructor Details
-
PostgresServerSurveyActionService
public PostgresServerSurveyActionService()
-
-
Method Details
-
start
Indicates that the survey action service is completely configured and can begin processing.
The survey is broken into short units of work so that it does not hold a database transaction open for its whole duration: every query runs in auto-commit mode, the connection to the server's postgres database is released before the individual databases are surveyed, and each database is surveyed through its own connection, which is released before the next database starts. A database that cannot be surveyed is logged and skipped, and the annotations for each database are stored as soon as that database is complete, so a problem late in a large survey does not discard the work done before it.- Overrides:
startin classSurveyActionServiceConnector- Throws:
ConnectorCheckedException- a problem within the discovery service.UserNotAuthorizedException- the connector was disconnected before/during start
-
disconnect
Free up any resources held since the connector is no longer needed.- Overrides:
disconnectin classSurveyActionServiceConnector- Throws:
ConnectorCheckedException- the connector detected a problem.
-