Overwriting Lookup Tables
Concept
The interface DynamicLookupTableBuilder is implemented as a fluent interface which allows adjusting the settings of a lookup table. The following section describes the existing methods
The interface DynamicLookupTableBuilder
/**
* Returns the reference to the lookup table
*/
public Reference<LookupTable> getReference();
/**
* Add a new key value pair
*/
public DynamicLookupTableBuilder add( String key, String value );
/**
* Take over the existing values of the base configuration
*/
public DynamicLookupTableBuilder withExistingValues();
/**
* Remove the key-mappint from the existing lookup table
*/
public DynamicLookupTableBuilder removeKey( String key );
/**
* Take over all key/value mappings that are defined in the given file.
* The file has to be a text file that uses the same format as it is used by the monitor.
*/
public DynamicLookupTableBuilder fromFile( String filePath ) throws ConfigurationException;
/**
* Take over all key/value mappings given by the configuration string
* The configuration string must have the same format as it is used by the monitor.
*/
public DynamicLookupTableBuilder addConfig( String configuration ) throws ConfigurationException;
/**
* Add all properties found in the given props-collection
* @return
*/
public DynamicLookupTableBuilder add( Map<String,String> props );
/**
* Disable the use of a default value
*/
public DynamicLookupTableBuilder withoutDefault();
/**
* assign a default value
*/
public DynamicLookupTableBuilder withDefault( String defaultValue );
/**
* Apply all the changes.
* @throws EpiBaseException
*/
public void apply() throws EpiBaseException;