Class DataEngineConnectionAndEndpointHandler
java.lang.Object
org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineConnectionAndEndpointHandler
DataEngineConnectionAndEndpointHandler manages Connection and Endpoint objects from the property server. It runs server-side
in the DataEngine OMAS and creates Connection and Endpoint entities with wire relationships through the OMRSRepositoryConnector.
-
Constructor Summary
ConstructorsConstructorDescriptionDataEngineConnectionAndEndpointHandler(org.odpi.openmetadata.commonservices.ffdc.InvalidParameterHandler invalidParameterHandler, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName, DataEngineCommonHandler dataEngineCommonHandler, org.odpi.openmetadata.commonservices.generichandlers.ConnectionHandler<org.odpi.openmetadata.accessservices.dataengine.model.Connection> connectionHandler, org.odpi.openmetadata.commonservices.generichandlers.EndpointHandler<org.odpi.openmetadata.accessservices.dataengine.model.Endpoint> endpointHandler, org.odpi.openmetadata.commonservices.generichandlers.ConnectorTypeHandler<org.odpi.openmetadata.accessservices.dataengine.model.ConnectorType> connectorTypeHandler) Construct the handler information needed to interact with the repository services -
Method Summary
Modifier and TypeMethodDescriptionvoidremoveConnection(String userId, String connectionGUID, org.odpi.openmetadata.accessservices.dataengine.model.DeleteSemantic deleteSemantic, String externalSourceName, String externalSourceGUID) Remove the connectionvoidremoveEndpoint(String userId, String endpointGUID, org.odpi.openmetadata.accessservices.dataengine.model.DeleteSemantic deleteSemantic, String externalSourceName, String externalSourceGUID) Remove the endpointvoidupsertConnectionAndEndpoint(String assetQualifiedName, String assetGUID, String assetTypeName, String protocol, String networkAddress, String externalSourceGUID, String externalSourceName, String userID) Constructs an Endpoint linked to a Connection, which in turn links it to provided asset
-
Constructor Details
-
DataEngineConnectionAndEndpointHandler
public DataEngineConnectionAndEndpointHandler(org.odpi.openmetadata.commonservices.ffdc.InvalidParameterHandler invalidParameterHandler, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName, DataEngineCommonHandler dataEngineCommonHandler, org.odpi.openmetadata.commonservices.generichandlers.ConnectionHandler<org.odpi.openmetadata.accessservices.dataengine.model.Connection> connectionHandler, org.odpi.openmetadata.commonservices.generichandlers.EndpointHandler<org.odpi.openmetadata.accessservices.dataengine.model.Endpoint> endpointHandler, org.odpi.openmetadata.commonservices.generichandlers.ConnectorTypeHandler<org.odpi.openmetadata.accessservices.dataengine.model.ConnectorType> connectorTypeHandler) Construct the handler information needed to interact with the repository services- Parameters:
invalidParameterHandler- handler for managing parameter errorsrepositoryHelper- provides utilities for manipulating the repository services objectsserviceName- service nameserverName- server namedataEngineCommonHandler- provides common Data Engine OMAS utilitiesconnectionHandler- provides utilities specific for manipulating ConnectionendpointHandler- provides utilities specific for manipulating EndpointconnectorTypeHandler- provides utilities specific for manipulating ConnectorType
-
-
Method Details
-
upsertConnectionAndEndpoint
public void upsertConnectionAndEndpoint(String assetQualifiedName, String assetGUID, String assetTypeName, String protocol, String networkAddress, String externalSourceGUID, String externalSourceName, String userID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Constructs an Endpoint linked to a Connection, which in turn links it to provided asset- Parameters:
assetQualifiedName- asset qualified nameassetGUID- asset GUIDassetTypeName- asset type nameprotocol- property of EndpointnetworkAddress- property of EndpointexternalSourceGUID- external source guidexternalSourceName- external source nameuserID- user id- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- if invalid parametersorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- if errors in repositoryorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- if user not authorized
-
removeConnection
public void removeConnection(String userId, String connectionGUID, org.odpi.openmetadata.accessservices.dataengine.model.DeleteSemantic deleteSemantic, String externalSourceName, String externalSourceGUID) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.FunctionNotSupportedException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Remove the connection- Parameters:
userId- the name of the calling userconnectionGUID- unique identifier of the connection to be removeddeleteSemantic- the delete semanticexternalSourceName- the external data engineexternalSourceGUID- the external data engine GUID- 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 serverorg.odpi.openmetadata.repositoryservices.ffdc.exception.FunctionNotSupportedException- the repository does not support this call.
-
removeEndpoint
public void removeEndpoint(String userId, String endpointGUID, org.odpi.openmetadata.accessservices.dataengine.model.DeleteSemantic deleteSemantic, String externalSourceName, String externalSourceGUID) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.FunctionNotSupportedException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Remove the endpoint- Parameters:
userId- the name of the calling userendpointGUID- unique identifier of the endpoint to be removeddeleteSemantic- the delete semanticexternalSourceName- the external data engineexternalSourceGUID- the external data engine GUID- 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 serverorg.odpi.openmetadata.repositoryservices.ffdc.exception.FunctionNotSupportedException- the repository does not support this call.
-