Class 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.
    • Constructor Detail

      • OMAGServerServiceInstance

        public OMAGServerServiceInstance​(String serverName,
                                         String serverType,
                                         String serviceName,
                                         int maxPageSize)
        Default constructor
        Parameters:
        serverName - name of the new server
        serverType - type for new server
        serviceName - name of the new service instance
        maxPageSize - 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 server
        serviceName - name of the new service instance
        maxPageSize - 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
      • 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.