MongoSchemaLoader

public class MongoSchemaLoader extends SchemaLoader<MongoSchemaLoader.Parameters>

Created by andrzej on 05.05.2017.

Fields

SCHEMA_VERSION

protected static final String SCHEMA_VERSION

Methods

addXmppAdminAccount

public Result addXmppAdminAccount(SchemaManager.SchemaInfo schemaInfo)

createParameters

public Parameters createParameters()

destroyDataSource

public Result destroyDataSource()

execute

public void execute(SchemaLoader.Parameters params)

getCommandlineParameters

public List<CommandlineParameter> getCommandlineParameters()

getComponentVersionFromDb

public Optional<Version> getComponentVersionFromDb(String component)

getDBUri

public String getDBUri()

getMinimalRequiredComponentVersionForUpgrade

public Optional<Version> getMinimalRequiredComponentVersionForUpgrade(SchemaManager.SchemaInfo schemaInfo)

getSetupOptions

public List<CommandlineParameter> getSetupOptions()

getSupportedTypes

public List<TypeInfo> getSupportedTypes()

init

public void init(Parameters params, Optional<SchemaManager.RootCredentialsCache> rootCredentialsCache)

loadSchema

public Result loadSchema(SchemaManager.SchemaInfo schema, String version)

loadSchemaFile

public Result loadSchemaFile(String fileName)

postInstallation

public Result postInstallation()

printInfo

public Result printInfo()

setComponentVersion

public Result setComponentVersion(String component, String version)

shutdown

public Result shutdown()

validateDBConnection

public Result validateDBConnection()

validateDBExists

public Result validateDBExists()