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:
IntegrationDaemonInstanceHandler
,OMESServiceInstanceHandler
GovernanceServerServiceInstanceHandler provides the base class for a governance
server's instance handler.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstanceHandler
platformInstanceMap, serviceName
-
Constructor Summary
ConstructorDescriptionGovernanceServerServiceInstanceHandler
(String serviceName) Constructor passes the service name that is used on all calls to this instance. -
Method Summary
Modifier and TypeMethodDescriptionvalidateConnector
(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
getAuditLog
Methods inherited from class org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstanceHandler
getServerSecurityVerifier, getServerServiceInstance, getServiceName, isServerActive, removeServerServiceInstance
-
Field Details
-
invalidParameterHandler
-
-
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 ConnectorReport validateConnector(String connectorProviderClassName, Class<?> requiredConnectorInterface, String serviceName) throws InvalidParameterException, ConnectionCheckedException, 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:
InvalidParameterException
- one of the parameters is nullConnectionCheckedException
- the connection passed to the connector provider is not validConnectorCheckedException
- 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
-