|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.lib.management.reconfig.actuator.BaseConfigurationActuator
org.ow2.jonas.lib.management.reconfig.actuator.PropertiesConfigurationActuator
public class PropertiesConfigurationActuator
This class allows for persistent reconfiguration of a JOnAS service or of a JOnAS resource being configured by a .properties file.
| Field Summary |
|---|
| Fields inherited from class org.ow2.jonas.lib.management.reconfig.actuator.BaseConfigurationActuator |
|---|
configFileName, lastSequence, logger, name |
| Constructor Summary | |
|---|---|
PropertiesConfigurationActuator(String name,
String configFileName,
Properties config)
Construct an IConfigurationActuator for a JOnAS service or a JOnAS resource. |
|
| Method Summary | |
|---|---|
void |
saveConfig(long sequence)
Saves the updated configuration. |
void |
updateConfig(Properties props,
long sequence)
Updates the configuration file. |
void |
updateConfig(String key,
String value,
boolean add,
long sequence)
Updates the configuration file. |
void |
updateConfig(String key,
String value,
long sequence)
Updates the configuration file. |
String |
updateValue(String oldValue,
String value,
boolean add)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertiesConfigurationActuator(String name,
String configFileName,
Properties config)
IConfigurationActuator for a JOnAS service or a JOnAS resource.
name - Service or resource name to reconfigure. The name of the .properties configuration
file to be updated. It may be 'jonas.properties' if the IConfigurationActuator is associated to
a JOnAS service, or a 'resource.properties' if the IConfigurationActuator
is associated to a data source or a mail factory.config - the initial content of the .properties configuration fileconfigFileName - name of the configuration file to update/save| Method Detail |
|---|
public void updateConfig(String key,
String value,
long sequence)
key - the modified property namevalue - the new valuesequence - the sequence number of management notification producing the update
public void updateConfig(String key,
String value,
boolean add,
long sequence)
key - the modified property namevalue - the new valueadd - if true, the value has to be appended to the old value, if false, it has to be removed from the old valuesequence - the sequence number of management notification producing the update
public void updateConfig(Properties props,
long sequence)
props - set of modified properties with their associated valuessequence - the sequence number of management notification producing the update
public String updateValue(String oldValue,
String value,
boolean add)
oldValue - value - add -
public void saveConfig(long sequence)
throws ReconfigException
sequence - the sequence number of management notification producing the save (in fact store) operation
ReconfigException - if Failed to save reconfiguration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||