Class OMAGServerOperationalInstanceHandler
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstanceHandler
-
- org.odpi.openmetadata.adminservices.server.OMAGServerOperationalInstanceHandler
-
public class OMAGServerOperationalInstanceHandler extends 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.
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstanceHandler
platformInstanceMap, serviceName
-
-
Constructor Summary
Constructors Constructor Description OMAGServerOperationalInstanceHandler(String serviceName)Constructor passes the service name that is used on all calls to this instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.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 Detail
-
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 Detail
-
getServerServiceInstance
public org.odpi.openmetadata.adminservices.server.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
-
-