Class OMAGServerServiceInstance
java.lang.Object
org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstance
- Direct Known Subclasses:
AuditableServerServiceInstance
OMAGServerServiceInstance represents an instance of a service in an OMAG Server.
It is also responsible for registering itself in the instance map.
-
Constructor Summary
ConstructorsConstructorDescriptionOMAGServerServiceInstance(String serverName, String serviceName, int maxPageSize) Default constructorOMAGServerServiceInstance(String serverName, String serverType, String serviceName, int maxPageSize) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionorg.odpi.openmetadata.commonservices.ffdc.InvalidParameterHandlerReturn the handler for validating parameters.Return the server name.org.odpi.openmetadata.serveroperations.properties.ServerInstanceStatusReturn the current status of the service.Return this service's official name.voidsetMaxPageSize(int maxPageSize) Override the default maximum paging size.voidsetSecurityVerifier(org.odpi.openmetadata.metadatasecurity.server.OpenMetadataServerSecurityVerifier securityVerifier) Set up a new security verifier (the handler runs with a default verifier until this method is called).voidsetServiceInstanceStatus(org.odpi.openmetadata.serveroperations.properties.ServerInstanceStatus serviceInstanceStatus) Set up the current status of the service.voidshutdown()Unregister this instance from the instance map.
-
Constructor Details
-
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
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 Details
-
setServiceInstanceStatus
public void setServiceInstanceStatus(org.odpi.openmetadata.serveroperations.properties.ServerInstanceStatus serviceInstanceStatus) Set up the current status of the service.- Parameters:
serviceInstanceStatus- new status
-
getServiceInstanceStatus
public org.odpi.openmetadata.serveroperations.properties.ServerInstanceStatus getServiceInstanceStatus()Return the current status of the service.- Returns:
- server instance status enum
-
setSecurityVerifier
public void setSecurityVerifier(org.odpi.openmetadata.metadatasecurity.server.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
Return the server name.- Returns:
- serverName name of the server for this instance
- Throws:
NewInstanceException- a problem occurred during initialization
-
getServiceName
Return this service's official name.- Returns:
- name
-
getInvalidParameterHandler
public org.odpi.openmetadata.commonservices.ffdc.InvalidParameterHandler getInvalidParameterHandler()Return the handler for validating parameters.- Returns:
- invalid parameter handler
-
shutdown
public void shutdown()Unregister this instance from the instance map.
-