FileDocCategorySizeDatePackage
TraceEvent.javaAPI DocGlassfish v2 API5230Fri May 04 22:33:46 BST 2007com.sun.enterprise.admin.selfmanagement.event

TraceEvent

public class TraceEvent extends Object implements Event
author
Sun Micro Systems, Inc

Fields Summary
private static Logger
_logger
private static com.sun.enterprise.util.i18n.StringManager
sm
private static ObjectName
objName
private static String
defaultDescription
private TraceEventNotificationFilter
lfilter
private String
description
private String
type
Constructors Summary
public TraceEvent(String type, TraceEventNotificationFilter lfilter, String description)

    
           
        this.type = type;
        this.lfilter = lfilter;
        if (description != null)
            this.description = description;
        else
            this.description = defaultDescription;
    
Methods Summary
public voiddestroy()

        // do nothing
    
public java.lang.StringgetDescription()

        return description;
    
public javax.management.NotificationFiltergetNotificationFilter()

        return lfilter;
    
public javax.management.ObjectNamegetObjectName()

        return objName;
    
static javax.management.ObjectNamegetTraceImplObjectName()

        if (objName != null)
            return objName;
        try {
            objName =  new ObjectName( DOMAIN_NAME,DEFAULT_KEY, "trace");
        }catch (MalformedObjectNameException mex) {
            _logger.log(Level.WARNING,"smgt.internal_error", mex);
        }
        return objName;
    
public java.lang.StringgetType()

        return type;
    
public static booleanisValidType(java.lang.String type)

        if ("*".equals(type) || REQUEST_START.equals(type) ||
           REQUEST_END.equals(type) || WEB_COMPONENT_METHOD_ENTRY.equals(type) ||
           WEB_COMPONENT_METHOD_EXIT.equals(type) || EJB_COMPONENT_METHOD_ENTRY.equals(type) || 
           EJB_COMPONENT_METHOD_EXIT.equals(type) ) {
            return true;
        }
        return false;