Class OSSUnityCatalogServerSurveyBase
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.unitycatalog.survey.OSSUnityCatalogServerSurveyBase
- All Implemented Interfaces:
- AuditLoggingComponent,- SecureConnectorExtension,- VirtualConnectorExtension,- SurveyActionService
- Direct Known Subclasses:
- OSSUnityCatalogInsideCatalogSurveyService,- OSSUnityCatalogInsideSchemaSurveyService,- OSSUnityCatalogServerSurveyService
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected static classInformation about a UC resource collected for the inventory.Nested classes/interfaces inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBaseConnectorBase.ProtectedConnection
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected StringThis is the point after which the processing stops.Fields inherited from class org.odpi.openmetadata.frameworks.opensurvey.SurveyActionServiceConnectorauditLog, connector, embeddedConnectors, objectMapper, propertyHelper, surveyActionServiceName, surveyContextFields inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBaseconnectionBean, connectorInstanceId, messageFormatter, secretsStoreConnectorMap
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected StringReturn the name of the catalog to survey; or throw an exception if there is no catalog name.protected ResourceProfileAnnotationPropertiesgetNameListAnnotation(AnnotationType annotationType, Map<String, OSSUnityCatalogServerSurveyBase.ResourceProperties> nameProperties) Fill out a name list annotation.protected StringReturn the name of the schema to survey; or throw an exception if there is no schema name.protected voidRetrieve any configured final analysis stepprotected voidwriteInventory(String inventoryName, Map<String, OSSUnityCatalogServerSurveyBase.ResourceProperties> catalogList, Map<String, OSSUnityCatalogServerSurveyBase.ResourceProperties> schemaList, Map<String, OSSUnityCatalogServerSurveyBase.ResourceProperties> functionList, Map<String, OSSUnityCatalogServerSurveyBase.ResourceProperties> tableList, Map<String, OSSUnityCatalogServerSurveyBase.ResourceProperties> volumeList) Add an inventory annotation to the survey report.Methods inherited from class org.odpi.openmetadata.frameworks.opensurvey.SurveyActionServiceConnectordisconnect, getConnectorComponentDescription, getEmbeddedSurveyActionServices, getJSONProperties, getRootSchemaType, getSurveyContext, handleUnexpectedException, performCheckAssetAnalysisStep, performCheckAssetAnalysisStep, setAuditLog, setSurveyActionServiceName, setSurveyContext, setUpAnnotation, start, throwMissingSchemaType, writeNameCountInventory, writeNameDescriptionInventory, writeNameListInventory, writePropertyListInventoryMethods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBasecombineConfigurationProperties, disconnectConnectors, equals, fromCanonicalToKebabCase, fromCanonicalToSnakeCase, fromKebabToCanonicalCase, fromSnakeToCanonicalCase, getArrayConfigurationProperty, getArrayConfigurationProperty, getArrayConfigurationProperty, getBooleanConfigurationProperty, getConnection, getConnectorInstanceId, getDateConfigurationProperty, getIntConfigurationProperty, getLongConfigurationProperty, getStringConfigurationProperty, getStringConfigurationProperty, getSuppliedPlaceholderProperties, hashCode, initialize, initializeEmbeddedConnectors, initializeSecretsStoreConnector, isActive, logExceptionRecord, logRecord, logRecord, throwMissingConfigurationProperty, throwMissingEndpointAddress, throwMissingResource, throwNoAsset, throwWrongTypeOfAsset, throwWrongTypeOfResource, throwWrongTypeOfRootSchema, toStringMethods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorclearStatisticProperty, clearStatisticTimestamp, getConnectorStatistics, getStatisticCounter, getStatisticProperty, getStatisticTimestamp, incrementStatisticCounter, initializeStatisticCounter, refreshStatistics, setStatisticProperty, setStatisticTimestamp
- 
Field Details- 
finalAnalysisStepThis is the point after which the processing stops. The default is PRODUCE_INVENTORY - which is the last analysis step. It can be changed through configuration properties or request parameters passed when this survey action service is called.
 
- 
- 
Constructor Details- 
OSSUnityCatalogServerSurveyBasepublic OSSUnityCatalogServerSurveyBase()
 
- 
- 
Method Details- 
setFinalAnalysisStepRetrieve any configured final analysis step- Throws:
- ConnectorCheckedException- problem with context
- UserNotAuthorizedException- connector is disconnected
 
- 
getNameListAnnotationprotected ResourceProfileAnnotationProperties getNameListAnnotation(AnnotationType annotationType, Map<String, OSSUnityCatalogServerSurveyBase.ResourceProperties> nameProperties) Fill out a name list annotation.- Parameters:
- annotationType- type of annotation
- nameProperties- list of names with properties
- Returns:
- annotation
 
- 
getCatalogNameReturn the name of the catalog to survey; or throw an exception if there is no catalog name.- Returns:
- name of the catalog to survey
- Throws:
- ConnectorCheckedException- the catalog name is not specified
- UserNotAuthorizedException- connector is disconnected
 
- 
getSchemaNameReturn the name of the schema to survey; or throw an exception if there is no schema name.- Returns:
- name of the catalog to survey
- Throws:
- ConnectorCheckedException- the catalog name is not specified
- UserNotAuthorizedException- connector is disconnected
 
- 
writeInventoryprotected void writeInventory(String inventoryName, Map<String, OSSUnityCatalogServerSurveyBase.ResourceProperties> catalogList, Map<String, throws ConnectorCheckedException, InvalidParameterException, PropertyServerException, UserNotAuthorizedException, IOExceptionOSSUnityCatalogServerSurveyBase.ResourceProperties> schemaList, Map<String, OSSUnityCatalogServerSurveyBase.ResourceProperties> functionList, Map<String, OSSUnityCatalogServerSurveyBase.ResourceProperties> tableList, Map<String, OSSUnityCatalogServerSurveyBase.ResourceProperties> volumeList) Add an inventory annotation to the survey report.- Parameters:
- inventoryName- name of the inventory
- catalogList- list of catalog names and descriptions
- schemaList- list of schema names and descriptions
- functionList- list of function names and descriptions
- tableList- list of table names and descriptions
- volumeList- list of volume names and descriptions
- Throws:
- IOException- problem writing file
- InvalidParameterException- problem creating CSV file asset
- PropertyServerException- repository problem creating CSV file asset
- UserNotAuthorizedException- authorization problem creating CSV file asset
- ConnectorCheckedException- survey has been asked to stop
 
 
-