FileDocCategorySizeDatePackage
LifeCycleEvent.javaAPI DocGlassfish v2 API5033Fri May 04 22:33:44 BST 2007com.sun.enterprise.admin.selfmanagement.event

LifeCycleEvent

public class LifeCycleEvent 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 LifeCycleNotificationFilter
lfilter
private String
description
private String
type
public static final String
READY_EVENT
Constant to denote the eventType ready
public static final String
SHUTDOWN_EVENT
Constant to denote the eventType shutdown
public static final String
TERMINATION_EVENT
Constant to denote the eventType termination
Constructors Summary
public LifeCycleEvent(String type, LifeCycleNotificationFilter 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;
    
static javax.management.ObjectNamegetLifeCycleImplObjectName()

        if (objName != null)
            return objName;
        try {
            objName =  new ObjectName( DOMAIN_NAME,DEFAULT_KEY, "lifecycle");
        }catch (MalformedObjectNameException mex) {
            _logger.log(Level.WARNING,"smgt.internal_error", mex);
        }
        return objName;
    
public javax.management.NotificationFiltergetNotificationFilter()

        return lfilter;
    
public javax.management.ObjectNamegetObjectName()

        return objName;
    
public java.lang.StringgetType()

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

        if ("*".equals(type) || READY_EVENT.equals(type) ||
                SHUTDOWN_EVENT.equals(type) || TERMINATION_EVENT.equals(type) ) {
            return true;
        }
        return false;