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

TimerEvent

public class TimerEvent extends Object implements Event

Fields Summary
private static com.sun.enterprise.util.i18n.StringManager
sm
private static Logger
_logger
private static ObjectName
objName
private NotificationFilter
filter
private String
description
private static String
defaultDescription
private int
id
Constructors Summary
TimerEvent(Integer id, NotificationFilter filter, String description)

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

        TimerEventFactory.getInstance().removeEvent(id);
    
public java.lang.StringgetDescription()

        return description;
    
public javax.management.NotificationFiltergetNotificationFilter()

        return filter;
    
public javax.management.ObjectNamegetObjectName()

        return getTimerObjectName();
    
static javax.management.ObjectNamegetTimerObjectName()

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

        return "timer";