Class OMAGServerServiceInstance
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstance
-
- Direct Known Subclasses:
AuditableServerServiceInstance
public abstract class OMAGServerServiceInstance extends Object
OMAGServerServiceInstance represents an instance of a service in an OMAG Server. It is also responsible for registering itself in the instance map.
-
-
Field Summary
Fields Modifier and Type Field Description protected InvalidParameterHandlerinvalidParameterHandlerprotected intmaxPageSizeprotected OpenMetadataServerSecurityVerifiersecurityVerifierprotected StringserverNameprotected StringserviceName
-
Constructor Summary
Constructors Constructor Description OMAGServerServiceInstance(String serverName, String serviceName, int maxPageSize)Default constructorOMAGServerServiceInstance(String serverName, String serverType, String serviceName, int maxPageSize)Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InvalidParameterHandlergetInvalidParameterHandler()Return the handler for validating parameters.StringgetServerName()Return the server name.StringgetServiceName()Return this service's official name.voidsetMaxPageSize(int maxPageSize)Override the default maximum paging size.voidsetSecurityVerifier(OpenMetadataServerSecurityVerifier securityVerifier)Set up a new security verifier (the handler runs with a default verifier until this method is called).protected voidsetServerName(String serverName)Set the server name.voidshutdown()Unregister this instance from the instance map.
-
-
-
Field Detail
-
serverName
protected String serverName
-
serviceName
protected String serviceName
-
maxPageSize
protected int maxPageSize
-
invalidParameterHandler
protected InvalidParameterHandler invalidParameterHandler
-
securityVerifier
protected OpenMetadataServerSecurityVerifier securityVerifier
-
-
Constructor Detail
-
OMAGServerServiceInstance
public OMAGServerServiceInstance(String serverName, String serverType, String serviceName, int maxPageSize)
Default constructor- Parameters:
serverName- name of the new serverserverType- type for new serverserviceName- name of the new service instancemaxPageSize- maximum number of results that can be returned on a single call.
-
OMAGServerServiceInstance
public OMAGServerServiceInstance(String serverName, String serviceName, int maxPageSize)
Default constructor- Parameters:
serverName- name of the new serverserviceName- name of the new service instancemaxPageSize- maximum number of results that can be returned on a single call.
-
-
Method Detail
-
setServerName
protected void setServerName(String serverName)
Set the server name.- Parameters:
serverName- name of this OMAG server
-
setSecurityVerifier
public void setSecurityVerifier(OpenMetadataServerSecurityVerifier securityVerifier)
Set up a new security verifier (the handler runs with a default verifier until this method is called). The security verifier provides authorization checks for access and maintenance changes to open metadata. Authorization checks are enabled through the OpenMetadataServerSecurityConnector.- Parameters:
securityVerifier- new security verifier
-
setMaxPageSize
public void setMaxPageSize(int maxPageSize)
Override the default maximum paging size.- Parameters:
maxPageSize- new value
-
getServerName
public String getServerName() throws NewInstanceException
Return the server name.- Returns:
- serverName name of the server for this instance
- Throws:
NewInstanceException- a problem occurred during initialization
-
getServiceName
public String getServiceName()
Return this service's official name.- Returns:
- name
-
getInvalidParameterHandler
public InvalidParameterHandler getInvalidParameterHandler()
Return the handler for validating parameters.- Returns:
- invalid parameter handler
-
shutdown
public void shutdown()
Unregister this instance from the instance map.
-
-