org.objectweb.jonas.management
Class AbsReconfigurator

java.lang.Object
  extended by org.objectweb.jonas.management.AbsReconfigurator
All Implemented Interfaces:
Reconfigurator
Direct Known Subclasses:
ReconfiguratorProp, ReconfiguratorXml

public abstract class AbsReconfigurator
extends java.lang.Object
implements Reconfigurator

This class allows for persistent reconfiguration of a JOnAS service or of a JOnAS resource This is an abstract class. It must be extended to handle properties or xml file

Author:
Adriana Danes, Florent Benoit : Add an abstract class to define ReconfiguratorXml in addition to ReconfiguratorProp

Field Summary
protected  java.lang.String configFileName
          Name of the file updated by the saveConfig method
protected  long lastSequence
          The sequence number of the last treated management notification
protected static org.objectweb.util.monolog.api.Logger logger
          Logger used
protected  java.lang.String name
          Name of the JOnAS service or JOnAS resource to which this object is associated
 
Constructor Summary
AbsReconfigurator(java.lang.String name, java.lang.String configFileName)
          Construct a reconfigurator for a JOnAS service or a JOnAS resource
 
Method Summary
abstract  void saveConfig(long sequence)
          Saves the updated configuration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
Name of the JOnAS service or JOnAS resource to which this object is associated


configFileName

protected java.lang.String configFileName
Name of the file updated by the saveConfig method


lastSequence

protected long lastSequence
The sequence number of the last treated management notification


logger

protected static org.objectweb.util.monolog.api.Logger logger
Logger used

Constructor Detail

AbsReconfigurator

public AbsReconfigurator(java.lang.String name,
                         java.lang.String configFileName)
Construct a reconfigurator for a JOnAS service or a JOnAS resource

Parameters:
name - Name of the JOnAS service or JOnAS resource to which this object is associated
configFileName - name of the config file
Method Detail

saveConfig

public abstract void saveConfig(long sequence)
                         throws ReconfigException
Saves the updated configuration

Specified by:
saveConfig in interface Reconfigurator
Parameters:
sequence - the sequence number of management notification producing the save (in fact store) operation
Throws:
ReconfigException - if the saveConfig could not be done