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
ConstructorsConstructorDescriptionOMAGServerOperationalInstanceHandler(String serviceName) Constructor passes the service name that is used on all calls to this instance. -
Method Summary
Modifier and TypeMethodDescriptionorg.odpi.openmetadata.adminservices.server.OMAGOperationalServicesInstancegetServerServiceInstance(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
-
Constructor Details
-
OMAGServerOperationalInstanceHandler
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 userserverName- name of this serverserviceOperationName- 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 knownorg.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
-