All Methods Static Methods Instance Methods Abstract Methods Concrete Methods
Modifier and Type |
Method and Description |
protected <T extends DataSource> SchemaLoader.Result |
addUsersToRepository(SchemaManager.SchemaInfo schemaInfo,
T dataSource,
Class<T> dataSourceClass,
List<BareJID> jids,
String password,
Logger log) |
protected Function<AuthRepository,SchemaLoader.Result> |
addUsersToRepositoryFunction(List<BareJID> jids,
String pwd,
Logger log) |
abstract SchemaLoader.Result |
addXmppAdminAccount(SchemaManager.SchemaInfo schemaInfo)
Method attempts to add XMPP admin user account to the database using AuthRepository .
|
abstract P |
createParameters() |
abstract SchemaLoader.Result |
destroyDataSource() |
abstract void |
execute(SchemaLoader.Parameters params) |
static List<SchemaLoader.TypeInfo> |
getAllSupportedTypes() |
static Stream<SchemaLoader.TypeInfo> |
getAllSupportedTypesStream() |
abstract List<CommandlineParameter> |
getCommandlineParameters() |
abstract Optional<Version> |
getComponentVersionFromDb(String component) |
protected String |
getConfigString() |
protected <DS extends DataSource> Stream<Class<DataSourceAware<DS>>> |
getDataSourceAwareClassesForSchemaInfo(SchemaManager.SchemaInfo schema,
Class<DS> dataSourceIfc) |
abstract String |
getDBUri() |
protected <DSIFC extends DataSource,DS extends DSIFC> Stream<DataSourceAware> |
getInitializedDataSourceAwareForSchemaInfo(SchemaManager.SchemaInfo schema,
Class<DSIFC> dataSourceIfc,
DS dataSource,
Logger log) |
static List<CommandlineParameter> |
getMainCommandlineParameters(boolean forceNotRequired) |
abstract Optional<Version> |
getMinimalRequiredComponentVersionForUpgrade(SchemaManager.SchemaInfo schema) |
abstract List<CommandlineParameter> |
getSetupOptions() |
abstract List<SchemaLoader.TypeInfo> |
getSupportedTypes() |
protected String |
getType() |
void |
init(P props) |
abstract void |
init(P props,
Optional<SchemaManager.RootCredentialsCache> rootCredentialsCache) |
protected AuthRepository |
initializeAuthRepository(AuthRepository authRepository) |
protected <T extends DataSource> Function<DataSourceAware<T>,DataSourceAware<T>> |
initializeDataSourceAwareFunction(T dataSource,
Logger log) |
protected <T> T |
instantiateClass(Class<T> clazz) |
boolean |
isSupported(String dbType) |
SchemaLoader.Result |
loadCommonSchema() |
abstract SchemaLoader.Result |
loadSchema(SchemaManager.SchemaInfo schemaInfo,
String version) |
abstract SchemaLoader.Result |
loadSchemaFile(String fileName)
Method checks whether the connection to the database is possible and that database of specified name exists.
|
static void |
main(String[] args)
Main method allowing pass arguments to the class and setting all logging to be printed to console.
|
static SchemaLoader |
newInstance(String type) |
static SchemaLoader |
newInstanceForURI(String uri) |
abstract SchemaLoader.Result |
postInstallation() |
SchemaLoader.Result |
printInfo() |
abstract SchemaLoader.Result |
setComponentVersion(String component,
String version)
Methods attempt to write to database loaded schema version for particular component
|
abstract SchemaLoader.Result |
shutdown() |
abstract SchemaLoader.Result |
validateDBConnection()
Method validates whether the connection can at least be eI stablished.
|
abstract SchemaLoader.Result |
validateDBExists()
Method, if the connection is validated by validateDBConnection , checks whether desired database exists.
|