public interface SystemDatabase extends BackendBundlesDatabase
| Modifier and Type | Field and Description |
|---|---|
static int |
BASE_DIFFERENT
Database state value returned by
getDBState(),
if the tables needed by this database are present on the db server,
but with a different structure that cannot be converted. |
static int |
BASE_EMPTY
Database state value returned by
getDBState(),
if the tables needed by this database
are not present on the db server. |
static int |
BASE_IN_USE
Database state value returned by
getDBState(),
if the tables needed by this database
are present on the db server in the needed format,
but the database is in use by another mPRM system. |
static int |
BASE_OK
Database state value returned by
getDBState(),
if the tables needed by this database
are present on the db server in the needed format,
and the database server is not in use by another mPRM system. |
static int |
BASE_OLD_IN_USE
Database state value returned by
getDBState(),
if the tables needed by this database
are present on the db server in an old format that can be converted,
but the database server is in use by another mPRM system. |
static int |
BASE_OLD_OK
Database state value returned by
getDBState(),
if the tables needed by this database
are present on the db server in an old format that can be converted,
and the database server is not in use by another mPRM system. |
static java.lang.String |
DATABASE_NAME
The database name used to identify The System Database
in Database catalogue.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDBServer(com.prosyst.mprm.data.system.DBServerInfo dbServer)
Adds a DB server.
|
void |
addDriver(java.lang.String driverId,
java.io.InputStream driver)
Adds a db driver.
|
void |
addDriver(java.lang.String driverId,
java.io.InputStream driver,
long length)
Adds a db driver.
|
void |
addHost(com.prosyst.mprm.data.system.HostInfo host)
Adds a host.
|
void |
addManagementServer(com.prosyst.mprm.data.system.MSInfo msInfo)
Adds a management server.
|
void |
addNetwork(java.lang.String network)
Adds a network with the specified name into the database.
|
void |
addNetworkFilter(com.prosyst.mprm.data.system.NetworkFilterInfo networkFilter)
Adds a network filter to the database.
|
void |
addNetworkFilters(com.prosyst.mprm.data.system.NetworkFilterInfo[] networkFilters)
Removes network & its data(associated network filters) with respect to the the specified argument.
|
void |
addNetworks(java.lang.String[] networks)
Adds the specified set of network names within the database.
|
TransactionalSystemDatabase |
begin()
Returns instance of
SystemDatabase which all calls will be treated as
a transaction till commit or rollback is called. |
void |
convertTables()
Converts database tables to the required format.
|
void |
createTables()
Creates database required tables if not present.
|
com.prosyst.mprm.data.system.CCInfo |
getCCInfo()
Returns the ControlCenter information stored into the database.
|
com.prosyst.mprm.data.system.DBServerInfo |
getDBServer(java.lang.String name)
Returns the description of the DB server with the specified name.
|
java.lang.String[] |
getDBServerNames()
Returns the names of all registered DB servers.
|
com.prosyst.mprm.data.system.DBServerInfo[] |
getDBServers()
Returns the descriptions of all registered DB servers.
|
int |
getDBState()
Checks and returns the state of the database.
|
java.io.InputStream |
getDriver(java.lang.String driverId)
Returns the DB server driver JAR file with the specified id.
|
java.lang.String[] |
getDriverIds() |
com.prosyst.mprm.data.system.HostInfo |
getHost(java.lang.String id)
Returns the host with the specified id.
|
com.prosyst.mprm.data.system.HostInfo[] |
getHosts(java.lang.String[] roles)
Returns the hosts with the specified roles.
|
java.lang.String |
getInitFileVersion()
Return the last applied configuration file version.
|
com.prosyst.mprm.data.system.MSInfo |
getManagementServer(java.lang.String id)
Returns a specific management server.
|
com.prosyst.mprm.data.system.MSInfo[] |
getManagementServers()
Returns
MSInfos describing all management
servers in the database. |
com.prosyst.mprm.data.system.NetworkFilterInfo[] |
getNetworkFilters(java.lang.String network)
Returns all network filters associated with a network.
|
java.lang.String[] |
getNetworks()
Returns the network names stored into the database.
|
DictionaryInfo |
getSystemProperties()
Returns all system properties.
|
void |
removeDBServer(java.lang.String name)
Removes the database server with the specified name.
|
void |
removeDBServers()
Removes all DB servers.
|
void |
removeDriver(java.lang.String driverId)
Removes the database driver JAR with the specified ID.
|
void |
removeDrivers()
Removes all DB driver JARs.
|
void |
removeHost(java.lang.String id)
Removes the specified host.
|
void |
removeHosts()
Removes all host information.
|
void |
removeManagementServer(java.lang.String msid)
Removes the management server with the specified MS ID.
|
void |
removeManagementServers()
Removes all management servers.
|
void |
removeNetwork(java.lang.String network)
Removes network & its data(associated network filters) with respect to the the specified argument.
|
void |
removeNetworkFilters(java.lang.String network)
Removes all network filters on associated with the specified network.
|
void |
setCCInfo(com.prosyst.mprm.data.system.CCInfo info)
Stores the information for the ControlCenter into the database.
|
void |
setInitFileVersion(java.lang.String version)
Set configuration file version.
|
void |
setSystemProperties(DictionaryInfo properties)
Sets system properties.
|
void |
updateHost(com.prosyst.mprm.data.system.HostInfo host)
Updates information about a host.
|
addBundle, addConfig, addDBConfig, addDBMetaTypeProvider, addMetaTypeProvider, addPackage, addPermissions, getBundle, getBundle, getBundleJar, getBundles, getConfigs, getDBConfigs, getDBConfigs, getDBMetaTypeProvider, getDBMetaTypeProviders, getDBMetaTypeProviders, getMetaTypeProvider, getMetaTypeProviders, getMetaTypeProviders, getPackage, getPackageBundles, getPackageNames, getPackages, getPackagesDependentOn, getPermissions, getPermissions, getUserBundles, loadDBMetaTypeProvider, loadMetaTypeProvider, removeBundle, removeBundles, removeConfigs, removeDBConfigs, removeDBConfigs, removeDBMetaTypeProviders, removeMetaTypeProviders, removePackage, removePackageBundles, removePackages, removePermissions, removePermissions, removeUserBundles, setPermissions, updateBundle, updatePackagestatic final java.lang.String DATABASE_NAME
static final int BASE_EMPTY
getDBState(),
if the tables needed by this database
are not present on the db server.static final int BASE_OLD_OK
getDBState(),
if the tables needed by this database
are present on the db server in an old format that can be converted,
and the database server is not in use by another mPRM system.static final int BASE_OLD_IN_USE
getDBState(),
if the tables needed by this database
are present on the db server in an old format that can be converted,
but the database server is in use by another mPRM system.static final int BASE_OK
getDBState(),
if the tables needed by this database
are present on the db server in the needed format,
and the database server is not in use by another mPRM system.static final int BASE_IN_USE
getDBState(),
if the tables needed by this database
are present on the db server in the needed format,
but the database is in use by another mPRM system.static final int BASE_DIFFERENT
getDBState(),
if the tables needed by this database are present on the db server,
but with a different structure that cannot be converted.int getDBState()
void createTables()
throws DatabaseException
getDBState(),
if it has returned BASE_EMPTY.{@link - DatabaseException} if an error occurs.DatabaseExceptionvoid convertTables()
throws DatabaseException
getDBState(),
if it has returned BASE_OLD_OK or BASE_OLD_IN_USE.{@link - DatabaseException} if an error occurs.DatabaseExceptionvoid setCCInfo(com.prosyst.mprm.data.system.CCInfo info)
throws DatabaseException
info - the ControlCenter information.{@link - DatabaseException} if an error occurs.DatabaseExceptioncom.prosyst.mprm.data.system.CCInfo getCCInfo()
throws DatabaseException
{@link - DatabaseException} if an error occurs.DatabaseExceptionvoid addDBServer(com.prosyst.mprm.data.system.DBServerInfo dbServer)
throws DatabaseException
dbServer - the DB server.{@link - DatabaseException} if an error occurs.DatabaseExceptionjava.lang.String[] getDBServerNames()
throws DatabaseException
{@link - DatabaseException} if an error occurs.DatabaseExceptioncom.prosyst.mprm.data.system.DBServerInfo getDBServer(java.lang.String name)
throws DatabaseException
name - the name of DB Server.{@link - DatabaseException} if an error occurs.DatabaseExceptioncom.prosyst.mprm.data.system.DBServerInfo[] getDBServers()
throws DatabaseException
{@link - DatabaseException} if an error occurs.DatabaseExceptionvoid removeDBServer(java.lang.String name)
throws DatabaseException
name - the database server name.{@link - DatabaseException} if an error occurs.DatabaseExceptionvoid removeDBServers()
throws DatabaseException
{@link - DatabaseException} if an error occurs.DatabaseExceptionvoid addDriver(java.lang.String driverId,
java.io.InputStream driver)
throws DatabaseException
driverId - the name of the jar file.driver - the db driver.{@link - DatabaseException} if an error occurs.DatabaseExceptionvoid addDriver(java.lang.String driverId,
java.io.InputStream driver,
long length)
throws DatabaseException
driverId - the name of the jar file.driver - the db driver.length - the number of bytes in the stream.{@link - DatabaseException} if an error occurs.DatabaseExceptionjava.lang.String[] getDriverIds()
throws DatabaseException
{@link - DatabaseException} if an error occurs.DatabaseExceptionjava.io.InputStream getDriver(java.lang.String driverId)
throws DatabaseException
{@link - DatabaseException} if an error occurs.DatabaseExceptionvoid removeDriver(java.lang.String driverId)
throws DatabaseException
driverId - the database driver JAR ID.{@link - DatabaseException} if an error occurs.DatabaseExceptionvoid removeDrivers()
throws DatabaseException
{@link - DatabaseException} if an error occurs.DatabaseExceptionvoid addManagementServer(com.prosyst.mprm.data.system.MSInfo msInfo)
throws DatabaseException
msInfo - management server info.{@link - DatabaseException} if an error occurs.DatabaseExceptioncom.prosyst.mprm.data.system.MSInfo getManagementServer(java.lang.String id)
throws DatabaseException
id - management server ID.{@link - DatabaseException} if an error occurs.DatabaseExceptioncom.prosyst.mprm.data.system.MSInfo[] getManagementServers()
throws DatabaseException
MSInfos describing all management
servers in the database.{@link - DatabaseException} if an error occurs.DatabaseExceptionvoid removeManagementServer(java.lang.String msid)
throws DatabaseException
msid - the MS ID.{@link - DatabaseException} if an error occurs.DatabaseExceptionvoid removeManagementServers()
throws DatabaseException
{@link - DatabaseException} if an error occurs.DatabaseExceptionvoid addHost(com.prosyst.mprm.data.system.HostInfo host)
throws DatabaseException
host - the host to be added.{@link - DatabaseException} if an error occurs.DatabaseExceptioncom.prosyst.mprm.data.system.HostInfo[] getHosts(java.lang.String[] roles)
throws DatabaseException
roles parameter is null, all hosts are returned.
To search for hosts with the default role, pass a null element
in the roles array.roles - the roles.{@link - DatabaseException} if an error occurs.DatabaseExceptioncom.prosyst.mprm.data.system.HostInfo getHost(java.lang.String id)
throws DatabaseException
id - the id.{@link - DatabaseException} if an error occurs.DatabaseExceptionvoid updateHost(com.prosyst.mprm.data.system.HostInfo host)
throws DatabaseException
host - the host information; all fields must be valid.{@link - DatabaseException} if an error occurs.DatabaseExceptionvoid removeHost(java.lang.String id)
throws DatabaseException
id - the host id.{@link - DatabaseException} if an error occurs.DatabaseExceptionvoid removeHosts()
throws DatabaseException
{@link - DatabaseException} if an error occurs.DatabaseExceptionvoid addNetwork(java.lang.String network)
throws DatabaseException
network - the name of the network{@link - DatabaseException} if an error occurs.DatabaseExceptionvoid addNetworks(java.lang.String[] networks)
throws DatabaseException
networks - - network names to be added.{@link - DatabaseException} if an error occurs.DatabaseExceptionjava.lang.String[] getNetworks()
throws DatabaseException
{@link - DatabaseException} if an error occurs.DatabaseExceptionvoid removeNetwork(java.lang.String network)
throws DatabaseException
null all networks will be removed.network - the name of the network{@link - DatabaseException} if an error occurs.DatabaseExceptionvoid addNetworkFilter(com.prosyst.mprm.data.system.NetworkFilterInfo networkFilter)
throws DatabaseException
networkFilter - network filter to be added.{@link - DatabaseException} if an error occurs.DatabaseExceptionvoid addNetworkFilters(com.prosyst.mprm.data.system.NetworkFilterInfo[] networkFilters)
throws DatabaseException
null all networks will be removed.networkFilters - network filters to be added.{@link - DatabaseException} if an error occurs.DatabaseExceptioncom.prosyst.mprm.data.system.NetworkFilterInfo[] getNetworkFilters(java.lang.String network)
throws DatabaseException
network - the network name which filters has to be returned.{@link - DatabaseException} if an error occurs.DatabaseExceptionvoid removeNetworkFilters(java.lang.String network)
throws DatabaseException
network - the name of the network which associated filters must be removed.{@link - DatabaseException} if an error occurs.DatabaseExceptionTransactionalSystemDatabase begin() throws DatabaseException
SystemDatabase which all calls will be treated as
a transaction till commit or rollback is called.{@link - DatabaseException} if called an error occurs or method called on
TransactionalSystemDatabase instance.DatabaseExceptionvoid setSystemProperties(DictionaryInfo properties) throws DatabaseException
properties - the system properties.DatabaseException - if an error occurs.DictionaryInfo getSystemProperties() throws DatabaseException
DatabaseException - if an error occurs.java.lang.String getInitFileVersion()
throws DatabaseException
DatabaseException - if an error occurs.void setInitFileVersion(java.lang.String version)
throws DatabaseException
version - the new configuration file versionDatabaseException - if an error occurs.Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.