Class AccessServiceAdmin
java.lang.Object
org.odpi.openmetadata.adminservices.registration.AccessServiceAdmin
AccessServiceAdmin is the interface that an access service implements to receive its configuration.
The java class that implements this interface is created with a default constructor and then
the initialize method is called. It is configured in the AccessServiceDescription enumeration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the cached service name.<T> TgetTopicConnector(org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection topicConnection, Class<T> topicConnectorClass, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog, String accessServiceFullName, String methodName) Create an instance of an open metadata topic connector using the supplied connection.voidinitialize(org.odpi.openmetadata.adminservices.configuration.properties.AccessServiceConfig accessServiceConfigurationProperties, org.odpi.openmetadata.repositoryservices.connectors.omrstopic.OMRSTopicConnector enterpriseOMRSTopicConnector, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryConnector enterpriseOMRSRepositoryConnector, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog, String serverUserName) Initialize the access service.voidinitialize(org.odpi.openmetadata.adminservices.configuration.properties.AccessServiceConfig accessServiceConfigurationProperties, org.odpi.openmetadata.repositoryservices.connectors.omrstopic.OMRSTopicConnector enterpriseOMRSTopicConnector, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryConnector enterpriseOMRSRepositoryConnector, org.odpi.openmetadata.repositoryservices.auditlog.OMRSAuditLog auditLog, String serverUserName) Deprecated.voidsetFullServiceName(String fullServiceName) Set up the cached service name.abstract voidshutdown()Shutdown the access service.
-
Constructor Details
-
AccessServiceAdmin
public AccessServiceAdmin()
-
-
Method Details
-
initialize
@Deprecated public void initialize(org.odpi.openmetadata.adminservices.configuration.properties.AccessServiceConfig accessServiceConfigurationProperties, org.odpi.openmetadata.repositoryservices.connectors.omrstopic.OMRSTopicConnector enterpriseOMRSTopicConnector, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryConnector enterpriseOMRSRepositoryConnector, org.odpi.openmetadata.repositoryservices.auditlog.OMRSAuditLog auditLog, String serverUserName) throws org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException Deprecated.Initialize the access service.- Parameters:
accessServiceConfigurationProperties- specific configuration properties for this access service.enterpriseOMRSTopicConnector- connector for receiving OMRS Events from the cohortsenterpriseOMRSRepositoryConnector- connector for querying the cohort repositoriesauditLog- audit log component for logging messages.serverUserName- user id to use on OMRS calls where there is no end user.- Throws:
org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException- invalid parameters in the configuration properties.
-
initialize
public void initialize(org.odpi.openmetadata.adminservices.configuration.properties.AccessServiceConfig accessServiceConfigurationProperties, org.odpi.openmetadata.repositoryservices.connectors.omrstopic.OMRSTopicConnector enterpriseOMRSTopicConnector, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryConnector enterpriseOMRSRepositoryConnector, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog, String serverUserName) throws org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException Initialize the access service.- Parameters:
accessServiceConfigurationProperties- specific configuration properties for this access service.enterpriseOMRSTopicConnector- connector for receiving OMRS Events from the cohortsenterpriseOMRSRepositoryConnector- connector for querying the cohort repositoriesauditLog- audit log component for logging messages.serverUserName- user id to use on OMRS calls where there is no end user.- Throws:
org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException- invalid parameters in the configuration properties.
-
getFullServiceName
Return the cached service name.- Returns:
- string name
-
setFullServiceName
Set up the cached service name.- Parameters:
fullServiceName- string name
-
shutdown
public abstract void shutdown()Shutdown the access service. -
getTopicConnector
public <T> T getTopicConnector(org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection topicConnection, Class<T> topicConnectorClass, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog, String accessServiceFullName, String methodName) throws org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException Create an instance of an open metadata topic connector using the supplied connection.- Type Parameters:
T- type name- Parameters:
topicConnection- connection needed to create the connectortopicConnectorClass- class to cast toaccessServiceFullName- name of the calling access serviceauditLog- audit log for this connectormethodName- calling method- Returns:
- connector to access the topic
- Throws:
org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException- problem creating connector
-