|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.dqp.embedded.configuration.ServerConfigFileWriter
public class ServerConfigFileWriter
A utility to write/convert the ServerConfig file from its object form.
Constructor Summary | |
---|---|
ServerConfigFileWriter()
|
Method Summary | |
---|---|
static ConfigurationModelContainer |
addConnectorBinding(ConfigurationModelContainer model,
ConnectorBinding binding)
Add the Connector Bindings to the Configuration object and return the modified object |
static ConfigurationModelContainer |
addConnectorType(ConfigurationModelContainer model,
ConnectorBindingType type)
Add the connector Type to the configuration object supplied and return the modified object |
static ConfigurationModelContainer |
addProperties(ConfigurationModelContainer model,
java.util.Properties properties)
Add the specified properties to the configuration object and return the modified object |
static ConfigurationModelContainer |
addProperty(ConfigurationModelContainer model,
java.lang.String propertyName,
java.lang.String propertyValue)
Add the given property to the configuration object and return the modified object |
static ConfigurationModelContainer |
deleteConnectorBinding(ConfigurationModelContainer model,
ConnectorBinding binding)
Remove the Connector Bindings to the Configuration object and return the modified object |
static ConfigurationModelContainer |
deleteConnectorType(ConfigurationModelContainer model,
ConnectorBindingType type)
Delete the connector Type to the configuration object supplied and return the modified object |
static void |
write(ConfigurationModelContainer model,
java.net.URL configFileURL)
Write the Server Configuration into supplied file, in the known Server Configuration format as in config.xml |
static char[] |
writeToCharArray(ConfigurationModelContainer model)
Write the Server Configuration into supplied file, in the known Server Configuration format as in config.xml (This is clearly a hack without Mr.Halbert's help) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServerConfigFileWriter()
Method Detail |
---|
public static char[] writeToCharArray(ConfigurationModelContainer model) throws MetaMatrixComponentException
properties
-
ApplicationInitializationException
MetaMatrixComponentException
public static void write(ConfigurationModelContainer model, java.net.URL configFileURL) throws MetaMatrixComponentException
properties
- configFileURL
-
ApplicationInitializationException
MetaMatrixComponentException
public static ConfigurationModelContainer addConnectorBinding(ConfigurationModelContainer model, ConnectorBinding binding) throws MetaMatrixComponentException
model
- - Configuration to be changed.binding
- - Connector binding to add/replace
MetaMatrixComponentException
public static ConfigurationModelContainer deleteConnectorBinding(ConfigurationModelContainer model, ConnectorBinding binding) throws MetaMatrixComponentException
model
- - Configuration to be changed.binding
- - Connector binding to add/replace
MetaMatrixComponentException
public static ConfigurationModelContainer addConnectorType(ConfigurationModelContainer model, ConnectorBindingType type) throws MetaMatrixComponentException
model
- - current configuration to be modifiedtype
- - connector type to be added/replaced
MetaMatrixComponentException
public static ConfigurationModelContainer deleteConnectorType(ConfigurationModelContainer model, ConnectorBindingType type) throws MetaMatrixComponentException
model
- - current configuration to be modifiedtype
- - connector type to be added/replaced
MetaMatrixComponentException
public static ConfigurationModelContainer addProperty(ConfigurationModelContainer model, java.lang.String propertyName, java.lang.String propertyValue) throws MetaMatrixComponentException
model
- - model to be modifiedpropertyName
- - Property NamepropertyValue
- - value to be added/replaced.
MetaMatrixComponentException
public static ConfigurationModelContainer addProperties(ConfigurationModelContainer model, java.util.Properties properties) throws MetaMatrixComponentException
model
- - model to be modifiedproperties
- - properties to add/replace.
MetaMatrixComponentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |