org.objectweb.jonas.management.ReconfiguratorProp Class Reference

Inherits org.objectweb.jonas.management.AbsReconfigurator.

Inheritance diagram for org.objectweb.jonas.management.ReconfiguratorProp:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas.management.ReconfiguratorProp:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ReconfiguratorProp (String name, String configFileName, Properties config)
void updateConfig (String key, String value, long sequence)
void saveConfig (long sequence) throws ReconfigException

Package Functions

void updateConfig (String key, String value, boolean add, long sequence)
void updateConfig (Properties props, long sequence)

Detailed Description

This class allows for persistent reconfiguration of a JOnAS service or of a JOnAS resource being configured by a .properties file.
Author:
Adriana Danes

Definition at line 45 of file ReconfiguratorProp.java.


Constructor & Destructor Documentation

org.objectweb.jonas.management.ReconfiguratorProp.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. It may be 'jonas.properties' if the Reconfigurator is associated to a JOnAS service, or a 'resource.properties' if the Reconfigurator is associated to a data source or a mail factory.
conf the initial content of the .properties configuration file

Definition at line 64 of file ReconfiguratorProp.java.


Member Function Documentation

void org.objectweb.jonas.management.ReconfiguratorProp.saveConfig long  sequence  )  throws ReconfigException [virtual]
 

Saves the updated configuration

Parameters:
sequence the sequence number of management notification producing the save (in fact store) operation

Implements org.objectweb.jonas.management.AbsReconfigurator.

Definition at line 162 of file ReconfiguratorProp.java.

void org.objectweb.jonas.management.ReconfiguratorProp.updateConfig Properties  props,
long  sequence
[package]
 

Updates the configuration file

Parameters:
props set of modified properties with their associated values
sequence the sequence number of management notification producing the update

Definition at line 114 of file ReconfiguratorProp.java.

void org.objectweb.jonas.management.ReconfiguratorProp.updateConfig String  key,
String  value,
boolean  add,
long  sequence
[package]
 

Updates the configuration file

Parameters:
key the modified property name
value the new value
add if true, the value has to be appended to the old value, if false, it has to be removed from the old value
sequence the sequence number of management notification producing the update

Definition at line 94 of file ReconfiguratorProp.java.

void org.objectweb.jonas.management.ReconfiguratorProp.updateConfig String  key,
String  value,
long  sequence
 

Updates the configuration file

Parameters:
key the modified property name
value the new value
sequence the sequence number of management notification producing the update

Definition at line 76 of file ReconfiguratorProp.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:07:11 2005 for JOnAS by  doxygen 1.3.9.1