Class DataEngineRegistrationHandler
java.lang.Object
org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineRegistrationHandler
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 -
Constructor Summary
ConstructorsConstructorDescriptionDataEngineRegistrationHandler
(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
Modifier and TypeMethodDescriptiongetExternalDataEngine
(String userId, String qualifiedName) Return the guid of an engine entity from an external data enginegetProcessingStateClassification
(String userId, String externalSourceName) Retrieves the ProcessingState Classification for the data enginevoid
removeExternalDataEngine
(String userId, String qualifiedName, String externalSourceName, DeleteSemantic deleteSemantic) Removes the data engine.upsertExternalDataEngine
(String userId, Engine engine) Create the engine entity from an external data enginevoid
upsertProcessingStateClassification
(String userId, ProcessingState processingState, String externalSourceName) Sets the ProcessingState Classification for the data engine
-
Field Details
-
SYNC_DATES_BY_KEY
- See Also:
-
-
Constructor Details
-
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 Details
-
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 Removes the data engine. Currently not implemented, it will throw aFunctionNotSupportedException
- Parameters:
userId
- identifier of calling userqualifiedName
- qualified name of the external data engineexternalSourceName
- the external data enginedeleteSemantic
- the delete semantic- Throws:
FunctionNotSupportedException
- no implemented, it will throw an exception
-
upsertProcessingStateClassification
public void upsertProcessingStateClassification(String userId, ProcessingState processingState, String externalSourceName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Sets the ProcessingState Classification for the data engine- Parameters:
userId
- identifier of calling userprocessingState
- the processing stateexternalSourceName
- 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
-
getProcessingStateClassification
public ProcessingState getProcessingStateClassification(String userId, String externalSourceName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Retrieves the ProcessingState Classification for the data engine- Parameters:
userId
- identifier of calling userexternalSourceName
- the external data engine- Returns:
- the ProcessingState Classification for the 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
-