Class ViewServerConfigurationClient
java.lang.Object
org.odpi.openmetadata.adminservices.client.OMAGServerConfigurationClient
org.odpi.openmetadata.adminservices.client.ViewServerConfigurationClient
ViewServerConfigurationClient provides the configuration services for view servers.
This involves creating a list of view services config properties.
-
Constructor Summary
ConstructorsConstructorDescriptionViewServerConfigurationClient(String adminUserId, String serverName, String serverPlatformRootURL) Create a new client with no authentication embedded in the HTTP request.ViewServerConfigurationClient(String adminUserId, String serverName, String serverPlatformRootURL, String connectionUserId, String connectionPassword) Create a new client that passes a connection userId and password in each HTTP request. -
Method Summary
Modifier and TypeMethodDescriptionvoidDisable the view services.voidconfigureAllViewService(String partnerOMASServerURLRoot, String partnerOMASServerName, Map<String, Object> viewServiceOptions) Enable all registered view services with the same partner server and options.voidconfigureViewService(String serviceURLMarker, Map<String, Object> viewServiceOptions) Enable a single view service.voiddisableViewService(String serviceURLMarker) Disable a single view service.List<org.odpi.openmetadata.commonservices.ffdc.rest.RegisteredOMAGService>Return the list of view services for this server.List<org.odpi.openmetadata.commonservices.ffdc.rest.RegisteredOMAGService>Return the list of view services for this server.List<org.odpi.openmetadata.adminservices.configuration.properties.ViewServiceConfig>Return the configuration for the view services in this server.voidsetViewServicesConfig(List<org.odpi.openmetadata.adminservices.configuration.properties.ViewServiceConfig> viewServicesConfig) Set up the configuration for all the open metadata view services (OMVSs).Methods inherited from class org.odpi.openmetadata.adminservices.client.OMAGServerConfigurationClient
addAuditLogDestination, addConsoleAuditLogDestination, addEventTopicAuditLogDestination, addFileAuditLogDestination, addSLF4JAuditLogDestination, clearAuditLogDestination, clearAuditLogDestinations, clearOMAGServerConfig, clearServerSecurityConnection, deployOMAGServerConfig, getOMAGServerConfig, getOMAGServerInstanceConfig, getServerClassification, getServerSecurityConnection, setAuditLogDestinations, setDefaultAuditLog, setEventBus, setMaxPageSize, setOMAGServerConfig, setOrganizationName, setServerDescription, setServerPassword, setServerSecurityConnection, setServerType, setServerURLRoot, setServerUserId, updateAuditLogDestination
-
Constructor Details
-
ViewServerConfigurationClient
public ViewServerConfigurationClient(String adminUserId, String serverName, String serverPlatformRootURL) throws org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException Create a new client with no authentication embedded in the HTTP request.- Parameters:
adminUserId- administrator's (end user's) userId to associate with calls.serverName- name of the server to connect toserverPlatformRootURL- the network address of the server running the admin services- Throws:
org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
ViewServerConfigurationClient
public ViewServerConfigurationClient(String adminUserId, String serverName, String serverPlatformRootURL, String connectionUserId, String connectionPassword) throws org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException Create a new client that passes a connection userId and password in each HTTP request. This is the userId/password of the calling server. The end user's userId is passed as the admin userId.- Parameters:
adminUserId- administrator's (end user's) userId to associate with calls.serverName- name of the server to connect toserverPlatformRootURL- the network address of the server running the admin servicesconnectionUserId- caller's system userId embedded in all HTTP requestsconnectionPassword- caller's system password embedded in all HTTP requests- Throws:
org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
-
Method Details
-
getRegisteredViewServices
public List<org.odpi.openmetadata.commonservices.ffdc.rest.RegisteredOMAGService> getRegisteredViewServices() throws org.odpi.openmetadata.adminservices.ffdc.exception.OMAGNotAuthorizedException, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorExceptionReturn the list of view services for this server.- Returns:
- list of view service descriptions
- Throws:
org.odpi.openmetadata.adminservices.ffdc.exception.OMAGNotAuthorizedException- the supplied userId is not authorized to issue this command.org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException- invalid parameter.org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException- unusual state in the admin server.
-
getConfiguredViewServices
public List<org.odpi.openmetadata.commonservices.ffdc.rest.RegisteredOMAGService> getConfiguredViewServices() throws org.odpi.openmetadata.adminservices.ffdc.exception.OMAGNotAuthorizedException, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorExceptionReturn the list of view services for this server.- Returns:
- list of view service descriptions
- Throws:
org.odpi.openmetadata.adminservices.ffdc.exception.OMAGNotAuthorizedException- the supplied userId is not authorized to issue this command.org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException- invalid parameter.org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException- unusual state in the admin server.
-
getViewServicesConfiguration
public List<org.odpi.openmetadata.adminservices.configuration.properties.ViewServiceConfig> getViewServicesConfiguration() throws org.odpi.openmetadata.adminservices.ffdc.exception.OMAGNotAuthorizedException, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorExceptionReturn the configuration for the view services in this server.- Returns:
- list of view service configuration
- Throws:
org.odpi.openmetadata.adminservices.ffdc.exception.OMAGNotAuthorizedException- the supplied userId is not authorized to issue this command.org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException- invalid parameter.org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException- unusual state in the admin server.
-
configureViewService
public void configureViewService(String serviceURLMarker, Map<String, Object> viewServiceOptions) throws org.odpi.openmetadata.adminservices.ffdc.exception.OMAGNotAuthorizedException, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorExceptionEnable a single view service.- Parameters:
serviceURLMarker- string indicating which view service it is configuringviewServiceOptions- property name/value pairs used to configure the view service- Throws:
org.odpi.openmetadata.adminservices.ffdc.exception.OMAGNotAuthorizedException- the supplied userId is not authorized to issue this command.org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException- invalid parameter.org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException- unusual state in the admin server.
-
disableViewService
public void disableViewService(String serviceURLMarker) throws org.odpi.openmetadata.adminservices.ffdc.exception.OMAGNotAuthorizedException, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException Disable a single view service.- Parameters:
serviceURLMarker- string indicating which view service it is configuring- Throws:
org.odpi.openmetadata.adminservices.ffdc.exception.OMAGNotAuthorizedException- the supplied userId is not authorized to issue this command.org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException- invalid parameter.org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException- unusual state in the admin server.
-
configureAllViewService
public void configureAllViewService(String partnerOMASServerURLRoot, String partnerOMASServerName, Map<String, Object> viewServiceOptions) throws org.odpi.openmetadata.adminservices.ffdc.exception.OMAGNotAuthorizedException, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorExceptionEnable all registered view services with the same partner server and options.- Parameters:
partnerOMASServerURLRoot- URL root of the OMAG Server Platform where the access service used by this view service is runningpartnerOMASServerName- name of server where the access service used by this view service is runningviewServiceOptions- property name/value pairs used to configure the view service- Throws:
org.odpi.openmetadata.adminservices.ffdc.exception.OMAGNotAuthorizedException- the supplied userId is not authorized to issue this command.org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException- invalid parameter.org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException- unusual state in the admin server.
-
setViewServicesConfig
public void setViewServicesConfig(List<org.odpi.openmetadata.adminservices.configuration.properties.ViewServiceConfig> viewServicesConfig) throws org.odpi.openmetadata.adminservices.ffdc.exception.OMAGNotAuthorizedException, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException Set up the configuration for all the open metadata view services (OMVSs). This overrides the current values.- Parameters:
viewServicesConfig- list of configuration properties for each view service.- Throws:
org.odpi.openmetadata.adminservices.ffdc.exception.OMAGNotAuthorizedException- the supplied userId is not authorized to issue this command.org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException- invalid parameter.org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException- unusual state in the admin server.
-
clearAllViewServices
public void clearAllViewServices() throws org.odpi.openmetadata.adminservices.ffdc.exception.OMAGNotAuthorizedException, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorExceptionDisable the view services. This removes all configuration for the view server.- Throws:
org.odpi.openmetadata.adminservices.ffdc.exception.OMAGNotAuthorizedException- the supplied userId is not authorized to issue this command.org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException- invalid parameter.org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException- unusual state in the admin server.
-