Class OMAGServerServiceInstance
java.lang.Object
org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstance
- Direct Known Subclasses:
AuditableServerServiceInstance,OMAGOperationalServicesInstance,OMRSRepositoryServicesInstance
OMAGServerServiceInstance represents an instance of a service in an OMAG Server.
It is also responsible for registering itself in the instance map.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected InvalidParameterHandlerprotected intprotected OpenMetadataServerSecurityVerifierprotected Stringprotected String -
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 TypeMethodDescriptionReturn the handler for validating parameters.Return the server name.Return the current status of the service.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.voidsetServiceInstanceStatus(ServerInstanceStatus serviceInstanceStatus) Set up the current status of the service.voidshutdown()Unregister this instance from the instance map.
-
Field Details
-
serverName
-
serviceName
-
maxPageSize
protected int maxPageSize -
invalidParameterHandler
-
securityVerifier
-
-
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
-
setServerName
Set the server name.- Parameters:
serverName- name of this OMAG server
-
setServiceInstanceStatus
Set up the current status of the service.- Parameters:
serviceInstanceStatus- new status
-
getServiceInstanceStatus
Return the current status of the service.- Returns:
- server instance status enum
-
setSecurityVerifier
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
Return the handler for validating parameters.- Returns:
- invalid parameter handler
-
shutdown
public void shutdown()Unregister this instance from the instance map.
-