FileDocCategorySizeDatePackage
LogLevelChangeEvent.javaAPI DocGlassfish v2 API5376Fri May 04 22:33:34 BST 2007com.sun.enterprise.admin.event

LogLevelChangeEvent

public class LogLevelChangeEvent extends AdminEvent
LogLevelChangeEvent is used to represent change in the log level for a module. Log levels and modules are configured in the configuration file element module-log-levels.

Fields Summary
static final String
eventType
Event type
private String
moduleName
Logger module name
private String
oldLogLevel
Old log level
private String
newLogLevel
New log level
private boolean
propertyChanged
true when this event represents property changes in the module-log-level element
private String
modifiedPropertyName
name of the modified property
Constructors Summary
public LogLevelChangeEvent(String instanceName)
Creates a new instance of LogLevelChangeEvent

param
instanceName the server instance affected by the change


                        
       
        this(eventType, instanceName);
    
protected LogLevelChangeEvent(String eventType, String instanceName)
Creates a new instance of LogLevelChangeEvent

eventType
type of the event
param
instanceName the server instance affected by the change

        super(eventType, instanceName);
    
Methods Summary
public java.lang.StringgetModuleName()
Get name of the module for which log level has changed. The name of the module is defined in the dtd for configuration.

        return moduleName;
    
public java.lang.StringgetNewLogLevel()
Get new log level for the module returned by method getModuleName(). The log levels are defined in the dtd for configuration

        return newLogLevel;
    
public java.lang.StringgetOldLogLevel()
Get old log level for the module returned by method getModuleName(). The log levels are defined in dtd for configuration

        return oldLogLevel;
    
public java.lang.StringgetPropertyName()
Returns the name of the modified property when isPropertyChanged is true.

return
name of the modified property or null

        return this.modifiedPropertyName;
    
public booleanisPropertyChanged()
Returns true when propery changed for module-log-levels.

return
true when property changed for module-log-levels

        return this.propertyChanged;
    
voidsetModuleName(java.lang.String moduleName)
Set module name.

param
moduleName name of the module for which the event is being created

        this.moduleName = moduleName;
    
voidsetNewLogLevel(java.lang.String newLevel)
Set new log level

        this.newLogLevel = newLevel;
    
voidsetOldLogLevel(java.lang.String oldLevel)
Set old log level

        oldLogLevel = oldLevel;
    
voidsetPropertyChanged(boolean tf)
Sets the property change flag for module-log-levels.

param
tf val for property change flag

        this.propertyChanged = tf;
    
voidsetPropertyName(java.lang.String name)
Sets the name of the modified property.

param
name name of the modified property

        this.modifiedPropertyName = name;