Class OMASServiceInstance
java.lang.Object
org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstance
org.odpi.openmetadata.commonservices.multitenant.AuditableServerServiceInstance
org.odpi.openmetadata.commonservices.multitenant.OMASServiceInstance
- Direct Known Subclasses:
AssetConsumerServicesInstance
,AssetManagerServicesInstance
,AssetOwnerServicesInstance
,CommunityProfileServicesInstance
,DataManagerServicesInstance
,DataScienceServicesInstance
,DesignModelServicesInstance
,DigitalArchitectureServicesInstance
,DigitalServiceServicesInstance
,GAFMetadataManagementInstance
,GovernanceEngineInstance
,GovernanceProgramServicesInstance
,GovernanceServerInstance
,ITInfrastructureServicesInstance
,OCFMetadataServicesInstance
,OpenIntegrationInstance
,ProjectManagementServicesInstance
,SecurityManagerServicesInstance
,SoftwareDeveloperServicesInstance
,StewardshipActionServicesInstance
OMASServiceInstance caches references to OMRS objects for a specific server.
It is also responsible for registering itself in the instance map.
-
Field Summary
Modifier and TypeFieldDescriptionprotected RepositoryErrorHandler
protected OMRSMetadataCollection
protected OMRSRepositoryConnector
protected RepositoryHandler
protected OMRSRepositoryHelper
Fields inherited from class org.odpi.openmetadata.commonservices.multitenant.AuditableServerServiceInstance
auditLog, localServerUserId
Fields inherited from class org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstance
invalidParameterHandler, maxPageSize, securityVerifier, serverName, serviceName
-
Constructor Summary
ConstructorDescriptionOMASServiceInstance
(String serviceName, OMRSRepositoryConnector repositoryConnector, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog, String localServerUserId, int maxPageSize) Set up the local repository connector that will service the REST Calls.OMASServiceInstance
(String serviceName, OMRSRepositoryConnector repositoryConnector, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog, String localServerUserId, int maxPageSize, String inTopicConnectorProviderName, Connection inTopicEventBusConnection, String outTopicConnectorProviderName, Connection outTopicEventBusConnection) Set up the local repository connector that will service the REST Calls.OMASServiceInstance
(String serviceName, OMRSRepositoryConnector repositoryConnector, AuditLog auditLog, String localServerUserId, int maxPageSize) Set up the local repository connector that will service the REST Calls. -
Method Summary
Modifier and TypeMethodDescriptiongetInTopicClientConnection
(String callerId) Return the connection used in the client to create a connector to send events from the in topic.Return the server name.protected void
validateActiveRepository
(String methodName) Validate that the repository services are ok for this instance.Methods inherited from class org.odpi.openmetadata.commonservices.multitenant.AuditableServerServiceInstance
getAuditLog
Methods inherited from class org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstance
getInvalidParameterHandler, getServiceInstanceStatus, getServiceName, setMaxPageSize, setSecurityVerifier, setServerName, setServiceInstanceStatus, shutdown
-
Field Details
-
repositoryConnector
-
metadataCollection
-
repositoryHelper
-
repositoryHandler
-
errorHandler
-
supportedZones
-
defaultZones
-
publishZones
-
-
Constructor Details
-
OMASServiceInstance
public OMASServiceInstance(String serviceName, OMRSRepositoryConnector repositoryConnector, 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, OMRSRepositoryConnector repositoryConnector, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, 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, OMRSRepositoryConnector repositoryConnector, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog, String localServerUserId, int maxPageSize, String inTopicConnectorProviderName, Connection inTopicEventBusConnection, String outTopicConnectorProviderName, 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:
getServerName
in classOMAGServerServiceInstance
- Returns:
- serverName name of the server for this instance
- Throws:
NewInstanceException
- a problem occurred during initialization
-
validateActiveRepository
Validate that the repository services are ok for this instance.- Parameters:
methodName
- calling method- Throws:
PropertyServerException
- problem with the repository services
-
getInTopicClientConnection
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:
PropertyServerException
- problem connecting to event bus
-