1 29 30 package com.caucho.lifecycle; 31 32 import com.caucho.util.Alarm; 33 34 import javax.management.Notification ; 35 36 39 public class LifecycleNotification extends Notification { 40 public static final String AFTER_START = "caucho.lifecycle.after-start"; 41 public static final String BEFORE_STOP = "caucho.lifecycle.before-stop"; 42 43 public LifecycleNotification(String type, Object source, long sequence) 44 { 45 super(type, source, sequence, Alarm.getCurrentTime()); 46 } 47 48 public LifecycleNotification(String type, Object source, long sequence, 49 long timestamp) 50 { 51 super(type, source, sequence, timestamp); 52 } 53 54 public LifecycleNotification(String type, Object source, long sequence, 55 long timestamp, String message) 56 { 57 super(type, source, sequence, timestamp, message); 58 } 59 60 public LifecycleNotification(String type, Object source, long sequence, 61 String message) 62 { 63 super(type, source, sequence, Alarm.getCurrentTime(), message); 64 } 65 } 66 | Popular Tags |