Class OMAGServerOperationalInstanceHandler

java.lang.Object
org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstanceHandler
org.odpi.openmetadata.adminservices.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 Summary

    Constructors
    Constructor
    Description
    Constructor passes the service name that is used on all calls to this instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.odpi.openmetadata.adminservices.server.OMAGOperationalServicesInstance
    getServerServiceInstance(String userId, String serverName, String serviceOperationName)
    Get the object containing the properties for this server.

    Methods inherited from class org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstanceHandler

    getServerSecurityVerifier, getServiceName, isServerActive, removeServerServiceInstance

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 org.odpi.openmetadata.adminservices.server.OMAGOperationalServicesInstance getServerServiceInstance(String userId, String serverName, String serviceOperationName) throws org.odpi.openmetadata.commonservices.ffdc.exceptions.InvalidParameterException, org.odpi.openmetadata.commonservices.ffdc.exceptions.UserNotAuthorizedException, org.odpi.openmetadata.commonservices.ffdc.exceptions.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.commonservices.ffdc.exceptions.InvalidParameterException - the server name is not known
      org.odpi.openmetadata.commonservices.ffdc.exceptions.UserNotAuthorizedException - the user is not authorized to issue the request.
      org.odpi.openmetadata.commonservices.ffdc.exceptions.PropertyServerException - the service name is not known - indicating a logic error