| java.lang.Object org.objectweb.jonas.management.AbsReconfigurator org.objectweb.jonas.management.ReconfiguratorProp
ReconfiguratorProp | public class ReconfiguratorProp extends AbsReconfigurator (Code) | | This class allows for persistent reconfiguration of a JOnAS service or of a JOnAS resource
being configured by a .properties file.
author: Adriana Danes |
Constructor Summary | |
public | ReconfiguratorProp(String name, String configFileName, Properties config) Construct a reconfigurator for a JOnAS service or a JOnAS resource
Parameters: name - the name of the .properties configuration file to be updated. |
ReconfiguratorProp | public ReconfiguratorProp(String name, String configFileName, Properties config)(Code) | | Construct a reconfigurator for a JOnAS service or a JOnAS resource
Parameters: name - the name of the .properties configuration file to be updated. It may be 'jonas.properties' if the Reconfiguratoris associated to a JOnAS service, or a 'resource.properties' if the Reconfigurator is associated to adata source or a mail factory. Parameters: conf - the initial content of the .properties configuration file |
saveConfig | public void saveConfig(long sequence) throws ReconfigException(Code) | | Saves the updated configuration
Parameters: sequence - the sequence number of management notification producing the save (in fact store) operation |
updateConfig | public void updateConfig(String key, String value, long sequence)(Code) | | Updates the configuration file
Parameters: key - the modified property name Parameters: value - the new value Parameters: sequence - the sequence number of management notification producing the update |
updateConfig | void updateConfig(String key, String value, boolean add, long sequence)(Code) | | Updates the configuration file
Parameters: key - the modified property name Parameters: value - the new value Parameters: add - if true, the value has to be appended to the old value, if false, it has to be removed from the old value Parameters: sequence - the sequence number of management notification producing the update |
updateConfig | void updateConfig(Properties props, long sequence)(Code) | | Updates the configuration file
Parameters: props - set of modified properties with their associated values Parameters: sequence - the sequence number of management notification producing the update |
|
|