Class GovernanceServerServiceInstanceHandler
java.lang.Object
org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstanceHandler
org.odpi.openmetadata.commonservices.multitenant.AuditableServerServiceInstanceHandler
org.odpi.openmetadata.commonservices.multitenant.GovernanceServerServiceInstanceHandler
- Direct Known Subclasses:
OMESServiceInstanceHandler
GovernanceServerServiceInstanceHandler provides the base class for a governance
server's instance handler.
-
Constructor Summary
ConstructorsConstructorDescriptionGovernanceServerServiceInstanceHandler(String serviceName) Constructor passes the service name that is used on all calls to this instance. -
Method Summary
Modifier and TypeMethodDescriptionorg.odpi.openmetadata.commonservices.ffdc.properties.ConnectorReportvalidateConnector(String connectorProviderClassName, Class<?> requiredConnectorInterface, String serviceName) Return a description of the connector for the requested connector provider after validating that the resulting connector implements the correct interface.Methods inherited from class org.odpi.openmetadata.commonservices.multitenant.AuditableServerServiceInstanceHandler
getAuditLogMethods inherited from class org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstanceHandler
getServerSecurityVerifier, getServiceName, isServerActive, removeServerServiceInstance
-
Constructor Details
-
GovernanceServerServiceInstanceHandler
Constructor passes the service name that is used on all calls to this instance.- Parameters:
serviceName- unique identifier for this service with a human meaningful value
-
-
Method Details
-
validateConnector
public org.odpi.openmetadata.commonservices.ffdc.properties.ConnectorReport validateConnector(String connectorProviderClassName, Class<?> requiredConnectorInterface, String serviceName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectionCheckedException, org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException, ClassNotFoundException, InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException Return a description of the connector for the requested connector provider after validating that the resulting connector implements the correct interface. This method is for tools that are configuring connector into an Egeria governance server. Each integration service/engine service has a specific REST API endpoint for their service. The configuration tool calls it and this method is called. Because the method is in the instance handler, a result can be returned for all registered services (the service does not need to be configured and running).- Parameters:
connectorProviderClassName- name of the connector provider classrequiredConnectorInterface- connector interface classserviceName- service name- Returns:
- Connector report bean
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is nullorg.odpi.openmetadata.frameworks.connectors.ffdc.ConnectionCheckedException- the connection passed to the connector provider is not validorg.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException- the connector is not validClassNotFoundException- when the provided class cannot be foundInstantiationException- when the provided class cannot be instantiatedIllegalAccessException- when there is insufficient access to instantiate the provided classNoSuchMethodException- the default constructor is missingInvocationTargetException- unable to call the default constructor
-