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
public class GovernanceServerServiceInstanceHandler extends AuditableServerServiceInstanceHandler
GovernanceServerServiceInstanceHandler provides the base class for a governance server's instance handler.
-
-
Field Summary
Fields Modifier and Type Field Description protected InvalidParameterHandlerinvalidParameterHandler-
Fields inherited from class org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstanceHandler
platformInstanceMap, serviceName
-
-
Constructor Summary
Constructors Constructor Description GovernanceServerServiceInstanceHandler(String serviceName)Constructor passes the service name that is used on all calls to this instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectorReportvalidateConnector(String connectorProviderClassName, Class<?> requiredConnectorInterface, String serviceName)Return the connector type 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 Detail
-
invalidParameterHandler
protected final InvalidParameterHandler invalidParameterHandler
-
-
Constructor Detail
-
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 Detail
-
validateConnector
public ConnectorReport validateConnector(String connectorProviderClassName, Class<?> requiredConnectorInterface, String serviceName) throws InvalidParameterException, ConnectionCheckedException, ConnectorCheckedException, ClassNotFoundException, InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException
Return the connector type 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:
- ConnectorType 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
-
-