Class DiscoveryContext
java.lang.Object
org.odpi.openmetadata.frameworks.discovery.DiscoveryContext
DiscoveryContext provides the discovery service with access to information about
the discovery request along with the open metadata repository interfaces.
-
Constructor Summary
ConstructorsConstructorDescriptionDiscoveryContext
(String userId, String assetGUID, Map<String, String> analysisParameters, List<String> requestedAnnotationTypes, DiscoveryAssetStore assetStore, DiscoveryAnnotationStore annotationStore, DiscoveryAssetCatalogStore assetCatalogStore) Constructor sets up the key parameters for accessing the annotations store.DiscoveryContext
(DiscoveryContext template) Copy/clone Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return the properties that hold the parameters used to drive the discovery service's analysis.Return the annotation store for the discovery engine.Return the asset catalog store that provides the ability to query assets.Return the unique identifier of the asset being discovered.Return the asset store for the discovery engine.Return the list of annotation types required by the requester (null means all types available)int
hashCode()
Create a hash code for this element type.toString()
Standard toString method.
-
Constructor Details
-
DiscoveryContext
public DiscoveryContext(String userId, String assetGUID, Map<String, String> analysisParameters, List<String> requestedAnnotationTypes, DiscoveryAssetStore assetStore, DiscoveryAnnotationStore annotationStore, DiscoveryAssetCatalogStore assetCatalogStore) Constructor sets up the key parameters for accessing the annotations store.- Parameters:
userId
- calling userassetGUID
- unique identifier of the asset that the annotations should be attached toanalysisParameters
- name-value properties to control the discovery servicerequestedAnnotationTypes
- annotation types to createassetStore
- discovery asset store for the discovery serviceannotationStore
- annotation store for the discovery serviceassetCatalogStore
- the asset catalog store that provides the ability to query assets.
-
DiscoveryContext
Copy/clone Constructor- Parameters:
template
- object being copied
-
-
Method Details
-
getAssetGUID
Return the unique identifier of the asset being discovered.- Returns:
- string guid
-
getAnalysisParameters
Return the properties that hold the parameters used to drive the discovery service's analysis.- Returns:
- AdditionalProperties object storing the analysis parameters
-
getRequestedAnnotationTypes
Return the list of annotation types required by the requester (null means all types available)- Returns:
- list of type names
-
getAssetCatalogStore
Return the asset catalog store that provides the ability to query assets.- Returns:
- assetCatalogStore object
-
getAssetStore
Return the asset store for the discovery engine. This is able to provide a connector to the asset configured with the properties of the asset from a property server.- Returns:
- asset store
-
getAnnotationStore
Return the annotation store for the discovery engine. This is where the annotations are stored and retrieved from.- Returns:
- annotation store
-
toString
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Create a hash code for this element type.
-