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

MonitoringLevelChangeEvent

public class MonitoringLevelChangeEvent extends AdminEvent
MonitoringLevelChangeEvent is used to represent change in the Monitoring level for a component. Monitoring levels and components are configured in the configuration file element monitoring-service.

Fields Summary
static final String
eventType
Event type
private String
componentName
Monitored component name
private String
oldMonitoringLevel
Old monitoring level
private String
newMonitoringLevel
New monitoring level
Constructors Summary
public MonitoringLevelChangeEvent(String instanceName)
Creates a new instance of MonitoringLevelChangeEvent

param
instanceName the server instance affected by the change


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

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

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

        return componentName;
    
public java.lang.StringgetNewMonitoringLevel()
Get new monitoring level for the component returned by method getComponentName(). The monitoring levels are defined in the dtd for configuration.

        return newMonitoringLevel;
    
public java.lang.StringgetOldMonitoringLevel()
Get old monitoring level for the component returned by method getComponentName(). The monitoring levels are defined in dtd for configuration

        return oldMonitoringLevel;
    
voidsetComponentName(java.lang.String componentName)
Set component name.

param
componentName name of the component for which the event is being created

        this.componentName = componentName;
    
voidsetNewMonitoringLevel(java.lang.String newLevel)
Set new monitoring level

        this.newMonitoringLevel = newLevel;
    
voidsetOldMonitoringLevel(java.lang.String oldLevel)
Set old Monitoring level

        oldMonitoringLevel = oldLevel;