public interface Configurator extends SystemObserver, TreeBrowser
ConfiguratorManager.createConfigurator().
Once bound it could not be changed later. In order to change the configuration the
latter object must be released and a new one should be created using new db properties.BASE_DN, DB_SERVER_NAME, DB_SERVER_TYPE, DB_SERVER_TYPE_JDBC, DB_SERVER_TYPE_LDAP, DRIVER, DRIVER_LIB, DRIVER_LIB_NAME, HOST, MAX_CONNECTIONS, MAX_RO_CONNECTIONS, MAX_STATEMENTS, PASSWORD, PORT, SYSTEM_DB_SERVER, URL, USERDATABASE_NAME| Modifier and Type | Method and Description |
|---|---|
BackendServerHost |
addBackendServerHost(java.util.Dictionary hostProperties)
Adds backend server host.
|
void |
addDBServer(java.util.Dictionary dbServerData)
Adds database server to the set of configurations.
|
ManagementServer |
addManagementServer(java.util.Dictionary properties)
Adds new management server.
|
Network |
addNetwork(java.lang.String network)
Adds new network to the set of defined networks.
|
java.lang.String |
addNetworkFilter(java.lang.String srcNetwork,
java.lang.String dstNetwork,
int priority,
java.lang.String netAddress,
java.lang.String netMask)
Adds new network filter to the set of filters for the source network.
|
void |
apply()
Applies current configuration.
|
void |
changeBackendServerNetwork(java.lang.String hostId,
java.lang.String network)
Changes the network of the host.
|
void |
changeNetworkFilterPriority(java.lang.String filterId,
int priority)
Changes the priority of a network filter identified by the provided identificator.
|
java.lang.String |
createDBServiceFactoryConfiguration(java.lang.String roleId,
java.lang.String factoryPid,
java.util.Dictionary configuration)
Creates factory database configuration for specified target role.
|
DatabaseCatalogRecord[] |
getDBServerCatalog(java.lang.String dbServerName)
Returns an array of
DatabaseCatalogRecord objects containing info for the names,
versions and owners of all databases stored in the specified database server. |
java.lang.String |
getInitFileVersion()
Return the last applied configuration file version.
|
void |
importLastSystemConfiguration()
Overwrites current configuration with the last system configuration.
|
void |
init(java.util.Dictionary systemDbServer)
Initializes the current instance with system database server data.
|
boolean |
isActive()
Returns whether this instance is currently active.
|
void |
release()
Causes all resources allocated for this configurator to be
released & configurator to be invalidated.
|
void |
removeBackendServerHost(java.lang.String hostId)
Removes backend server host.
|
void |
removeDBServer(java.lang.String dbServerName)
Removes the db server from the set of available db servers.
|
void |
removeDBServiceConfiguration(java.lang.String roleId,
java.lang.String pid)
Removes factory database configuration from specified target role.
|
void |
removeManagementServer(java.lang.String msId)
Removes a management server from the system configuration.
|
void |
removeManagementServers()
Removes all management servers.
|
void |
removeNetwork(java.lang.String network)
Removes the provided network from the set of defined networks.
|
void |
removeNetworkFilter(java.lang.String filterId)
Removes a network filter identified by the provided identificator.
|
void |
selectWarningOption(java.lang.String warningId,
java.lang.String option)
Select option from specified configuration warning.
|
BackendServerHost |
setBackendServerHostRoles(java.lang.String hostId,
java.lang.String[] hostRoles)
This method sets backend server host roles.
|
void |
setBackendServerNetworkURLs(java.lang.String hostId,
java.lang.String network,
java.lang.String[] urls)
Binds the provided urls to the specified host within the target network.
|
void |
setDBServiceConfiguration(java.lang.String roleId,
java.util.Dictionary configuration)
This method set specific Database configuration in the system configuration
which will be used in configuration of the ConfigurableDBService defined by
property "database.name" located in this Dictionary and running on management
server specified by id.
|
void |
setInitFileVersion(java.lang.String version)
Set configuration file version.
|
void |
setSystemProperties(java.util.Dictionary properties)
Sets system properties.
|
void |
testDBServerConnection(java.util.Dictionary configuration)
This method is used to test the database server connectivity.
|
void |
testDBServerConnection(java.lang.String dbServerName)
This method is used to test the database server connectivity.
|
BackendServerHost |
updateBackendServerHostURLs(java.lang.String hostId,
java.lang.String[] urls)
This method sets backend server host urls.
|
void |
updateManagementServerContext(java.lang.String msId,
java.lang.String context)
Updates management server context.
|
getBackendServerHost, getBackendServerHostIds, getBackendServerHosts, getBackendServerHosts, getContextManagementServerIds, getContextManagementServers, getManagementServer, getManagementServerIds, getManagementServers, getNetwork, getNetworkBackendServerHosts, getNetworks, getStrictContextManagementServerId, getSystemState, unObservedContextsgetDBServerConfiguration, getDBServerNames, getDBServerNames, getDriver, getDriverIds, getSystemDBServer, removeDriver, uploadDrivergetConfigurableDatabases, getDBConfigMetaData, getDBConfiguration, getDBFactoryConfigurations, getPidsOfDBFactoryConfigurationaddBundle, addBundlePack, addPermission, createFactoryConfiguration, deleteConfiguration, getBundle, getBundle, getBundlePack, getBundlePacks, getBundles, getBundles, getBundleStream, getConfiguration, getMetaTypeProvider, getMetaTypeProviders, getPermissions, getPidsOfFactoryConfiguration, removeBundle, removeBundlePack, removePermission, setConfiguration, setPermissions, updateBundle, updateBundlePack, updateBundleTargetscreateNode, getGroup, getParent, getSubGroups, removeNodevoid init(java.util.Dictionary systemDbServer) throws CommunicationException, java.lang.Exception
ConfiguratorManager.createConfigurator(). Calling any other method first will
result in error. If once succeeded any later calls on this method will result in error.systemDbServer - - specifies connect properties for the system database server.
System database server will be used for loading system info & stored further. If null
the latter system database server will be considered.{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.ExceptionConfiguratorManager.createConfigurator()boolean isActive()
throws CommunicationException,
java.lang.Exception
{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionvoid addDBServer(java.util.Dictionary dbServerData)
throws CommunicationException,
java.lang.Exception
dbServerData - the new database server data{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionvoid removeDBServer(java.lang.String dbServerName)
throws CommunicationException,
java.lang.Exception
{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionvoid testDBServerConnection(java.lang.String dbServerName)
throws CommunicationException,
java.lang.Exception
dbServerName - database server name.{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionvoid testDBServerConnection(java.util.Dictionary configuration)
throws CommunicationException,
java.lang.Exception
configuration - database server connection settings.{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.ExceptionDatabaseCatalogRecord[] getDBServerCatalog(java.lang.String dbServerName) throws CommunicationException, java.lang.Exception
DatabaseCatalogRecord objects containing info for the names,
versions and owners of all databases stored in the specified database server.
If the connection with the database server fails the methods throws exception.dbServerName - database server name{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionvoid setDBServiceConfiguration(java.lang.String roleId,
java.util.Dictionary configuration)
throws CommunicationException,
java.lang.Exception
null configuration should be used for
configuring of the used service databases at all management servers and for the control center.roleId - target role identificatorconfiguration - properties of this configuration{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionjava.lang.String createDBServiceFactoryConfiguration(java.lang.String roleId,
java.lang.String factoryPid,
java.util.Dictionary configuration)
throws CommunicationException,
java.lang.Exception
roleId - target role identificatorfactoryPid - pid of the configurationconfiguration - of this Configuration{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionvoid removeDBServiceConfiguration(java.lang.String roleId,
java.lang.String pid)
throws CommunicationException,
java.lang.Exception
roleId - target role identificatorpid - of the configuration to be removed{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.ExceptionManagementServer addManagementServer(java.util.Dictionary properties) throws CommunicationException, java.lang.Exception
properties - of the management server to be added{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionvoid removeManagementServer(java.lang.String msId)
throws CommunicationException,
java.lang.Exception
msId - management server identificator.{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionvoid removeManagementServers()
throws CommunicationException,
java.lang.Exception
{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionvoid updateManagementServerContext(java.lang.String msId,
java.lang.String context)
throws CommunicationException,
java.lang.Exception
msId - the identificator of the Management Server.context - the context into the managed object tree.{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.ExceptionBackendServerHost addBackendServerHost(java.util.Dictionary hostProperties) throws CommunicationException, java.lang.Exception
hostProperties - of the backend server host to be added{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionvoid removeBackendServerHost(java.lang.String hostId)
throws CommunicationException,
java.lang.Exception
hostId - the backend server host identificator{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.ExceptionBackendServerHost setBackendServerHostRoles(java.lang.String hostId, java.lang.String[] hostRoles) throws CommunicationException, java.lang.Exception
hostId - the backend server host identificatorhostRoles - host roles to be set{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.ExceptionBackendServerHost updateBackendServerHostURLs(java.lang.String hostId, java.lang.String[] urls) throws CommunicationException, java.lang.Exception
{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionvoid importLastSystemConfiguration()
throws CommunicationException,
java.lang.Exception
{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionvoid selectWarningOption(java.lang.String warningId,
java.lang.String option)
throws CommunicationException,
java.lang.Exception
warningId - unique name of the configuration warningoption - selected optionException - is thrown if some error occurs.CommunicationExceptionjava.lang.Exceptionvoid apply()
throws CommunicationException,
java.lang.Exception
{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionvoid release()
throws CommunicationException,
java.lang.Exception
{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.ExceptionNetwork addNetwork(java.lang.String network) throws CommunicationException, java.lang.Exception
network - the name of the new network{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionvoid removeNetwork(java.lang.String network)
throws CommunicationException,
java.lang.Exception
Network.DEFAULT_NETWORK
or if there is a backend host participant within it.network - network to be removed{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionjava.lang.String addNetworkFilter(java.lang.String srcNetwork,
java.lang.String dstNetwork,
int priority,
java.lang.String netAddress,
java.lang.String netMask)
throws CommunicationException,
java.lang.Exception
srcNetwork - source network.dstNetwork - destination network.priority - filter priority.netAddress - network filter id.netMask - network mask.{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if there is a filter with the same source address and priority
or some other error occurs.CommunicationExceptionjava.lang.ExceptionNetworkFiltervoid changeNetworkFilterPriority(java.lang.String filterId,
int priority)
throws CommunicationException,
java.lang.Exception
filterId - network filter id.priority - new priority to be assigned.{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if there is a filter with the same source address and priority
or some other error occurs.CommunicationExceptionjava.lang.Exceptionvoid removeNetworkFilter(java.lang.String filterId)
throws CommunicationException,
java.lang.Exception
filterId - network filter id.{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionvoid setBackendServerNetworkURLs(java.lang.String hostId,
java.lang.String network,
java.lang.String[] urls)
throws CommunicationException,
java.lang.Exception
hostId - backend host id.network - target network.urls - set of URLs. null is permitted.{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionvoid changeBackendServerNetwork(java.lang.String hostId,
java.lang.String network)
throws CommunicationException,
java.lang.Exception
hostId - backend host id.network - target network{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some of the objects does not exist,
the host has no address defined within the target network or some other error occurs.CommunicationExceptionjava.lang.Exceptionvoid setSystemProperties(java.util.Dictionary properties)
throws CommunicationException,
java.lang.Exception
properties - the system properties.{@link - CommunicationException} is thrown if communication with the remote Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionjava.lang.String getInitFileVersion()
throws CommunicationException,
java.lang.Exception
{@link - CommunicationException} is thrown if communication with the remote Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionvoid setInitFileVersion(java.lang.String version)
throws CommunicationException,
java.lang.Exception
version - the new configuration file version{@link - CommunicationException} is thrown if communication with the remote Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.ExceptionCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.