1 7 8 package javax.management.timer; 9 10 11 12 import java.util.Date ; 15 import java.util.Enumeration ; 16 import java.util.Vector ; 17 21 import javax.management.InstanceNotFoundException ; 24 25 33 public interface TimerMBean { 34 35 44 public void start(); 45 46 49 public void stop(); 50 51 86 91 public Integer addNotification(String type, String message, Object userData, 92 Date date, long period, long nbOccurences, boolean fixedRate) 93 throws java.lang.IllegalArgumentException ; 94 95 126 131 public Integer addNotification(String type, String message, Object userData, 132 Date date, long period, long nbOccurences) 133 throws java.lang.IllegalArgumentException ; 134 135 161 166 public Integer addNotification(String type, String message, Object userData, 167 Date date, long period) 168 throws java.lang.IllegalArgumentException ; 169 170 190 195 public Integer addNotification(String type, String message, Object userData, Date date) 196 throws java.lang.IllegalArgumentException ; 197 198 206 public void removeNotification(Integer id) throws InstanceNotFoundException ; 207 208 216 public void removeNotifications(String type) throws InstanceNotFoundException ; 217 218 222 public void removeAllNotifications(); 223 224 227 232 public int getNbNotifications(); 233 234 240 public Vector getAllNotificationIDs(); 241 242 252 public Vector getNotificationIDs(String type); 253 254 262 public String getNotificationType(Integer id); 263 264 272 public String getNotificationMessage(Integer id); 273 274 282 public Object getNotificationUserData(Integer id); 286 294 public Date getDate(Integer id); 295 296 304 public Long getPeriod(Integer id); 305 306 314 public Long getNbOccurences(Integer id); 315 316 325 public Boolean getFixedRate(Integer id); 326 327 334 public boolean getSendPastNotifications(); 335 336 343 public void setSendPastNotifications(boolean value); 344 345 352 public boolean isActive(); 353 354 359 public boolean isEmpty(); 360 } 361 | Popular Tags |