public abstract class OMAGServerServiceInstanceHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
protected OMAGServerPlatformInstanceMap |
platformInstanceMap |
protected String |
serviceName |
| Constructor and Description |
|---|
OMAGServerServiceInstanceHandler(String serviceName)
Constructor passes the service name that is used on all calls to this instance.
|
| Modifier and Type | Method and Description |
|---|---|
OpenMetadataServerSecurityVerifier |
getServerSecurityVerifier(String userId,
String serverName)
Return the security verifier for the server.
|
protected OMAGServerServiceInstance |
getServerServiceInstance(String userId,
String serverName,
String serviceOperationName)
Get the object containing the properties for this server.
|
String |
getServiceName()
Return the service's official name
|
boolean |
isServerActive(String userId,
String serverName)
Return whether a particular server is registered with the platform.
|
void |
removeServerServiceInstance(String serverName)
Remove the instance for this server.
|
protected OMAGServerPlatformInstanceMap platformInstanceMap
protected String serviceName
public OMAGServerServiceInstanceHandler(String serviceName)
serviceName - unique identifier for this service with a human meaningful valuepublic String getServiceName()
public boolean isServerActive(String userId, String serverName) throws UserNotAuthorizedException
userId - calling user or null if it is an anonymous requestserverName - name of the serverUserNotAuthorizedException - the user is not authorized to issue the request.public OpenMetadataServerSecurityVerifier getServerSecurityVerifier(String userId, String serverName) throws InvalidParameterException
userId - calling user or null if it is an anonymous requestserverName - name of the serverInvalidParameterException - the server name is not knownprotected OMAGServerServiceInstance getServerServiceInstance(String userId, String serverName, String serviceOperationName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userserverName - name of this serverserviceOperationName - name of the REST API call (typically the top-level methodName)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 errorpublic void removeServerServiceInstance(String serverName)
serverName - name of the serverCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.