Class ConfigDefaultsResource
java.lang.Object
org.odpi.openmetadata.adminservices.spring.ConfigDefaultsResource
@RestController
@RequestMapping("/open-metadata/admin-services/servers/{serverName}")
public class ConfigDefaultsResource
extends Object
ConfigDefaultsResource sets properties in the configuration document that are used as
default values when configuring the subsystems in an OMAG Server. If these values
are updated after a subsystem is configured, they do not impact that subsystem's configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeleteEventBus(String serverName) Delete the current configuration for the event bus.getEventBus(String serverName) Return the current configuration for the event bus.setEventBus(String serverName, String connectorProvider, String topicURLRoot, Map<String, Object> configurationProperties) Set up the default event bus for embedding in event-driven connector.setServerRootURL(String serverName, URLRequestBody requestBody) Set up the default root URL for this server's platform that is used to construct full URL paths to calls for this server's REST interfaces.
-
Constructor Details
-
ConfigDefaultsResource
public ConfigDefaultsResource()
-
-
Method Details
-
setServerRootURL
@PostMapping(path="/server-url-root-for-caller") public VoidResponse setServerRootURL(@PathVariable String serverName, @RequestBody URLRequestBody requestBody) Set up the default root URL for this server's platform that is used to construct full URL paths to calls for this server's REST interfaces. It is a value that is sent to other servers to allow them to call this server. The default value is "https://localhost:9443". ServerRootURL is used as a default value during the configuration of the server's subsystems. If it is updated after a subsystem is configured then the new value is ignored.- Parameters:
serverName- local server name.requestBody- String url.- Returns:
- void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or serverURLRoot parameter.
-
setEventBus
@PostMapping(path="/event-bus") public VoidResponse setEventBus(@PathVariable String serverName, @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 in the OMRS Topic Connector for each cohort, the open metadata out topic and the local repositories' event mapper. When the event bus is configured, it is used only on future configuration. It does not affect existing configuration. If openMetadataOutTopic is null, a default connection for this topic is created. It can be removed using clearOpenMetadataOutTopic- Parameters:
serverName- local server name.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:
- void response or UserNotAuthorizedException 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 InvalidParameterException invalid serverName or serviceMode parameter.
-
getEventBus
@GetMapping(path="/event-bus") public EventBusConfigResponse getEventBus(@PathVariable String serverName) Return the current configuration for the event bus.- Parameters:
serverName- local server name.- Returns:
- event bus config response or UserNotAuthorizedException 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 InvalidParameterException invalid serverName parameter.
-
deleteEventBus
@DeleteMapping(path="/event-bus") public VoidResponse deleteEventBus(@PathVariable String serverName) Delete the current configuration for the event bus. This does not impact that existing configuration for the server, only future configuration requests.- Parameters:
serverName- local server name.- Returns:
- void response or UserNotAuthorizedException 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 InvalidParameterException invalid serverName parameter.
-