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.
-
Constructor Summary
ConstructorsConstructorDescriptionDataEngineRegistrationHandler(String serviceName, String serverName, org.odpi.openmetadata.commonservices.ffdc.InvalidParameterHandler invalidParameterHandler, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, org.odpi.openmetadata.commonservices.generichandlers.SoftwareCapabilityHandler<org.odpi.openmetadata.accessservices.dataengine.model.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 engineorg.odpi.openmetadata.accessservices.dataengine.model.ProcessingStategetProcessingStateClassification(String userId, String externalSourceName) Retrieves the ProcessingState Classification for the data enginevoidremoveExternalDataEngine(String userId, String qualifiedName, String externalSourceName, org.odpi.openmetadata.accessservices.dataengine.model.DeleteSemantic deleteSemantic) Removes the data engine.upsertExternalDataEngine(String userId, org.odpi.openmetadata.accessservices.dataengine.model.Engine engine) Create the engine entity from an external data enginevoidupsertProcessingStateClassification(String userId, org.odpi.openmetadata.accessservices.dataengine.model.ProcessingState processingState, String externalSourceName) Sets the ProcessingState Classification for the data engine
-
Constructor Details
-
DataEngineRegistrationHandler
public DataEngineRegistrationHandler(String serviceName, String serverName, org.odpi.openmetadata.commonservices.ffdc.InvalidParameterHandler invalidParameterHandler, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, org.odpi.openmetadata.commonservices.generichandlers.SoftwareCapabilityHandler<org.odpi.openmetadata.accessservices.dataengine.model.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, org.odpi.openmetadata.accessservices.dataengine.model.Engine engine) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.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:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the bean properties are invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing the property server
-
getExternalDataEngine
public String getExternalDataEngine(String userId, String qualifiedName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.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:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem retrieving the discovery engine definition
-
removeExternalDataEngine
public void removeExternalDataEngine(String userId, String qualifiedName, String externalSourceName, org.odpi.openmetadata.accessservices.dataengine.model.DeleteSemantic deleteSemantic) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.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:
org.odpi.openmetadata.repositoryservices.ffdc.exception.FunctionNotSupportedException- no implemented, it will throw an exception
-
upsertProcessingStateClassification
public void upsertProcessingStateClassification(String userId, org.odpi.openmetadata.accessservices.dataengine.model.ProcessingState processingState, String externalSourceName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Sets the ProcessingState Classification for the data engine- Parameters:
userId- identifier of calling userprocessingState- the processing stateexternalSourceName- the external data engine- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem retrieving the discovery engine definition
-
getProcessingStateClassification
public org.odpi.openmetadata.accessservices.dataengine.model.ProcessingState getProcessingStateClassification(String userId, String externalSourceName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.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:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem retrieving the discovery engine definition
-