Class DataEngineRegistrationHandler
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineRegistrationHandler
-
public class DataEngineRegistrationHandler extends Object
DataEngineRegistrationHandler manages Engine objects from external data engines. It runs server-side in the DataEngine OMAS and creates engine entities through the SoftwareCapabilityHandler.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSYNC_DATES_BY_KEY
-
Constructor Summary
Constructors Constructor Description DataEngineRegistrationHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, OMRSRepositoryHelper repositoryHelper, SoftwareCapabilityHandler<Engine> softwareServerCapabilityHandler, ClockService clockService)Construct the handler information needed to interact with the repository services
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetExternalDataEngine(String userId, String qualifiedName)Return the guid of an engine entity from an external data engineProcessingStategetProcessingStateClassification(String userId, String externalSourceName)voidremoveExternalDataEngine(String userId, String qualifiedName, String externalSourceName, DeleteSemantic deleteSemantic)StringupsertExternalDataEngine(String userId, Engine engine)Create the engine entity from an external data enginevoidupsertProcessingStateClassification(String userId, ProcessingState processingState, String externalSourceName)
-
-
-
Field Detail
-
SYNC_DATES_BY_KEY
public static final String SYNC_DATES_BY_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DataEngineRegistrationHandler
public DataEngineRegistrationHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, OMRSRepositoryHelper repositoryHelper, SoftwareCapabilityHandler<Engine> softwareServerCapabilityHandler, ClockService clockService)
Construct the handler information needed to interact with the repository services- Parameters:
serviceName- name of this serviceserverName- name of the local serverinvalidParameterHandler- handler for managing parameter errorsrepositoryHelper- provides utilities for manipulating the repository services objectssoftwareServerCapabilityHandler- handler for the creation of engine objects
-
-
Method Detail
-
upsertExternalDataEngine
public String upsertExternalDataEngine(String userId, Engine engine) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create the engine entity from an external data engine- Parameters:
userId- the name of the calling userengine- the entity of external data engine- Returns:
- unique identifier of the external data engine in the repository
- Throws:
InvalidParameterException- the bean properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property server
-
getExternalDataEngine
public String getExternalDataEngine(String userId, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Return the guid of an engine entity from an external data engine- Parameters:
userId- identifier of calling userqualifiedName- qualified name of the external data engine- Returns:
- the guid of the external data engine
- Throws:
InvalidParameterException- one of the parameters is null or invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem retrieving the discovery engine definition
-
removeExternalDataEngine
public void removeExternalDataEngine(String userId, String qualifiedName, String externalSourceName, DeleteSemantic deleteSemantic) throws FunctionNotSupportedException
- Throws:
FunctionNotSupportedException
-
upsertProcessingStateClassification
public void upsertProcessingStateClassification(String userId, ProcessingState processingState, String externalSourceName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
-
getProcessingStateClassification
public ProcessingState getProcessingStateClassification(String userId, String externalSourceName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
-
-