|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.qedeq.kernel.se.config.QedeqConfig
public class QedeqConfig
This class gives a type save access to properties of the application.
| Constructor Summary | |
|---|---|
QedeqConfig(java.io.File configFile,
java.lang.String description,
java.io.File basisDirectory)
Constructor. |
|
| Method Summary | |
|---|---|
java.io.File |
createAbsolutePath(java.lang.String path)
Get file path starting from basis directory of this application. |
java.io.File |
getBasisDirectory()
Get basis directory of this application. |
java.io.File |
getBufferDirectory()
Get local file directory for module buffering. |
int |
getConnectionTimeout()
Get connection timeout, especially for TCP/IP connections. |
java.io.File |
getGenerationDirectory()
Get local file directory to save generated files in. |
java.lang.String |
getHttpNonProxyHosts()
Get non http proxy hosts. |
java.lang.String |
getHttpProxyHost()
Get http proxy host. |
java.lang.String |
getHttpProxyPort()
Get http proxy port. |
protected java.lang.String |
getKeyValue(java.lang.String key)
Get value for given key. |
protected boolean |
getKeyValue(java.lang.String key,
boolean defaultValue)
Get value for given key. |
protected int |
getKeyValue(java.lang.String key,
int defaultValue)
Get value for given key. |
protected java.lang.String |
getKeyValue(java.lang.String key,
java.lang.String defaultValue)
Get value for given key. |
java.io.File |
getLocalModulesDirectory()
Get directory for newly created QEDEQ module files. |
java.io.File |
getLogFile()
Get file location for log file. |
java.lang.String[] |
getModuleHistory()
Get history of modules, which were tried to load. |
java.lang.String[] |
getPreviouslyLoadedModules()
Get list of previously loaded modules. |
int |
getReadTimeout()
Get read timeout, especially for TCP/IP connections. |
Parameters |
getServiceEntries(Service service)
Get service properties from configuration file. |
boolean |
getServiceKeyValue(Service service,
java.lang.String key,
boolean defaultValue)
Get value for given service key. |
int |
getServiceKeyValue(Service service,
java.lang.String key,
int defaultValue)
Get value for given service key. |
java.lang.String |
getServiceKeyValue(Service service,
java.lang.String key,
java.lang.String defaultValue)
Get value for given service key. |
boolean |
isAutoReloadLastSessionChecked()
Get auto reload of last session successfully loaded modules. |
boolean |
isTraceOn()
Is tracing on? If not, only business and fatal messages are logged. |
void |
saveModuleHistory(java.util.List modules)
Save history of modules, which were tried to load. |
void |
setAutoReloadLastSessionChecked(boolean mode)
Set auto reload checked modules of last session mode. |
void |
setBufferDirectory(java.io.File location)
Set local file directory for module buffering. |
void |
setConnectionTimeout(int timeout)
Set connection timeout, especially for TCP/IP connections. |
void |
setGenerationDirectory(java.io.File location)
Set local file directory for generated files. |
void |
setHttpNonProxyHosts(java.lang.String httpNonProxyHosts)
Set http non proxy hosts. |
void |
setHttpProxyHost(java.lang.String httpProxyHost)
Set http proxy host. |
void |
setHttpProxyPort(java.lang.String httpProxyPort)
Set http proxy port. |
protected void |
setKeyValue(java.lang.String key,
boolean value)
Set value for given key. |
protected void |
setKeyValue(java.lang.String key,
int value)
Set value for given key. |
protected void |
setKeyValue(java.lang.String key,
java.lang.String value)
Set value for given key. |
void |
setLocalModulesDirectory(java.io.File location)
Set directory for newly created module files. |
void |
setPreviouslyLoadedModules(java.lang.String[] moduleAddresses)
Set list of previously successfully loaded QEDEQ modules. |
void |
setReadTimeout(int timeout)
Set read timeout, especially for TCP/IP connections. |
void |
setServiceKeyValue(Service service,
java.lang.String key,
boolean value)
Set value for given service key. |
void |
setServiceKeyValue(Service service,
java.lang.String key,
int value)
Set value for given service key. |
void |
setServiceKeyValue(Service service,
java.lang.String key,
java.lang.String value)
Set value for given service key. |
void |
setServiceKeyValues(Service service,
Parameters parameters)
Set value for given service key. |
void |
setTraceOn(boolean traceOn)
Set tracing on. |
void |
store()
Store properties in configuration file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QedeqConfig(java.io.File configFile,
java.lang.String description,
java.io.File basisDirectory)
throws java.io.IOException
configFile - Config file.description - Config file description.basisDirectory - Basis directory of application for all variable data. Basis for all
new relative paths
java.io.IOException - Config file couldn't be loaded.| Method Detail |
|---|
public final void store()
throws java.io.IOException
java.io.IOException - Writing failed.public final java.io.File getGenerationDirectory()
public final void setGenerationDirectory(java.io.File location)
location - generation directory.public final java.io.File getBufferDirectory()
public final void setBufferDirectory(java.io.File location)
location - buffer directory.public final java.io.File getLocalModulesDirectory()
public final void setLocalModulesDirectory(java.io.File location)
location - Buffer directory.public final java.io.File getLogFile()
public final java.lang.String[] getModuleHistory()
public final void saveModuleHistory(java.util.List modules)
modules - list of modules.public final java.lang.String[] getPreviouslyLoadedModules()
public final void setPreviouslyLoadedModules(java.lang.String[] moduleAddresses)
moduleAddresses - This modules were successfully loaded.public final java.io.File getBasisDirectory()
public final java.io.File createAbsolutePath(java.lang.String path)
path - Go to this path starting from basis directory.
public boolean isAutoReloadLastSessionChecked()
public final void setAutoReloadLastSessionChecked(boolean mode)
mode - enable auto reload?public final boolean isTraceOn()
public final void setTraceOn(boolean traceOn)
traceOn - Set trace on.public int getConnectionTimeout()
public final void setConnectionTimeout(int timeout)
timeout - Connection timeout, especially for TCP/IP connections. In milliseconds.public int getReadTimeout()
public final void setReadTimeout(int timeout)
timeout - Read timeout, especially for TCP/IP connections. In milliseconds.public final void setHttpProxyHost(java.lang.String httpProxyHost)
httpProxyHost - Http proxy server.public final java.lang.String getHttpProxyHost()
null.public final void setHttpProxyPort(java.lang.String httpProxyPort)
httpProxyPort - Http proxy port.public final java.lang.String getHttpProxyPort()
null.public final void setHttpNonProxyHosts(java.lang.String httpNonProxyHosts)
httpNonProxyHosts - Http non proxy hosts. Might be null.public final java.lang.String getHttpNonProxyHosts()
null.protected java.lang.String getKeyValue(java.lang.String key)
key - Get value for this key.
null.
protected java.lang.String getKeyValue(java.lang.String key,
java.lang.String defaultValue)
key - Get value for this key.defaultValue - Default value..
null defaultValue
is returned..
protected void setKeyValue(java.lang.String key,
java.lang.String value)
key - For this key.value - Set this value.
protected int getKeyValue(java.lang.String key,
int defaultValue)
key - Get value for this key.defaultValue - Default value..
null defaultValue
is returned..
protected void setKeyValue(java.lang.String key,
int value)
key - For this key.value - Set this value.
protected boolean getKeyValue(java.lang.String key,
boolean defaultValue)
key - Get value for this key.defaultValue - Default value..
null defaultValue
is returned.
protected void setKeyValue(java.lang.String key,
boolean value)
key - For this key.value - Set this value.public Parameters getServiceEntries(Service service)
service - We want to know properties for this service
public java.lang.String getServiceKeyValue(Service service,
java.lang.String key,
java.lang.String defaultValue)
service - Setting for this service.key - Get value for this key.defaultValue - Default value..
null defaultValue
is returned.
public void setServiceKeyValue(Service service,
java.lang.String key,
java.lang.String value)
service - Setting for this service.key - For this key.value - Set this value.
public void setServiceKeyValues(Service service,
Parameters parameters)
service - Setting for this service.parameters - Parameters for this service.
public int getServiceKeyValue(Service service,
java.lang.String key,
int defaultValue)
service - Setting for this service.key - Get value for this key.defaultValue - Default value..
null defaultValue
is returned.
public void setServiceKeyValue(Service service,
java.lang.String key,
int value)
service - Setting for this service.key - For this key.value - Set this value.
public boolean getServiceKeyValue(Service service,
java.lang.String key,
boolean defaultValue)
service - Setting for this service.key - Get value for this key.defaultValue - Default value..
null defaultValue
is returned.
public void setServiceKeyValue(Service service,
java.lang.String key,
boolean value)
service - Setting for this service.key - For this key.value - Set this value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||