Class DiscoveryContext
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.discovery.DiscoveryContext
-
public class DiscoveryContext extends Object
DiscoveryContext provides the discovery service with access to information about the discovery request along with the open metadata repository interfaces.
-
-
Constructor Summary
Constructors Constructor Description 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.DiscoveryContext(DiscoveryContext template)Copy/clone Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.Map<String,String>getAnalysisParameters()Return the properties that hold the parameters used to drive the discovery service's analysis.DiscoveryAnnotationStoregetAnnotationStore()Return the annotation store for the discovery engine.DiscoveryAssetCatalogStoregetAssetCatalogStore()Return the asset catalog store that provides the ability to query assets.StringgetAssetGUID()Return the unique identifier of the asset being discovered.DiscoveryAssetStoregetAssetStore()Return the asset store for the discovery engine.List<String>getRequestedAnnotationTypes()Return the list of annotation types required by the requester (null means all types available)inthashCode()Create a hash code for this element type.StringtoString()Standard toString method.
-
-
-
Constructor Detail
-
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
public DiscoveryContext(DiscoveryContext template)
Copy/clone Constructor- Parameters:
template- object being copied
-
-
Method Detail
-
getAssetGUID
public String getAssetGUID()
Return the unique identifier of the asset being discovered.- Returns:
- string guid
-
getAnalysisParameters
public Map<String,String> getAnalysisParameters()
Return the properties that hold the parameters used to drive the discovery service's analysis.- Returns:
- AdditionalProperties object storing the analysis parameters
-
getRequestedAnnotationTypes
public List<String> getRequestedAnnotationTypes()
Return the list of annotation types required by the requester (null means all types available)- Returns:
- list of type names
-
getAssetCatalogStore
public DiscoveryAssetCatalogStore getAssetCatalogStore()
Return the asset catalog store that provides the ability to query assets.- Returns:
- assetCatalogStore object
-
getAssetStore
public DiscoveryAssetStore 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
public DiscoveryAnnotationStore getAnnotationStore()
Return the annotation store for the discovery engine. This is where the annotations are stored and retrieved from.- Returns:
- annotation store
-
toString
public String toString()
Standard toString method.
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.
-
-