Class GovernanceServerServiceInstanceHandler

Direct Known Subclasses:
OMESServiceInstanceHandler

public class GovernanceServerServiceInstanceHandler extends AuditableServerServiceInstanceHandler
GovernanceServerServiceInstanceHandler provides the base class for a governance server's instance handler.
  • Constructor Details

    • GovernanceServerServiceInstanceHandler

      public GovernanceServerServiceInstanceHandler(String serviceName)
      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.openmetadata.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 class
      requiredConnectorInterface - connector interface class
      serviceName - service name
      Returns:
      Connector report bean
      Throws:
      org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException - one of the parameters is null
      org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectionCheckedException - the connection passed to the connector provider is not valid
      org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException - the connector is not valid
      ClassNotFoundException - when the provided class cannot be found
      InstantiationException - when the provided class cannot be instantiated
      IllegalAccessException - when there is insufficient access to instantiate the provided class
      NoSuchMethodException - the default constructor is missing
      InvocationTargetException - unable to call the default constructor