public class ConfigurationManagementClient extends Object
| Constructor and Description |
|---|
ConfigurationManagementClient(String serverName,
String serverPlatformRootURL)
Create a new client with no authentication embedded in the HTTP request.
|
ConfigurationManagementClient(String serverName,
String serverPlatformRootURL,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deployOMAGServerConfig(String userId,
String serverName,
String destinationPlatformURLRoot)
Push the configuration for the server to another OMAG Server Platform.
|
OMAGServerConfig |
getOMAGServerConfig(String userId,
String serverName)
Return the complete set of configuration properties in use by the server.
|
void |
setOMAGServerConfig(String userId,
OMAGServerConfig serverConfig)
Set up the configuration properties for an OMAG Server in a single command.
|
public ConfigurationManagementClient(String serverName, String serverPlatformRootURL) throws OMAGInvalidParameterException
serverName - name of the server to connect toserverPlatformRootURL - the network address of the server running the admin servicesOMAGInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public ConfigurationManagementClient(String serverName, String serverPlatformRootURL, String userId, String password) throws OMAGInvalidParameterException
serverName - name of the server to connect toserverPlatformRootURL - the network address of the server running the admin servicesuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsOMAGInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public void setOMAGServerConfig(String userId, OMAGServerConfig serverConfig) throws OMAGNotAuthorizedException, OMAGConfigurationErrorException, OMAGInvalidParameterException
userId - user that is issuing the requestserverConfig - configuration for the serverOMAGNotAuthorizedException - the supplied userId is not authorized to issue this command.OMAGConfigurationErrorException - something went wrong with the REST call stack.OMAGInvalidParameterException - invalid serverName or destinationPlatform parameter.public void deployOMAGServerConfig(String userId, String serverName, String destinationPlatformURLRoot) throws OMAGNotAuthorizedException, OMAGConfigurationErrorException, OMAGInvalidParameterException
userId - user that is issuing the requestserverName - local server namedestinationPlatformURLRoot - location of the platform where the config is to be deployed toOMAGNotAuthorizedException - the supplied userId is not authorized to issue this command.OMAGConfigurationErrorException - something went wrong with the REST call stack.OMAGInvalidParameterException - invalid serverName or destinationPlatform parameter.public OMAGServerConfig getOMAGServerConfig(String userId, String serverName) throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorException
userId - user that is issuing the requestserverName - local server nameOMAGNotAuthorizedException - the supplied userId is not authorized to issue this command.OMAGInvalidParameterException - invalid serverName parameter.OMAGConfigurationErrorException - something went wrong with the REST call stack.Copyright © 2018–2020 ODPi. All rights reserved.