Class DataEngineRegistrationHandler
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineRegistrationHandler
-
public class DataEngineRegistrationHandler extends Object
DataEngineRegistrationHandler manages SoftwareServerCapability objects from external data engines. It runs server-side in the DataEngine OMAS and creates software server capability entities through the SoftwareServerCapabilityHandler.
-
-
Constructor Summary
Constructors Constructor Description DataEngineRegistrationHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, SoftwareServerCapabilityHandler<SoftwareServerCapability> softwareServerCapabilityHandler)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 a software server capability entity from an external data enginevoidremoveExternalDataEngine(String userId, String qualifiedName, String externalSourceName, DeleteSemantic deleteSemantic)StringupsertExternalDataEngine(String userId, SoftwareServerCapability softwareServerCapability)Create the software server capability entity from an external data engine
-
-
-
Constructor Detail
-
DataEngineRegistrationHandler
public DataEngineRegistrationHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, SoftwareServerCapabilityHandler<SoftwareServerCapability> softwareServerCapabilityHandler)
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 errorsrepositoryHandler- manages calls to the repository servicesrepositoryHelper- provides utilities for manipulating the repository services objectssoftwareServerCapabilityHandler- handler for the creation of SoftwareServerCapability objects
-
-
Method Detail
-
upsertExternalDataEngine
public String upsertExternalDataEngine(String userId, SoftwareServerCapability softwareServerCapability) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create the software server capability entity from an external data engine- Parameters:
userId- the name of the calling usersoftwareServerCapability- 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 a software server capability entity from an external data engine- Parameters:
userId- identifier of calling userqualifiedName- qualified name of the external data engine- Returns:
- the guid of the 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
-
-