Class AssetConsumerServicesInstance
java.lang.Object
org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstance
org.odpi.openmetadata.commonservices.multitenant.AuditableServerServiceInstance
org.odpi.openmetadata.commonservices.multitenant.OMASServiceInstance
org.odpi.openmetadata.accessservices.assetconsumer.server.AssetConsumerServicesInstance
AssetConsumerServicesInstance caches references to objects for a specific server.
It is also responsible for registering itself in the instance map.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.commonservices.multitenant.OMASServiceInstance
defaultZones, errorHandler, metadataCollection, publishZones, repositoryConnector, repositoryHandler, repositoryHelper, 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
ConstructorDescriptionAssetConsumerServicesInstance
(OMRSRepositoryConnector repositoryConnector, List<String> supportedZones, AuditLog auditLog, String localServerUserId, List<String> supportedTypesForSearch, int maxPageSize, Connection outTopicEventBusConnection) Set up the handlers for this server. -
Method Summary
Modifier and TypeMethodDescriptionReturn the handler for managing asset objects.Return the handler for managing generic metadata element objects.Return the handler for managing generic metadata element objects.Methods inherited from class org.odpi.openmetadata.commonservices.multitenant.OMASServiceInstance
getInTopicClientConnection, getServerName, validateActiveRepository
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
-
Constructor Details
-
AssetConsumerServicesInstance
public AssetConsumerServicesInstance(OMRSRepositoryConnector repositoryConnector, List<String> supportedZones, AuditLog auditLog, String localServerUserId, List<String> supportedTypesForSearch, int maxPageSize, Connection outTopicEventBusConnection) throws NewInstanceException Set up the handlers for this server. They reflect the range of open metadata elements returned by this OMAS.- Parameters:
repositoryConnector
- link to the repository responsible for servicing the REST calls.supportedZones
- list of zones that AssetConsumer is allowed to serve Assets from.auditLog
- destination for audit log events.localServerUserId
- userId used for server initiated actionssupportedTypesForSearch
- affects the list of supported asset types seen by the callermaxPageSize
- maximum number of results that can be returned on a single calloutTopicEventBusConnection
- inner event bus connection to use to build topic connection to send to client if they which to listen on the out topic.- Throws:
NewInstanceException
- a problem occurred during initialization
-
-
Method Details
-
getAssetHandler
Return the handler for managing asset objects.- Returns:
- handler object
- Throws:
PropertyServerException
- the instance has not been initialized successfully
-
getMetadataElementHandler
public ReferenceableHandler<MetadataElementSummary> getMetadataElementHandler() throws PropertyServerExceptionReturn the handler for managing generic metadata element objects.- Returns:
- handler object
- Throws:
PropertyServerException
- the instance has not been initialized successfully
-
getMetadataRelationshipHandler
public ReferenceableHandler<MetadataRelationship> getMetadataRelationshipHandler() throws PropertyServerExceptionReturn the handler for managing generic metadata element objects.- Returns:
- handler object
- Throws:
PropertyServerException
- the instance has not been initialized successfully
-