edu.upc.dama.dex.core
Class DEX.Config

java.lang.Object
  extended by edu.upc.dama.dex.core.DEX.Config
Enclosing class:
DEX

public static class DEX.Config
extends java.lang.Object

DEX core configuration parameters. A Config instance is loaded by default with values from a a DEX properties file (DEXConfig).

See Also:
DEXConfig
Author:
Sparsity Technologies

Constructor Summary
DEX.Config()
          Stores DEX configuration parameters.
 
Method Summary
 int getCacheMaxSize()
          Gets the maximum cache size.
 java.lang.String getLicense()
          Gets the license code.
 java.lang.String getLog()
          Gets the log trace configuration.
 void setCacheMaxSize(int value)
          Sets the maximum cache size.
 void setLicense(java.lang.String value)
          Sets the license code.
 void setLog(java.lang.String value)
          Sets the log trace configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DEX.Config

public DEX.Config()
Stores DEX configuration parameters. There are some configuration parameters which are loaded by default from a DEX properties file DEXConfig.

Method Detail

setCacheMaxSize

public void setCacheMaxSize(int value)
Sets the maximum cache size.

Parameters:
value - Cache size in MB.

getCacheMaxSize

public int getCacheMaxSize()
Gets the maximum cache size.

Returns:
Maximum cache size in MB.

setLicense

public void setLicense(java.lang.String value)
Sets the license code.

Parameters:
value - License code.

getLicense

public java.lang.String getLicense()
Gets the license code.

Returns:
License code.

setLog

public void setLog(java.lang.String value)
Sets the log trace configuration.

Parameters:
value - Log trace configuration.

getLog

public java.lang.String getLog()
Gets the log trace configuration.

Returns:
Log trace configuration.