Class OMASServiceInstance
java.lang.Object
org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstance
org.odpi.openmetadata.commonservices.multitenant.AuditableServerServiceInstance
org.odpi.openmetadata.commonservices.multitenant.OMASServiceInstance
OMASServiceInstance caches references to OMRS objects for a specific server.
It is also responsible for registering itself in the instance map.
-
Constructor Summary
ConstructorsConstructorDescriptionOMASServiceInstance(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
Methods inherited from class org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstance
getInvalidParameterHandler, getServiceInstanceStatus, getServiceName, setMaxPageSize, setSecurityVerifier, setServiceInstanceStatus, shutdown
-
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 servicerepositoryConnector- link to the repository responsible for servicing the REST calls.auditLog- logging destinationlocalServerUserId- userId used for server initiated actionsmaxPageSize- 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 servicerepositoryConnector- 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 destinationlocalServerUserId- userId used for server initiated actionsmaxPageSize- 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 servicerepositoryConnector- 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 destinationlocalServerUserId- userId used for server initiated actionsmaxPageSize- maximum page sizeinTopicConnectorProviderName- class name of the client side in topic connectorinTopicEventBusConnection- connection for the event bus configured with the in topicoutTopicConnectorProviderName- class name of the client side out topic connectoroutTopicEventBusConnection- connection for the event bus configured with the out topic- Throws:
NewInstanceException- a problem occurred during initialization
-
-
Method Details
-
getServerName
Return the server name. Used during OMAS initialization which is why the exception is different.- Overrides:
getServerNamein classOMAGServerServiceInstance- Returns:
- serverName name of the server for this instance
- Throws:
NewInstanceException- a problem occurred during initialization
-