mx4j/src/core/javax/management/timer Timer.java,1.16,1.17 TimerAlarmClock.java,1.1,1.2 TimerAlarmClockNotification.java,1.2,1.3 TimerMBean.java,1.4,1.5 TimerNotification.java,1.8,1.9
Simone Bordet <[email protected]> Sat, 04 Sep 2004 15:44:08 +0000
| Newsgroups | gmane.comp.java.mx4j.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mx4j/mx4j/src/core/javax/management/timer In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13665/src/core/javax/management/timer Modified Files: Timer.java TimerAlarmClock.java TimerAlarmClockNotification.java TimerMBean.java TimerNotification.java Log Message: Updated copyright notice to be: Copyright (C) The MX4J Contributors Index: TimerAlarmClockNotification.java =================================================================== RCS file: /cvsroot/mx4j/mx4j/src/core/javax/management/timer/TimerAlarmClockNotification.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TimerAlarmClockNotification.java 16 Jan 2003 14:16:56 -0000 1.2 --- TimerAlarmClockNotification.java 4 Sep 2004 15:44:06 -0000 1.3 *************** *** 1,4 **** /* ! * Copyright (C) MX4J. * All rights reserved. * --- 1,4 ---- /* ! * Copyright (C) The MX4J Contributors. * All rights reserved. * *************** *** 13,21 **** * This is a JMXRI class that creeped into the public JMX API by mistake. * MX4J does not use it. - * @deprecated * * @author <a href="mailto:[email protected]">Mark McBride</a> * @author <a href="mailto:[email protected]">Simone Bordet</a> * @version $Revision$ */ public class TimerAlarmClockNotification extends javax.management.Notification --- 13,21 ---- * This is a JMXRI class that creeped into the public JMX API by mistake. * MX4J does not use it. * * @author <a href="mailto:[email protected]">Mark McBride</a> * @author <a href="mailto:[email protected]">Simone Bordet</a> * @version $Revision$ + * @deprecated */ public class TimerAlarmClockNotification extends javax.management.Notification *************** *** 25,28 **** --- 25,29 ---- /** * Do not use + * * @deprecated */ Index: TimerNotification.java =================================================================== RCS file: /cvsroot/mx4j/mx4j/src/core/javax/management/timer/TimerNotification.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** TimerNotification.java 16 Jan 2003 15:59:33 -0000 1.8 --- TimerNotification.java 4 Sep 2004 15:44:06 -0000 1.9 *************** *** 1,4 **** /* ! * Copyright (C) MX4J. * All rights reserved. * --- 1,4 ---- /* ! * Copyright (C) The MX4J Contributors. * All rights reserved. * *************** *** 19,44 **** public class TimerNotification extends Notification { ! private static final long serialVersionUID = 1798492029603825750L; ! private Integer notificationID; ! public TimerNotification(String type, Object source, long sequenceNumber, long timeStamp, String message, Integer id) ! { ! super(type, source, sequenceNumber, timeStamp, message); ! this.notificationID = id; ! } ! public Integer getNotificationID() ! { ! return notificationID; ! } ! public String toString() ! { ! StringBuffer b = new StringBuffer("["); ! b.append(super.toString()); ! b.append(", notificationID=").append(notificationID); ! b.append("]"); ! return b.toString(); ! } } --- 19,44 ---- public class TimerNotification extends Notification { ! private static final long serialVersionUID = 1798492029603825750L; ! private Integer notificationID; ! public TimerNotification(String type, Object source, long sequenceNumber, long timeStamp, String message, Integer id) ! { ! super(type, source, sequenceNumber, timeStamp, message); ! this.notificationID = id; ! } ! public Integer getNotificationID() ! { ! return notificationID; ! } ! public String toString() ! { ! StringBuffer b = new StringBuffer("["); ! b.append(super.toString()); ! b.append(", notificationID=").append(notificationID); ! b.append("]"); ! return b.toString(); ! } } Index: TimerAlarmClock.java =================================================================== RCS file: /cvsroot/mx4j/mx4j/src/core/javax/management/timer/TimerAlarmClock.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TimerAlarmClock.java 16 Jan 2003 14:16:56 -0000 1.1 --- TimerAlarmClock.java 4 Sep 2004 15:44:06 -0000 1.2 *************** *** 1,4 **** /* ! * Copyright (C) MX4J. * All rights reserved. * --- 1,4 ---- /* ! * Copyright (C) The MX4J Contributors. * All rights reserved. * *************** *** 9,14 **** package javax.management.timer; - import java.util.TimerTask; import java.util.Date; /** --- 9,14 ---- package javax.management.timer; import java.util.Date; + import java.util.TimerTask; /** Index: Timer.java =================================================================== RCS file: /cvsroot/mx4j/mx4j/src/core/javax/management/timer/Timer.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** Timer.java 11 Mar 2004 09:59:27 -0000 1.16 --- Timer.java 4 Sep 2004 15:44:06 -0000 1.17 *************** *** 1,4 **** /* ! * Copyright (C) MX4J. * All rights reserved. * --- 1,4 ---- /* ! * Copyright (C) The MX4J Contributors. * All rights reserved. * Index: TimerMBean.java =================================================================== RCS file: /cvsroot/mx4j/mx4j/src/core/javax/management/timer/TimerMBean.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** TimerMBean.java 16 Jan 2003 15:59:33 -0000 1.4 --- TimerMBean.java 4 Sep 2004 15:44:06 -0000 1.5 *************** *** 1,4 **** /* ! * Copyright (C) MX4J. * All rights reserved. * --- 1,4 ---- /* ! * Copyright (C) The MX4J Contributors. * All rights reserved. * *************** *** 11,15 **** import java.util.Date; import java.util.Vector; - import javax.management.InstanceNotFoundException; --- 11,14 ---- *************** *** 41,51 **** * If the date is before the current date, and the notification is one-shot, it will be delivered immediately. * ! * @param type The type of the notification ! * @param message The message of the notification ! * @param userData The custom user data of the notification ! * @param date The date at which the notification should be delivered the first time ! * @param period The period of time between notifications delivers * @param occurences The number of occurrences the notification should be delivered ! * @param fixedRate True if the periodic notification should be sent at fixed rate, false if should be sent at fixed delay * @return The identifier for the notification * @throws IllegalArgumentException If some of the parameters has illegal value --- 40,50 ---- * If the date is before the current date, and the notification is one-shot, it will be delivered immediately. * ! * @param type The type of the notification ! * @param message The message of the notification ! * @param userData The custom user data of the notification ! * @param date The date at which the notification should be delivered the first time ! * @param period The period of time between notifications delivers * @param occurences The number of occurrences the notification should be delivered ! * @param fixedRate True if the periodic notification should be sent at fixed rate, false if should be sent at fixed delay * @return The identifier for the notification * @throws IllegalArgumentException If some of the parameters has illegal value *************** *** 60,63 **** --- 59,63 ---- /** * Returns the date for the notification with the given identifier + * * @param id The notification identifier */ *************** *** 66,69 **** --- 66,70 ---- /** * Returns whether the periodic notification with the given identifier is delivered at fixed rate or not + * * @param id The notification identifier */ *************** *** 77,80 **** --- 78,82 ---- /** * Returns the number of times the notification with the given identifier is delivered. + * * @param id The notification identifier */ *************** *** 83,86 **** --- 85,89 ---- /** * Returns the identifiers of the notifications with the given type + * * @param type The notification type */ *************** *** 89,92 **** --- 92,96 ---- /** * Returns the message of the notification with the given identifier + * * @param id The notification identifier */ *************** *** 95,98 **** --- 99,103 ---- /** * Returns the type of the notification with the given identifier + * * @param id The notification identifier */ *************** *** 101,104 **** --- 106,110 ---- /** * Returns the user data of the notification with the given identifier + * * @param id The notification identifier */ *************** *** 107,110 **** --- 113,117 ---- /** * Returns the period between the deliver of two notifications for the notification with the given identifier + * * @param id The notification identifier */ *************** *** 113,116 **** --- 120,124 ---- /** * Returns whether this Timer delivers notifications that occurred while it has been stopped + * * @see #setSendPastNotifications */ *************** *** 119,122 **** --- 127,131 ---- /** * Returns whether this Timer delivers notifications or not. + * * @see #start * @see #stop *************** *** 136,139 **** --- 145,149 ---- /** * Removes all notifications with the given type + * * @param type The type of the notifications to be removed * @throws InstanceNotFoundException If no notifications with the given type are present *************** *** 143,146 **** --- 153,157 ---- /** * Removes the notification with the given identifier + * * @param id The identifier of the notification to be removed * @throws InstanceNotFoundException If no notification with the given identifier is present *************** *** 150,153 **** --- 161,165 ---- /** * Sets whether this Timer delivers notifications that occurred while it has been stopped + * * @see #getSendPastNotifications */ *************** *** 159,162 **** --- 171,175 ---- * If {@link #getSendPastNotifications} returns true, this Timer sends notifications that were waiting * to be delivered, otherwise it updates the notification times to the next deliver. + * * @see #stop */ *************** *** 165,168 **** --- 178,182 ---- /** * Stops this Timer. <br> + * * @see #start */ ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click