Class OMAGServerOperationalInstanceHandler

java.lang.Object
org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstanceHandler
org.odpi.openmetadata.serveroperations.server.OMAGServerOperationalInstanceHandler

public class OMAGServerOperationalInstanceHandler extends org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstanceHandler
OMAGServerServiceInstanceHandler retrieves information from the instance map for an OMAG server service instance. The instance map is thread-safe. Instances are added and removed during server initialization and termination.
  • Constructor Details

    • OMAGServerOperationalInstanceHandler

      public OMAGServerOperationalInstanceHandler(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

    • getServerServiceInstance

      public OMAGOperationalServicesInstance getServerServiceInstance(String userId, String serverName, String serviceOperationName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Get the object containing the properties for this server.
      Parameters:
      userId - calling user
      serverName - name of this server
      serviceOperationName - name of the REST API call (typically the top-level methodName)
      Returns:
      specific service instance
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - the server name is not known
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user is not authorized to issue the request.
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - the service name is not known - indicating a logic error