public abstract class SchemaLoader extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SchemaLoader.Result |
| Constructor and Description |
|---|
SchemaLoader() |
| Modifier and Type | Method and Description |
|---|---|
abstract SchemaLoader.Result |
addXmppAdminAccount(Properties variables)
Method attempts to add XMPP admin user account to the database using
AuthRepository. |
abstract SchemaLoader.Result |
loadSchemaFile(Properties variables)
Method checks whether the connection to the database is possible and that
database of specified name exists.
|
static SchemaLoader |
newInstance(Properties props) |
abstract SchemaLoader.Result |
postInstallation(Properties variables) |
abstract SchemaLoader.Result |
printInfo(Properties variables) |
abstract SchemaLoader.Result |
shutdown(Properties variables) |
abstract SchemaLoader.Result |
validateDBConnection(Properties variables)
Method validates whether the connection can at least be established.
|
abstract SchemaLoader.Result |
validateDBExists(Properties variables)
Method, if the connection is validated by
validateDBConnection,
checks whether desired database exists. |
abstract SchemaLoader.Result |
validateDBSchema(Properties variables) |
public static SchemaLoader newInstance(Properties props)
public abstract SchemaLoader.Result validateDBConnection(Properties variables)
variables - set of Properties with all configuration optionspublic abstract SchemaLoader.Result validateDBExists(Properties variables)
validateDBConnection,
checks whether desired database exists. If not it creates such database
using *-installer-create-db.sql schema file substituting it's
variables with ones provided.variables - set of Properties with all configuration optionspublic abstract SchemaLoader.Result validateDBSchema(Properties variables)
public abstract SchemaLoader.Result postInstallation(Properties variables)
public abstract SchemaLoader.Result printInfo(Properties variables)
public abstract SchemaLoader.Result addXmppAdminAccount(Properties variables)
AuthRepository.variables - set of Properties with all configuration optionspublic abstract SchemaLoader.Result loadSchemaFile(Properties variables)
variables - set of Properties with all configuration optionspublic abstract SchemaLoader.Result shutdown(Properties variables)
Copyright © 2022 "Tigase, Inc.". All rights reserved.