Class MetadataAccessServerConfigurationClient
java.lang.Object
org.odpi.openmetadata.adminservices.client.OMAGServerConfigurationClient
org.odpi.openmetadata.adminservices.client.CohortMemberConfigurationClient
org.odpi.openmetadata.adminservices.client.MetadataAccessServerConfigurationClient
- Direct Known Subclasses:
MetadataAccessPointConfigurationClient,MetadataAccessStoreConfigurationClient
MetadataAccessServerConfigurationClient configures a MetadataAccessServer OMAG Server. This server
can become a cohort member and, through the access services, offers a wide range of specialist APIs
and event streams to access and store metadata.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.adminservices.client.OMAGServerConfigurationClient
invalidParameterHandler, nullRequestBody, restClient, serverName, serverPlatformRootURL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRemoteEnterpriseTopic(Map<String, Object> configurationProperties) Set up the default remote enterprise topic.voidDisable the access services.voidconfigureAccessService(String serviceURLMarker) Enable a single access service.voidconfigureAccessService(String serviceURLMarker, Map<String, Object> accessServiceOptions) Enable a single access service.voidconfigureAccessServiceNoTopics(String serviceURLMarker) Enable a single access service without the In and Out topic.voidconfigureAccessServiceNoTopics(String serviceURLMarker, Map<String, Object> accessServiceOptions) Enable a single access service without the In and Out topic.voidconfigureAllAccessServices(Map<String, Object> accessServiceOptions) Enable all access services that are registered into this server.voidconfigureAllAccessServicesNoTopics(Map<String, Object> accessServiceOptions) Enable all access services that are registered into this server without the in and out topics activated.voiddisableAccessService(String serviceURLMarker) Disable a single access service.Return the configuration for the access services in this server.getAccessServiceTopicNames(String serviceURLMarker) Retrieve the topic names for this access serviceRetrieve the topic names for all configured access serviceReturn the list of access services that are configured for this server.Return the list of access services for this server.voidoverrideAccessServiceOutTopic(String serviceURLMarker, String topicName) Override the topic name for the in topic of a single access service.voidsetAccessServicesConfig(List<AccessServiceConfig> accessServicesConfig) Set up the configuration for all the open metadata access services (OMASs).voidsetEnterpriseAccessConfig(EnterpriseAccessConfig enterpriseAccessConfig) Set up the configuration that controls the enterprise repository services.Methods inherited from class org.odpi.openmetadata.adminservices.client.CohortMemberConfigurationClient
addCohortRegistration, addCohortRegistration, addStartUpOpenMetadataArchiveFile, addStartUpOpenMetadataArchiveList, clearCohortRegistration, clearLocalRepository, clearOpenMetadataArchives, getCohortTopicName, getDedicatedCohortTopicNames, getLocalMetadataCollectionId, getLocalMetadataCollectionName, overrideCohortTopicName, overrideInstancesCohortTopicName, overrideRegistrationCohortTopicName, overrideTypesCohortTopicName, resetRemoteCohortURL, setCohortConfig, setLocalMetadataCollectionId, setLocalMetadataCollectionName, setLocalRepositoryConfigMethods inherited from class org.odpi.openmetadata.adminservices.client.OMAGServerConfigurationClient
addAuditLogDestination, addConsoleAuditLogDestination, addEventTopicAuditLogDestination, addEventTopicAuditLogDestination, addFileAuditLogDestination, addFileAuditLogDestination, addJDBCAuditLogDestination, addSLF4JAuditLogDestination, clearAuditLogDestination, clearAuditLogDestinations, clearOMAGServerConfig, clearServerSecurityConnection, deployOMAGServerConfig, getBasicServerProperties, getOMAGServerConfig, getOMAGServerInstanceConfig, getServerSecurityConnection, getServerTypeClassification, setAuditLogDestinations, setBasicServerProperties, setDefaultAuditLog, setEventBus, setMaxPageSize, setOMAGServerConfig, setOrganizationName, setServerDescription, setServerSecurityConnection, setServerType, setServerURLRoot, setServerUserId, updateAuditLogDestination
-
Constructor Details
-
MetadataAccessServerConfigurationClient
public MetadataAccessServerConfigurationClient(String serverName, String serverPlatformRootURL, String secretStoreProvider, String secretStoreLocation, String secretStoreCollection, AuditLog auditLog) throws InvalidParameterException Create a new client with no authentication embedded in the HTTP request.- Parameters:
serverName- name of the server to connect toserverPlatformRootURL- the network address of the server running the admin servicessecretStoreProvider- class name of the secrets storesecretStoreLocation- location (networkAddress) of the secrets storesecretStoreCollection- name of the collection of secrets to use to connect to the remote serverauditLog- destination for log messages.- Throws:
InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
-
Method Details
-
getRegisteredAccessServices
public List<RegisteredOMAGService> getRegisteredAccessServices() throws UserNotAuthorizedException, InvalidParameterException, OMAGConfigurationErrorExceptionReturn the list of access services for this server.- Returns:
- list of access service descriptions
- Throws:
UserNotAuthorizedException- the supplied userId is not authorized to issue this command.InvalidParameterException- invalid parameter.OMAGConfigurationErrorException- unusual state in the admin server.
-
getConfiguredAccessServices
public List<RegisteredOMAGService> getConfiguredAccessServices() throws UserNotAuthorizedException, InvalidParameterException, OMAGConfigurationErrorExceptionReturn the list of access services that are configured for this server.- Returns:
- list of access service descriptions
- Throws:
UserNotAuthorizedException- the supplied userId is not authorized to issue this command.InvalidParameterException- invalid parameter.OMAGConfigurationErrorException- unusual state in the admin server.
-
getAccessServicesConfiguration
public List<AccessServiceConfig> getAccessServicesConfiguration() throws UserNotAuthorizedException, InvalidParameterException, OMAGConfigurationErrorExceptionReturn the configuration for the access services in this server.- Returns:
- list of access service configuration
- Throws:
UserNotAuthorizedException- the supplied userId is not authorized to issue this command.InvalidParameterException- invalid parameter.OMAGConfigurationErrorException- unusual state in the admin server.
-
configureAccessService
public void configureAccessService(String serviceURLMarker) throws UserNotAuthorizedException, InvalidParameterException, OMAGConfigurationErrorException Enable a single access service.- Parameters:
serviceURLMarker- string indicating which access service it is configuring- Throws:
UserNotAuthorizedException- the supplied userId is not authorized to issue this command.InvalidParameterException- invalid parameter.OMAGConfigurationErrorException- unusual state in the admin server.
-
disableAccessService
public void disableAccessService(String serviceURLMarker) throws UserNotAuthorizedException, InvalidParameterException, OMAGConfigurationErrorException Disable a single access service.- Parameters:
serviceURLMarker- string indicating which access service it is disabling- Throws:
UserNotAuthorizedException- the supplied userId is not authorized to issue this command.InvalidParameterException- invalid parameter.OMAGConfigurationErrorException- unusual state in the admin server.
-
configureAccessService
public void configureAccessService(String serviceURLMarker, Map<String, Object> accessServiceOptions) throws UserNotAuthorizedException, InvalidParameterException, OMAGConfigurationErrorExceptionEnable a single access service.- Parameters:
serviceURLMarker- string indicating which access service it is configuringaccessServiceOptions- property name/value pairs used to configure the access service- Throws:
UserNotAuthorizedException- the supplied userId is not authorized to issue this command.InvalidParameterException- invalid parameter.OMAGConfigurationErrorException- unusual state in the admin server.
-
configureAccessServiceNoTopics
public void configureAccessServiceNoTopics(String serviceURLMarker) throws UserNotAuthorizedException, InvalidParameterException, OMAGConfigurationErrorException Enable a single access service without the In and Out topic.- Parameters:
serviceURLMarker- string indicating which access service it is configuring- Throws:
UserNotAuthorizedException- the supplied userId is not authorized to issue this command.InvalidParameterException- invalid parameter.OMAGConfigurationErrorException- unusual state in the admin server.
-
configureAccessServiceNoTopics
public void configureAccessServiceNoTopics(String serviceURLMarker, Map<String, Object> accessServiceOptions) throws UserNotAuthorizedException, InvalidParameterException, OMAGConfigurationErrorExceptionEnable a single access service without the In and Out topic.- Parameters:
serviceURLMarker- string indicating which access service it is configuringaccessServiceOptions- property name/value pairs used to configure the access service- Throws:
UserNotAuthorizedException- the supplied userId is not authorized to issue this command.InvalidParameterException- invalid parameter.OMAGConfigurationErrorException- unusual state in the admin server.
-
configureAllAccessServices
public void configureAllAccessServices(Map<String, Object> accessServiceOptions) throws UserNotAuthorizedException, InvalidParameterException, OMAGConfigurationErrorExceptionEnable all access services that are registered into this server. The configuration properties for each access service can be changed from their default using setAccessServicesConfig operation.- Parameters:
accessServiceOptions- property name/value pairs used to configure the access services- Throws:
UserNotAuthorizedException- the supplied userId is not authorized to issue this command.InvalidParameterException- invalid parameter.OMAGConfigurationErrorException- unusual state in the admin server.
-
configureAllAccessServicesNoTopics
public void configureAllAccessServicesNoTopics(Map<String, Object> accessServiceOptions) throws UserNotAuthorizedException, InvalidParameterException, OMAGConfigurationErrorExceptionEnable all access services that are registered into this server without the in and out topics activated. The configuration properties for each access service can be changed from their default using setAccessServicesConfig operation.- Parameters:
accessServiceOptions- property name/value pairs used to configure the access services- Throws:
UserNotAuthorizedException- the supplied userId is not authorized to issue this command.InvalidParameterException- invalid parameter.OMAGConfigurationErrorException- unusual state in the admin server.
-
getAccessServiceTopicNames
public Map<String,String> getAccessServiceTopicNames(String serviceURLMarker) throws UserNotAuthorizedException, InvalidParameterException, OMAGConfigurationErrorException Retrieve the topic names for this access service- Parameters:
serviceURLMarker- string indicating which access service it requested- Returns:
- map of topic names to descriptions
- Throws:
UserNotAuthorizedException- the supplied userId is not authorized to issue this command.InvalidParameterException- invalid parameter.OMAGConfigurationErrorException- unusual state in the admin server.
-
getAllAccessServiceTopicNames
public Map<String,String> getAllAccessServiceTopicNames() throws UserNotAuthorizedException, InvalidParameterException, OMAGConfigurationErrorExceptionRetrieve the topic names for all configured access service- Returns:
- map of topic names to descriptions
- Throws:
UserNotAuthorizedException- the supplied userId is not authorized to issue this command.InvalidParameterException- invalid parameter.OMAGConfigurationErrorException- unusual state in the admin server.
-
overrideAccessServiceOutTopic
public void overrideAccessServiceOutTopic(String serviceURLMarker, String topicName) throws UserNotAuthorizedException, InvalidParameterException, OMAGConfigurationErrorException Override the topic name for the in topic of a single access service.- Parameters:
serviceURLMarker- string indicating which access service it is configuringtopicName- new topic name- Throws:
UserNotAuthorizedException- the supplied userId is not authorized to issue this command.InvalidParameterException- invalid parameter.OMAGConfigurationErrorException- unusual state in the admin server.
-
clearAllAccessServices
public void clearAllAccessServices() throws UserNotAuthorizedException, InvalidParameterException, OMAGConfigurationErrorExceptionDisable the access services. This removes all configuration for the access services and disables the enterprise repository services.- Throws:
UserNotAuthorizedException- the supplied userId is not authorized to issue this command.InvalidParameterException- invalid parameter.OMAGConfigurationErrorException- unusual state in the admin server.
-
setAccessServicesConfig
public void setAccessServicesConfig(List<AccessServiceConfig> accessServicesConfig) throws UserNotAuthorizedException, InvalidParameterException, OMAGConfigurationErrorException Set up the configuration for all the open metadata access services (OMASs). This overrides the current values.- Parameters:
accessServicesConfig- - list of configuration properties for each access service.- Throws:
UserNotAuthorizedException- the supplied userId is not authorized to issue this command.InvalidParameterException- invalid parameter.OMAGConfigurationErrorException- unusual state in the admin server.
-
addRemoteEnterpriseTopic
public void addRemoteEnterpriseTopic(Map<String, Object> configurationProperties) throws UserNotAuthorizedException, InvalidParameterException, OMAGConfigurationErrorExceptionSet up the default remote enterprise topic. This allows a remote process to monitor enterprise topic events.- Parameters:
configurationProperties- additional properties for the cohort- Throws:
UserNotAuthorizedException- the supplied userId is not authorized to issue this command.InvalidParameterException- invalid parameter.OMAGConfigurationErrorException- unusual state in the admin server.
-
setEnterpriseAccessConfig
public void setEnterpriseAccessConfig(EnterpriseAccessConfig enterpriseAccessConfig) throws UserNotAuthorizedException, InvalidParameterException, OMAGConfigurationErrorException Set up the configuration that controls the enterprise repository services. These services are part of the Open Metadata Repository Services (OMRS). They provide federated queries and federated event notifications that cover metadata from the local repository plus any repositories connected via open metadata repository cohorts. These services are configured automatically when the access services are enabled and so this call is not normally needed unless the default settings for the enterprise access services are not sufficient.- Parameters:
enterpriseAccessConfig- - enterprise repository services configuration properties.- Throws:
UserNotAuthorizedException- the supplied userId is not authorized to issue this command.InvalidParameterException- invalid parameter.OMAGConfigurationErrorException- unusual state in the admin server.
-