setEventBus
@PostMapping(path="/event-bus")
public ServerAuthorConfigurationResponse setEventBus(@PathVariable
String userId,
@PathVariable
String serverName,
@PathVariable
String serverToBeConfiguredName,
@RequestParam(required=false)
String connectorProvider,
@RequestParam(required=false)
String topicURLRoot,
@RequestBody(required=false)
Map<String,Object> configurationProperties)
Set up the default event bus for embedding in event-driven connector. The resulting connector will
be used for example, in the OMRS Topic Connector for each cohort, the in and out topics for each Access Service and
possibly the local repository's event mapper.
When the event bus is configured, it is used only on future configuration. It does not effect
existing configuration.
- Parameters:
userId - user that is issuing the request.
serverName - local server name.
serverToBeConfiguredName - name of the server to be configured.
connectorProvider - connector provider for the event bus (if it is null then Kafka is assumed).
topicURLRoot - the common root of the topics used by the open metadata server.
configurationProperties - property name/value pairs used to configure the connection to the event bus connector
- Returns:
- the current stored configuration
OMAGNotAuthorizedException the supplied userId is not authorized to issue this command or
OMAGConfigurationErrorException it is too late to configure the event bus - other configuration already exists or
OMAGInvalidParameterException invalid serverName or serviceMode parameter.