Class OMASServiceInstance
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstance
-
- org.odpi.openmetadata.commonservices.multitenant.AuditableServerServiceInstance
-
- org.odpi.openmetadata.commonservices.multitenant.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.
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>defaultZonesprotected RepositoryErrorHandlererrorHandlerprotected OMRSMetadataCollectionmetadataCollectionprotected List<String>publishZonesprotected OMRSRepositoryConnectorrepositoryConnectorprotected RepositoryHandlerrepositoryHandlerprotected OMRSRepositoryHelperrepositoryHelperprotected List<String>supportedZones-
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
Constructors Constructor Description OMASServiceInstance(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetServerName()Return the server name.protected voidvalidateActiveRepository(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 Detail
-
repositoryConnector
protected OMRSRepositoryConnector repositoryConnector
-
metadataCollection
protected OMRSMetadataCollection metadataCollection
-
repositoryHelper
protected OMRSRepositoryHelper repositoryHelper
-
repositoryHandler
protected RepositoryHandler repositoryHandler
-
errorHandler
protected RepositoryErrorHandler errorHandler
-
-
Constructor Detail
-
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 Detail
-
getServerName
public String getServerName() throws NewInstanceException
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
-
validateActiveRepository
protected void validateActiveRepository(String methodName) throws PropertyServerException
Validate that the repository services are ok for this instance.- Parameters:
methodName- calling method- Throws:
PropertyServerException- problem with the repository services
-
-