Class OMASServiceInstance


public class OMASServiceInstance extends AuditableServerServiceInstance
OMASServiceInstance caches references to OMRS objects for a specific server. It is also responsible for registering itself in the instance map.
  • Constructor Summary

    Constructors
    Constructor
    Description
    OMASServiceInstance(String serviceName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryConnector repositoryConnector, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog, String localServerUserId, int maxPageSize)
    Set up the local repository connector that will service the REST Calls.
    OMASServiceInstance(String serviceName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryConnector repositoryConnector, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog, String localServerUserId, int maxPageSize, String inTopicConnectorProviderName, org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection inTopicEventBusConnection, String outTopicConnectorProviderName, org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection outTopicEventBusConnection)
    Set up the local repository connector that will service the REST Calls.
    OMASServiceInstance(String serviceName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryConnector repositoryConnector, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog, String localServerUserId, int maxPageSize)
    Set up the local repository connector that will service the REST Calls.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection
    Return the connection used in the client to create a connector to send events from the in topic.
    org.odpi.openmetadata.commonservices.ffdc.rest.RegisteredOMAGService
    getRegisteredOMAGService(int accessServiceCode)
     
    Return the server name.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OMASServiceInstance

      public OMASServiceInstance(String serviceName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryConnector repositoryConnector, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog, String localServerUserId, int maxPageSize) throws NewInstanceException
      Set up the local repository connector that will service the REST Calls.
      Parameters:
      serviceName - name of this service
      repositoryConnector - link to the repository responsible for servicing the REST calls.
      auditLog - logging destination
      localServerUserId - userId used for server initiated actions
      maxPageSize - maximum page size
      Throws:
      NewInstanceException - a problem occurred during initialization
    • OMASServiceInstance

      public OMASServiceInstance(String serviceName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryConnector repositoryConnector, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog, String localServerUserId, int maxPageSize) throws NewInstanceException
      Set up the local repository connector that will service the REST Calls.
      Parameters:
      serviceName - name of this service
      repositoryConnector - link to the repository responsible for servicing the REST calls.
      supportedZones - list of zones that access service is allowed to serve Assets from.
      defaultZones - list of zones that access service should set in all new Assets.
      publishZones - list of zones that the access service sets up in published Asset instances.
      auditLog - logging destination
      localServerUserId - userId used for server initiated actions
      maxPageSize - maximum page size
      Throws:
      NewInstanceException - a problem occurred during initialization
    • OMASServiceInstance

      public OMASServiceInstance(String serviceName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryConnector repositoryConnector, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog, String localServerUserId, int maxPageSize, String inTopicConnectorProviderName, org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection inTopicEventBusConnection, String outTopicConnectorProviderName, org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection outTopicEventBusConnection) throws NewInstanceException
      Set up the local repository connector that will service the REST Calls.
      Parameters:
      serviceName - name of this service
      repositoryConnector - link to the repository responsible for servicing the REST calls.
      supportedZones - list of zones that access service is allowed to serve Assets from.
      defaultZones - list of zones that access service should set in all new Assets.
      publishZones - list of zones that the access service sets up in published Asset instances.
      auditLog - logging destination
      localServerUserId - userId used for server initiated actions
      maxPageSize - maximum page size
      inTopicConnectorProviderName - class name of the client side in topic connector
      inTopicEventBusConnection - connection for the event bus configured with the in topic
      outTopicConnectorProviderName - class name of the client side out topic connector
      outTopicEventBusConnection - connection for the event bus configured with the out topic
      Throws:
      NewInstanceException - a problem occurred during initialization
  • Method Details

    • getServerName

      public String getServerName() throws NewInstanceException
      Return the server name. Used during OMAS initialization which is why the exception is different.
      Overrides:
      getServerName in class OMAGServerServiceInstance
      Returns:
      serverName name of the server for this instance
      Throws:
      NewInstanceException - a problem occurred during initialization
    • getRegisteredOMAGService

      public org.odpi.openmetadata.commonservices.ffdc.rest.RegisteredOMAGService getRegisteredOMAGService(int accessServiceCode)
    • getInTopicClientConnection

      public org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection getInTopicClientConnection(String callerId) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException
      Return the connection used in the client to create a connector to send events from the in topic.
      Parameters:
      callerId - unique identifier of the caller
      Returns:
      connection object for client
      Throws:
      org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException - problem connecting to event bus