Class OMAGServerOperationalInstanceHandler
java.lang.Object
org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstanceHandler
org.odpi.openmetadata.serveroperations.server.OMAGServerOperationalInstanceHandler
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.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstanceHandler
platformInstanceMap, serviceName -
Constructor Summary
ConstructorsConstructorDescriptionOMAGServerOperationalInstanceHandler(String serviceName) Constructor passes the service name that is used on all calls to this instance. -
Method Summary
Modifier and TypeMethodDescriptiongetServerServiceInstance(String userId, String serverName, String serviceOperationName) Get the object containing the properties for this server.getServerServiceInstance(String userId, String delegatingUserId, 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 OMAGOperationalServicesInstance getServerServiceInstance(String userId, String delegatingUserId, String serverName, String serviceOperationName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Get the object containing the properties for this server.- Overrides:
getServerServiceInstancein classOMAGServerServiceInstanceHandler- Parameters:
userId- calling userdelegatingUserId- external userId making requestserverName- name of this serverserviceOperationName- name of the REST API call (typically the top-level methodName)- Returns:
- specific service instance
- Throws:
InvalidParameterException- the server name is not knownUserNotAuthorizedException- the user is not authorized to issue the request.PropertyServerException- the service name is not known - indicating a logic error
-
getServerServiceInstance
public OMAGOperationalServicesInstance getServerServiceInstance(String userId, String serverName, String serviceOperationName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Get the object containing the properties for this server.- Overrides:
getServerServiceInstancein classOMAGServerServiceInstanceHandler- Parameters:
userId- calling userserverName- name of this serverserviceOperationName- name of the REST API call (typically the top-level methodName)- Returns:
- specific service instance
- Throws:
InvalidParameterException- the server name is not knownUserNotAuthorizedException- the user is not authorized to issue the request.PropertyServerException- the service name is not known - indicating a logic error
-