java.lang.Object
org.odpi.openmetadata.governanceservers.enginehostservices.admin.GovernanceServiceCache

public class GovernanceServiceCache extends Object
GovernanceServiceCache maintains the information about a registered governance service. A single governance service may be registered using different request types and analysis parameter pairs.
  • Method Details

    • getGovernanceServiceName

      public String getGovernanceServiceName()
      Simple getter for the governance service name - used in messages.
      Returns:
      name
    • getGovernanceServiceGUID

      public String getGovernanceServiceGUID()
      Simple getter for the governance service's unique identifier (GUID).
      Returns:
      string guid
    • getServiceRequestType

      public String getServiceRequestType()
      Simple getter for the requestType to pass to governance service.
      Returns:
      string name
    • getRequestParameters

      public Map<String,String> getRequestParameters(Map<String,String> suppliedRequestParameters)
      Return the request/analysis parameters to use if none supplied from the caller - these can be null too.
      Parameters:
      suppliedRequestParameters - request parameters from the caller
      Returns:
      map of string property name to string property value
    • getNextGovernanceService

      public Connector getNextGovernanceService() throws InvalidParameterException, PropertyServerException
      Return a governance service connector instance using the registered properties for the governance service.
      Returns:
      connector
      Throws:
      InvalidParameterException - bad connection
      PropertyServerException - problem with the governance service connector