public interface InstallerService
| Modifier and Type | Interface and Description |
|---|---|
static class |
InstallerService.AlreadyInstalledException |
static class |
InstallerService.AutoInstallDisabledException |
| Modifier and Type | Method and Description |
|---|---|
ArrayList<ServerDetails> |
getAllServerDetails(String connectionUrl,
String username,
String password)
Returns details on all servers that are registered in the database.
|
String |
getAppServerVersion()
Returns the version string for the app server itself (e.g.
|
String |
getInstallationResults()
Use this to determine if the server has already been completely installed or not.
|
String |
getOperatingSystem()
Returns the general type of operating system the server is running on (e.g.
|
ServerDetails |
getServerDetails(String connectionUrl,
String username,
String password,
String serverName)
Returns details on a specific server that is registered in the database.
|
ArrayList<String> |
getServerNames(String connectionUrl,
String username,
String password)
Returns a list of all registered servers in the database.
|
HashMap<String,String> |
getServerProperties()
Returns the rhq-server.properties values in a map.
|
void |
install(HashMap<String,String> serverProperties,
ServerDetails serverDetails,
String existingSchemaOption)
Starts the installation process.
|
boolean |
isDatabaseSchemaExist(String connectionUrl,
String username,
String password)
Tests to see if there is already a schema installed.
|
void |
listServers()
This simply logs a list of all known registered servers found in the database.
|
String |
obfuscatePassword(String clearTextPassword)
Given a database password, this will obfuscate it.
|
HashMap<String,String> |
preInstall()
Call this prior to installing to see if we are ready to install.
|
void |
prepareDatabase(HashMap<String,String> serverProperties,
ServerDetails serverDetails,
String existingSchemaOption)
Prepares the database.
|
void |
test()
This simply verifies the server configuration but doesn't perform the actual install.
|
String |
testConnection(String connectionUrl,
String username,
String password)
Tests that the database can be connected to with the given URL and credentials.
|
String obfuscatePassword(String clearTextPassword) throws Exception
clearTextPassword - the password to obfuscateExceptionvoid listServers()
throws Exception
Exceptionvoid test()
throws InstallerService.AutoInstallDisabledException,
InstallerService.AlreadyInstalledException,
Exception
InstallerService.AutoInstallDisabledException - if the server configuration properties does not have auto-install enabledInstallerService.AlreadyInstalledException - if it appears the installer was already run and the server is fully installedException - some other exception that should disallow the installation from continuingHashMap<String,String> preInstall() throws InstallerService.AutoInstallDisabledException, InstallerService.AlreadyInstalledException, Exception
install(HashMap, ServerDetails, String).InstallerService.AutoInstallDisabledException - if the server configuration properties does not have auto-install enabledInstallerService.AlreadyInstalledException - if it appears the installer was already run and the server is fully installedException - some other exception that should disallow the installation from continuingString getInstallationResults() throws Exception
Exception - if it cannot be determined if the server has been fully installed.void install(HashMap<String,String> serverProperties, ServerDetails serverDetails, String existingSchemaOption) throws InstallerService.AutoInstallDisabledException, InstallerService.AlreadyInstalledException, Exception
serverProperties - the server's settings to use. These will be persisted to
the server's .properties file.serverDetails - details on the server being installed.
If in auto-install mode, this value is ignored and can be anything.existingSchemaOption - if not in auto-install mode, this tells the installer what to do with any
existing schema. Must be one of the names of the
ServerInstallUtil.ExistingSchemaOption enum.
If in auto-install mode, this value is ignored and can be anything.InstallerService.AutoInstallDisabledException - if the server configuration properties does not have auto-install enabledInstallerService.AlreadyInstalledException - if it appears the installer was already run and the server is fully installedException - some other exception that should disallow the installation from continuingvoid prepareDatabase(HashMap<String,String> serverProperties, ServerDetails serverDetails, String existingSchemaOption) throws Exception
serverProperties - the server's settings to use. These will be persisted to
the server's .properties file.serverDetails - details on the server being installed.
If in auto-install mode, this value is ignored and can be anything.existingSchemaOption - if not in auto-install mode, this tells the installer what to do with any
existing schema. Must be one of the names of the
ServerInstallUtil.ExistingSchemaOption enum.
If in auto-install mode, this value is ignored and can be anything.Exception - failed to successfully prepare the databaseArrayList<String> getServerNames(String connectionUrl, String username, String password) throws Exception
connectionUrl - username - password - ExceptionArrayList<ServerDetails> getAllServerDetails(String connectionUrl, String username, String password) throws Exception
connectionUrl - username - password - ExceptionServerDetails getServerDetails(String connectionUrl, String username, String password, String serverName) throws Exception
connectionUrl - username - password - serverName - the name of the server whose details are to be retrievedExceptionboolean isDatabaseSchemaExist(String connectionUrl, String username, String password) throws Exception
connectionUrl - username - password - true if there appears to be a schema installed in the database already.ExceptionString testConnection(String connectionUrl, String username, String password) throws Exception
connectionUrl - username - password - null if the connection succeeded; this will be an error message if failedExceptionHashMap<String,String> getServerProperties() throws Exception
ExceptionString getAppServerVersion() throws Exception
ExceptionCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.