Class OMAGServerOperationsClient
java.lang.Object
org.odpi.openmetadata.adminservices.client.OMAGServerOperationsClient
Deprecated.
OMAGServerOperationsClient provides services to start and stop an OMAG Server.
This client is deprecated and will be removed soon. Use the Platform Services Client to control OMAG Servers
in the OMAG Server Platform. It supports the same methods.
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
Deprecated.protected InvalidParameterHandler
Deprecated.protected NullRequestBody
Deprecated.protected AdminServicesRESTClient
Deprecated.protected String
Deprecated.protected String
Deprecated. -
Constructor Summary
ConstructorDescriptionOMAGServerOperationsClient
(String adminUserId, String serverName, String serverPlatformRootURL) Deprecated.Create a new client with no authentication embedded in the HTTP request.OMAGServerOperationsClient
(String adminUserId, String serverName, String serverPlatformRootURL, String connectionUserId, String connectionPassword) Deprecated.Create a new client that passes a connection userId and password in each HTTP request. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Activate the Open Metadata and Governance (OMAG) server using the configuration document stored for this server.activateWithSuppliedConfig
(OMAGServerConfig configuration) Deprecated.Activate the open metadata and governance services using the supplied configuration document.void
addOpenMetadataArchive
(Connection connection) Deprecated.Add a new open metadata archive to running repository.void
addOpenMetadataArchiveFile
(String fileName) Deprecated.Add a new open metadata archive to running repository.void
Deprecated.Permanently deactivate any open metadata and governance services and unregister from any cohorts.void
Deprecated.Temporarily deactivate any open metadata and governance services.Deprecated.Return the configuration used for the current active instance of the server.Deprecated.Return the status of a running server (use platform services to find out if the server is running).
-
Field Details
-
adminUserId
Deprecated. -
serverName
Deprecated. -
serverPlatformRootURL
Deprecated. -
invalidParameterHandler
Deprecated. -
restClient
Deprecated. -
nullRequestBody
Deprecated.
-
-
Constructor Details
-
OMAGServerOperationsClient
public OMAGServerOperationsClient(String adminUserId, String serverName, String serverPlatformRootURL) throws OMAGInvalidParameterException Deprecated.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:
OMAGInvalidParameterException
- there is a problem creating the client-side components to issue any REST API calls.
-
OMAGServerOperationsClient
public OMAGServerOperationsClient(String adminUserId, String serverName, String serverPlatformRootURL, String connectionUserId, String connectionPassword) throws OMAGInvalidParameterException Deprecated.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:
OMAGInvalidParameterException
- there is a problem creating the client-side components to issue any REST API calls.
-
-
Method Details
-
activateWithStoredConfig
public String activateWithStoredConfig() throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorExceptionDeprecated.Activate the Open Metadata and Governance (OMAG) server using the configuration document stored for this server.- Returns:
- success message
- Throws:
OMAGNotAuthorizedException
- the supplied userId is not authorized to issue this command.OMAGInvalidParameterException
- invalid parameter.OMAGConfigurationErrorException
- unusual state in the admin server.
-
activateWithSuppliedConfig
public String activateWithSuppliedConfig(OMAGServerConfig configuration) throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorException Deprecated.Activate the open metadata and governance services using the supplied configuration document.- Parameters:
configuration
- properties used to initialize the services- Returns:
- success message
- Throws:
OMAGNotAuthorizedException
- the supplied userId is not authorized to issue this command.OMAGInvalidParameterException
- invalid parameter.OMAGConfigurationErrorException
- unusual state in the admin server.
-
deactivateTemporarily
public void deactivateTemporarily() throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorExceptionDeprecated.Temporarily deactivate any open metadata and governance services.- Throws:
OMAGNotAuthorizedException
- the supplied userId is not authorized to issue this command.OMAGInvalidParameterException
- invalid parameter.OMAGConfigurationErrorException
- unusual state in the admin server.
-
deactivatePermanently
public void deactivatePermanently() throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorExceptionDeprecated.Permanently deactivate any open metadata and governance services and unregister from any cohorts.- Throws:
OMAGNotAuthorizedException
- the supplied userId is not authorized to issue this command.OMAGInvalidParameterException
- invalid parameter.OMAGConfigurationErrorException
- unusual state in the admin server.
-
getActiveConfiguration
public OMAGServerConfig getActiveConfiguration() throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorExceptionDeprecated.Return the configuration used for the current active instance of the server. Null is returned if the server instance is not running.- Returns:
- configuration properties used to initialize the server or null if not running
- Throws:
OMAGNotAuthorizedException
- the supplied userId is not authorized to issue this command.OMAGInvalidParameterException
- invalid parameter.OMAGConfigurationErrorException
- unusual state in the admin server.
-
getServerStatus
public ServerServicesStatus getServerStatus() throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorExceptionDeprecated.Return the status of a running server (use platform services to find out if the server is running).- Returns:
- status of the server
- Throws:
OMAGNotAuthorizedException
- the supplied userId is not authorized to issue this command.OMAGInvalidParameterException
- invalid parameter.OMAGConfigurationErrorException
- unusual state in the admin server.
-
addOpenMetadataArchiveFile
public void addOpenMetadataArchiveFile(String fileName) throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorException Deprecated.Add a new open metadata archive to running repository.- Parameters:
fileName
- name of the open metadata archive file.- Throws:
OMAGNotAuthorizedException
- the supplied userId is not authorized to issue this command.OMAGInvalidParameterException
- invalid parameter.OMAGConfigurationErrorException
- unusual state in the admin server.
-
addOpenMetadataArchive
public void addOpenMetadataArchive(Connection connection) throws OMAGNotAuthorizedException, OMAGInvalidParameterException, OMAGConfigurationErrorException Deprecated.Add a new open metadata archive to running repository.- Parameters:
connection
- connection for the open metadata archive.- Throws:
OMAGNotAuthorizedException
- the supplied userId is not authorized to issue this command.OMAGInvalidParameterException
- invalid parameter.OMAGConfigurationErrorException
- unusual state in the admin server.
-