1 27 28 package org.objectweb.jonas.management; 29 30 import org.objectweb.jonas.common.Log; 32 import org.objectweb.util.monolog.api.Logger; 33 import org.objectweb.util.monolog.api.BasicLevel; 34 40 public abstract class AbsReconfigurator implements Reconfigurator { 41 42 45 protected String name; 46 47 50 protected String configFileName; 51 52 55 protected long lastSequence; 56 57 60 protected static Logger logger = null; 61 62 63 68 public AbsReconfigurator(String name, String configFileName) { 69 logger = Log.getLogger(Log.JONAS_MANAGEMENT_PREFIX); 71 this.name = name; 72 this.configFileName = configFileName; 73 this.lastSequence = 0; 74 if (logger.isLoggable(BasicLevel.DEBUG)) { 75 logger.log(BasicLevel.DEBUG, "Creating Reconfigurator for " + name + " - configuration file is " + configFileName); 76 } 77 } 78 79 83 public abstract void saveConfig(long sequence) throws ReconfigException; 84 85 } 86 | Popular Tags |