JavaTM 2 Platform
Standard Ed. 5.0

javax.management.timer
Ŭ·¡½º Timer

java.lang.Object 
  »óÀ§¸¦ È®Àå javax.management.NotificationBroadcasterSupport 
      »óÀ§¸¦ È®Àå javax.management.timer.Timer
¸ðµç ±¸ÇöµÈ ÀÎÅÍÆäÀ̽º:
MBeanRegistration, NotificationBroadcaster, NotificationEmitter, TimerMBean

public class Timer
extends NotificationBroadcasterSupport
implements TimerMBean, MBeanRegistration

ŸÀÌ¸Ó MBean ±¸ÇöÀ» Á¦°øÇÕ´Ï´Ù. ŸÀÌ¸Ó MBean´Â ÁöÁ¤µÈ ½Ã°£¿¡ ¾Ë¶÷À» ¹ß½ÅÇÏ´Â °ÍÀ¸·Î½á, ŸÀÌ¸Ó ÅëÁö¸¦ ¼ö½ÅÇÏ´Â ¸®½º³Ê·Î¼­ µî·ÏµÇ¾î ¸ðµç ¸®½º³Ê¸¦ ½ÃÀÛÇÕ´Ï´Ù.

ÀÌ Å¬·¡½º´Â ÀÏÀÚÀÇ ÁöÁ¤µÈ ŸÀÌ¸Ó ÅëÁöÀÇ ¸®½ºÆ®¸¦ °ü¸®ÇÕ´Ï´Ù. ´ÜÀÏÀÇ ¸Þ¼­µå·Î ÇÊ¿äÇÑ ¼öÀÇ ÅëÁö¸¦ Ãß°¡ ¶Ç´Â »èÁ¦ÇÒ ¼ö ÀÖ½À´Ï´Ù. ŸÀ̸ӺÎÅÍ ¹ßÇàµÈ ŸÀÌ¸Ó ÅëÁö´Â ³°¾ÆÁö¸é ÀÚµ¿ÀûÀ¸·Î ŸÀÌ¸Ó ÅëÁö ¸®½ºÆ®·ÎºÎÅÍ »èÁ¦µË´Ï´Ù.
Á¤±âÀûÀ¸·Î ¹Ýº¹ÇÏ´Â ÅëÁö·Î¼­ ŸÀÌ¸Ó ÅëÁö¸¦ Ãß°¡ÇÒ ¼ö ÀÖ½À´Ï´Ù.

ÁÖ:

  1. sendPastNotifications Ç÷¡±× »óÅ (¿Í)´Â °ü°è¾ø´Â °ÍÀ¸·ÎaddNotification ¸Þ¼­µå°¡ ºÒ·Á °¡±â ÀüÀÇ ¸ðµç ÅëÁö°¡ ¹«½ÃµË´Ï´Ù.
  2. ŸÀÌ¸Ó ÅëÁöÀÇ ¼Û½Å½Ã, ŸÀ̸Ӵ ¸ðµç ÅëÁöÇüÀÇ ÅëÁö ¼ø¼­ ¹øÈ£¸¦ °»½ÅÇÕ´Ï´Ù.
  3. ŸÀÌ¸Ó ¼­ºñ½º´Â Timer Ŭ·¡½º°¡ ·Îµå µÈ È£½ºÆ®ÀÇ ½Ã½ºÅÛ ½Ã°£¿¡ Á¸Çϰí ÀÖ½À´Ï´Ù. È£½ºÆ®ÀÇ ½Ã½ºÅÛ ½Ã°£ÀÌ Â÷À̰¡ ³ª¸é, ¸®½º³Ê°¡ ¿Ã¹Ù¸¥ ½Ã°¢¿¡ ÅëÁö¸¦ ³³µæÇÒ ¼ö ¾ø´Â °ÍÀÌ ÀÖ½À´Ï´Ù. ÀÌ·¯ÇÑ ¹®Á¦¸¦ ÇÇÇÏ·Á¸é, ŸÀ̹ÖÀÇ ÇÊ¿äÇÑ ¸ðµç È£½ºÆ® ¸Ó½ÅÀÇ ½Ã½ºÅÛ ½Ã°£À» µ¿±âÈ­ÇÕ´Ï´Ù.
  4. Á¤±â ÅëÁöÀÇ µðÆúÆ®ÀÇ µ¿ÀÛÀº,Timer ·Î ÁöÁ¤µÇ°í ÀÖµµ·Ï fixed-delay ½ÇÇà schemaÀÔ´Ï´Ù. fixed-rate ½ÇÇà schema¸¦ »ç¿ëÇÏ·Á¸é, overload µÈ addNotification(String, String, Object, Date, long, long, boolean) ¸Þ¼­µå¸¦ »ç¿ëÇÕ´Ï´Ù.
  5. ÅëÁö ¸®½º³Ê ÀüºÎ°¡ °°Àº thread·Î ½ÇÇàµÉ °¡´É¼ºÀÌ ÀÖ½À´Ï´Ù. ´Ù¸¥ ¸®½º³ÊÀÇ Ã³¸®¸¦ ¹æÇØÇϰųª fixed-delay ½ÇÇàÀÇ ±ÔÄ¢¼ºÀ» ¾îÁö·´È÷´Â °ÍÀÌ ¾ø°Ô, ÀÌ·¯ÇÑ ¸®½º³Ê´Â Àçºü¸£°Ô ½ÇÇàÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù. NotificationBroadcasterSupport ¸¦ ÂüÁ¶ÇϽʽÿÀ.

µµÀÔµÈ ¹öÁ¯:
1.5

ÇÊµå °³¿ä
static long ONE_DAY
          1 ÀÏÀÇ ¹Ð¸® ¼¼ÄÁµå¼ö.
static long ONE_HOUR
          1 ½Ã°£ÀÇ ¹Ð¸® ¼¼ÄÁµå¼ö.
static long ONE_MINUTE
          1 ºÐÀÇ ¹Ð¸® ¼¼ÄÁµå¼ö.
static long ONE_SECOND
          1 ÃÊÀÇ ¹Ð¸® ¼¼ÄÁµå¼ö.
static long ONE_WEEK
          1 ÁÖ°£ÀÇ ¹Ð¸® ¼¼ÄÁµå¼ö.
 
»ý¼ºÀÚ °³¿ä
Timer ()
          µðÆúÆ®ÀÇ »ý¼ºÀÚ ÀÔ´Ï´Ù.
 
¸Þ¼­µå °³¿ä
 Integer addNotification (String  type, String  message, Object  userData, Date  date)
          ÁöÁ¤µÈ type,message ¹× userData ·Î »õ·Î¿î ŸÀÌ¸Ó ÅëÁö¸¦ ÀÛ¼ºÇØ, À̰ÍÀ» ÁöÁ¤ÀÇ ÀÏÀÚ, °£°Ý null ¹× ¹ßÇà¼ö¿Í ÇÔ²² ÅëÁö ¸®½ºÆ®¿¡ »ðÀÔÇÕ´Ï´Ù.
 Integer addNotification (String  type, String  message, Object  userData, Date  date, long period)
          ÁöÁ¤µÈ type,message ¹× userData ·Î »õ·Î¿î ŸÀÌ¸Ó ÅëÁö¸¦ ÀÛ¼ºÇØ, À̰ÍÀ» ÁöÁ¤ÀÇ ÀÏÀÚ, °£°Ý ¹× ¹ßÇà¼ö null ¿Í ÇÔ²² ÅëÁö ¸®½ºÆ®¿¡ »ðÀÔÇÕ´Ï´Ù.
 Integer addNotification (String  type, String  message, Object  userData, Date  date, long period, long nbOccurences)
          ÁöÁ¤µÈ type,message ¹× userData ·Î »õ·Î¿î ŸÀÌ¸Ó ÅëÁö¸¦ ÀÛ¼ºÇØ, À̰ÍÀ» ÁöÁ¤ÀÇ ÀÏÀÚ, °£°Ý ¹× ¹ßÇà¼ö¿Í ÇÔ²² ÅëÁö ¸®½ºÆ®¿¡ »ðÀÔÇÕ´Ï´Ù.
 Integer addNotification (String  type, String  message, Object  userData, Date  date, long period, long nbOccurences, boolean fixedRate)
          ÁöÁ¤µÈ type,message ¹× userData ·Î »õ·Î¿î ŸÀÌ¸Ó ÅëÁö¸¦ ÀÛ¼ºÇØ, À̰ÍÀ» ÁöÁ¤ÀÇ ÀÏÀÚ, °£°Ý ¹× ¹ßÇà¼ö¿Í ÇÔ²² ÅëÁö ¸®½ºÆ®¿¡ »ðÀÔÇÕ´Ï´Ù.
 Vector getAllNotificationIDs ()
          ÅëÁö ¸®½ºÆ®¿¡ µî·ÏµÇ¾î ¸ðµç ŸÀÌ¸Ó ÅëÁö ½Äº°ÀÚ¸¦ ÃëµæÇÕ´Ï´Ù.
 Date getDate (Integer  id)
          Å¸ÀÌ¸Ó ÅëÁö¿¡ °ü·ÃÁöÀ» ¼ö ÀÖ¾ú´ø ÀÏÀÚÀÇ Ä«ÇǸ¦ ÃëµæÇÕ´Ï´Ù.
 Boolean getFixedRate (Integer  id)
          Á¤±â ÅëÁö¸¦ fixed-delay ·Î ½ÇÇàÇÒ±î fixed-rate ·Î ½ÇÇàÇÏ´ÂÁö¸¦ ³ªÅ¸³»´Â Ç÷¡±×ÀÇ Ä«ÇǸ¦ ÃëµæÇÕ´Ï´Ù.
 int getNbNotifications ()
          ÅëÁö ¸®½ºÆ®¿¡ µî·ÏµÇ¾î Àִ ŸÀÌ¸Ó ÅëÁöÀÇ ¼ö¸¦ ÃëµæÇÕ´Ï´Ù.
 Long getNbOccurences (Integer  id)
          Å¸ÀÌ¸Ó ÅëÁö¿¡ °ü·ÃÁöÀ» ¼ö ÀÖ¾ú´ø ³ª¸ÓÁöÀÇ ¹ßÇà¼öÀÇ Ä«ÇǸ¦ ÃëµæÇÕ´Ï´Ù.
 Vector getNotificationIDs (String  type)
          ÁöÁ¤µÈ ÇüÅ¿¡ ´ëÀÀÇÏ´Â ¸ðµç ŸÀÌ¸Ó ÅëÁö ½Äº°ÀÚ¸¦ ÃëµæÇÕ´Ï´Ù.
 MBeanNotificationInfo [] getNotificationInfo ()
          ÀÌ MBean °¡ ÅëÁö¸¦ ¼Û½ÅÇÒ ¶§¸¶´Ù, ±× ÅëÁöÀÇ Java Ŭ·¡½º¸í°ú ÅëÁöÇüÀ» ³ªÅ¸³»´Â ¹è¿­À» µ¹·ÁÁÝ´Ï´Ù.
 String getNotificationMessage (Integer  id)
          ÁöÁ¤µÈ ½Äº°ÀÚ¿¡ ´ëÀÀÇϴ ŸÀÌ¸Ó ÅëÁöÀÇ »ó¼¼ ¸Þ¼¼Áö¸¦ ÃëµæÇÕ´Ï´Ù.
 String getNotificationType (Integer  id)
          ÁöÁ¤µÈ ½Äº°ÀÚ¿¡ ´ëÀÀÇϴ ŸÀÌ¸Ó ÅëÁöÇüÀ» ÃëµæÇÕ´Ï´Ù.
 Object getNotificationUserData (Integer  id)
          ÁöÁ¤µÈ ½Äº°ÀÚ¿¡ ´ëÀÀÇϴ ŸÀÌ¸Ó ÅëÁöÀÇ À¯Àú µ¥ÀÌÅÍ ¿ÀºêÁ§Æ®¸¦ ÃëµæÇÕ´Ï´Ù.
 Long getPeriod (Integer  id)
          Å¸ÀÌ¸Ó ÅëÁö¿¡ °ü·ÃÁöÀ» ¼ö ÀÖ¾ú´ø °£°Ý (¹Ð¸® ¼¼ÄÁµå)ÀÇ Ä«ÇǸ¦ ÃëµæÇÕ´Ï´Ù.
 boolean getSendPastNotifications ()
          Å¸À̸Ӱ¡ °ú°ÅÀÇ ÅëÁö¸¦ ¼Û½ÅÇÒÁö ¾î¶³Áö¸¦ ÁöÁ¤ÇÏ´Â Ç÷¡±×¸¦ ÃëµæÇÕ´Ï´Ù.
 boolean isActive ()
          Å¸ÀÌ¸Ó MBean °¡ ¾×ƼºêÇѰ¡ ¾î¶²°¡¸¦ Å×½ºÆ®ÇÕ´Ï´Ù.
 boolean isEmpty ()
          Å¸ÀÌ¸Ó ÅëÁöÀÇ ¸®½ºÆ®°¡ ÇÏ´ÃÀΰ¡ ¾î¶²°¡¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.
 void postDeregister ()
          MBean ¼­¹ö·ÎºÎÅÍ µî·Ï ÇØÁ¦ÇÑ µÚ, ŸÀÌ¸Ó MBean °¡ ÇÊ¿äÇÑ ¿ÀÆÛ·¹À̼ÇÀ» ½ÇÇàÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù.
 void postRegister (Boolean  registrationDone)
          MBean ¼­¹ö¿¡ÀÇ µî·ÏÀÌ ¼º°ø ¶Ç´Â ½ÇÆÐÇÑ µÚ, ŸÀÌ¸Ó MBean °¡ ÇÊ¿äÇÑ ¿ÀÆÛ·¹À̼ÇÀ» ½ÇÇàÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù.
 void preDeregister ()
          MBean ¼­¹ö·ÎºÎÅÍ µî·Ï ÇØÁ¦Çϱâ Àü¿¡ ŸÀÌ¸Ó MBean °¡ ÇÊ¿äÇÑ ¿ÀÆÛ·¹À̼ÇÀ» ½ÇÇàÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù.
 ObjectName preRegister (MBeanServer  server, ObjectName  name)
          MBean ¼­¹ö¿¡ µî·ÏÇϱâ Àü¿¡ ŸÀÌ¸Ó MBean °¡ ÇÊ¿äÇÑ ¿ÀÆÛ·¹À̼ÇÀ» ½ÇÇàÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù.
 void removeAllNotifications ()
          ÅëÁö ¸®½ºÆ®·ÎºÎÅÍ ¸ðµç ŸÀÌ¸Ó ÅëÁö¸¦ »èÁ¦ÇØ, ŸÀÌ¸Ó ÅëÁö ½Äº°ÀÚ¸¦ °»½ÅÇϱâ À§ÇÑ Ä«¿îÅ͸¦ ¸®¼ÂÆ® ÇÕ´Ï´Ù.
 void removeNotification (Integer  id)
          ÁöÁ¤µÈ ½Äº°ÀÚ¿¡ ´ëÀÀÇϴ ŸÀÌ¸Ó ÅëÁö¸¦ ÅëÁö ¸®½ºÆ®·ÎºÎÅÍ »èÁ¦ÇÕ´Ï´Ù.
 void removeNotifications (String  type)
          ÁöÁ¤µÈ ÇüÅ¿¡ ´ëÀÀÇÏ´Â ¸ðµç ŸÀÌ¸Ó ÅëÁö¸¦ ÅëÁö ¸®½ºÆ®·ÎºÎÅÍ »èÁ¦ÇÕ´Ï´Ù.
 void setSendPastNotifications (boolean value)
          Å¸À̸Ӱ¡ °ú°ÅÀÇ ÅëÁö¸¦ ¼Û½ÅÇÒÁö ¾î¶³Áö¸¦ ÁöÁ¤ÇÏ´Â Ç÷¡±×¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 void start ()
          Å¸À̸Ӹ¦ ½ÃÀÛÇÕ´Ï´Ù.
 void stop ()
          Å¸À̸Ӹ¦ Á¤ÁöÇÕ´Ï´Ù.
 
Ŭ·¡½º javax.management. NotificationBroadcasterSupport ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
addNotificationListener, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

ÇʵåÀÇ »ó¼¼

ONE_SECOND

public static final long ONE_SECOND
1 ÃÊÀÇ ¹Ð¸® ¼¼ÄÁµå¼ö. addNotification ¸Þ¼­µå·Î »ç¿ëµÇ´Â Á¤¼ö

°ü·Ã Ç׸ñ:
Á¤¼ö ÇʵåÄ¡

ONE_MINUTE

public static final long ONE_MINUTE
1 ºÐÀÇ ¹Ð¸® ¼¼ÄÁµå¼ö. addNotification ¸Þ¼­µå·Î »ç¿ëµÇ´Â Á¤¼ö

°ü·Ã Ç׸ñ:
Á¤¼ö ÇʵåÄ¡

ONE_HOUR

public static final long ONE_HOUR
1 ½Ã°£ÀÇ ¹Ð¸® ¼¼ÄÁµå¼ö. addNotification ¸Þ¼­µå·Î »ç¿ëµÇ´Â Á¤¼ö

°ü·Ã Ç׸ñ:
Á¤¼ö ÇʵåÄ¡

ONE_DAY

public static final long ONE_DAY
1 ÀÏÀÇ ¹Ð¸® ¼¼ÄÁµå¼ö. addNotification ¸Þ¼­µå·Î »ç¿ëµÇ´Â Á¤¼ö

°ü·Ã Ç׸ñ:
Á¤¼ö ÇʵåÄ¡

ONE_WEEK

public static final long ONE_WEEK
1 ÁÖ°£ÀÇ ¹Ð¸® ¼¼ÄÁµå¼ö. addNotification ¸Þ¼­µå·Î »ç¿ëµÇ´Â Á¤¼ö

°ü·Ã Ç׸ñ:
Á¤¼ö ÇʵåÄ¡
»ý¼ºÀÚ »ó¼¼

Timer

public Timer()
µðÆúÆ®ÀÇ »ý¼ºÀÚ ÀÔ´Ï´Ù.

¸Þ¼­µåÀÇ »ó¼¼

preRegister

public ObjectName  preRegister(MBeanServer  server,
                              ObjectName  name)
                       throws Exception 
MBean ¼­¹ö¿¡ µî·ÏÇϱâ Àü¿¡ ŸÀÌ¸Ó MBean °¡ ÇÊ¿äÇÑ ¿ÀÆÛ·¹À̼ÇÀ» ½ÇÇàÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù.

ÀÌ ÄÁÅØ½ºÆ® ¿¡¼­´Â »ç¿ëÇÏÁö ¾Ê½À´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º MBeanRegistration ³»ÀÇ preRegister
ÆÄ¶ó¹ÌÅÍ:
server - MBean ¼­¹ö. ŸÀÌ¸Ó MBean´Â ¿©±â¿¡ µî·ÏµÇ´Â
name - ŸÀÌ¸Ó MBean ¿ÀºêÁ§Æ®¸í
¹Ýȯ°ª:
µî·ÏÀÌ ³¡³­ ŸÀÌ¸Ó MBean À̸§
¿¹¿Ü:
Exception -

postRegister

public void postRegister(Boolean  registrationDone)
MBean ¼­¹ö¿¡ÀÇ µî·ÏÀÌ ¼º°ø ¶Ç´Â ½ÇÆÐÇÑ µÚ, ŸÀÌ¸Ó MBean °¡ ÇÊ¿äÇÑ ¿ÀÆÛ·¹À̼ÇÀ» ½ÇÇàÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù.

ÀÌ ÄÁÅØ½ºÆ® ¿¡¼­´Â »ç¿ëÇÏÁö ¾Ê½À´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º MBeanRegistration ³»ÀÇ postRegister
ÆÄ¶ó¹ÌÅÍ:
registrationDone - MBean °¡ MBean ¼­¹ö¿¡ Á¤»óÀûÀ¸·Î µî·ÏµÇ¾ú´ÂÁö ¾î¶°Çß´ÂÁö¸¦ ³ªÅ¸³½´Ù. µî·Ï¿¡ ½ÇÆÐÇßÀ» °æ¿ìÀÇ °ªÀº false

preDeregister

public void preDeregister()
                   throws Exception 
MBean ¼­¹ö·ÎºÎÅÍ µî·Ï ÇØÁ¦Çϱâ Àü¿¡ ŸÀÌ¸Ó MBean °¡ ÇÊ¿äÇÑ ¿ÀÆÛ·¹À̼ÇÀ» ½ÇÇàÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù.

ŸÀ̸Ӹ¦ Á¤ÁöÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º MBeanRegistration ³»ÀÇ preDeregister
¿¹¿Ü:
Exception -

postDeregister

public void postDeregister()
MBean ¼­¹ö·ÎºÎÅÍ µî·Ï ÇØÁ¦ÇÑ µÚ, ŸÀÌ¸Ó MBean °¡ ÇÊ¿äÇÑ ¿ÀÆÛ·¹À̼ÇÀ» ½ÇÇàÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù.

ÀÌ ÄÁÅØ½ºÆ® ¿¡¼­´Â »ç¿ëÇÏÁö ¾Ê½À´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º MBeanRegistration ³»ÀÇ postDeregister

getNotificationInfo

public MBeanNotificationInfo [] getNotificationInfo()
ÀÎÅÍÆäÀ̽º NotificationBroadcaster ±â¼ú:

ÀÌ MBean °¡ ÅëÁö¸¦ ¼Û½ÅÇÒ ¶§¸¶´Ù, ±× ÅëÁöÀÇ Java Ŭ·¡½º¸í°ú ÅëÁöÇüÀ» ³ªÅ¸³»´Â ¹è¿­À» µ¹·ÁÁÝ´Ï´Ù.

MBean °¡, ÀÌ ¹è¿­¿¡ ±â¼úµÇ¾î ÀÖÁö ¾ÊÀº ÅëÁö¸¦ ¼Û½ÅÇÒ ¼ö ¾ø½À´Ï´Ù. ´Ù¸¸, ÀϺÎÀÇ MBean ¼­¹ö Ŭ¶óÀÌ¾ðÆ®´Â ÇöÀçÀÇ ±â´É¿¡ ÇØ ¿Ï¼ºÇÏ´Â ¹è¿­¿¡ Á¸Çϰí ÀÖ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º NotificationBroadcaster ³»ÀÇ getNotificationInfo
¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º NotificationBroadcasterSupport ³»ÀÇ getNotificationInfo
¹Ýȯ°ª:
ÅëÁöÀÇ ¹è¿­

start

public void start()
ŸÀ̸Ӹ¦ ½ÃÀÛÇÕ´Ï´Ù.

ÅëÁö ¸®½ºÆ®³»¿¡ ±× ½Ã°£º¸´Ù Àü¿¡ ¹ßÇàµÈ ŸÀÌ¸Ó ÅëÁö°¡ 1 °³ ÀÌ»ó ÀÖ´Â °æ¿ì, ÀÌ ÅëÁö´Â sendPastNotifications Ç÷¡±×¿¡ µû¶ó ¼Û½ÅµÇ¾î °£°Ý°ú ³ª¸ÓÁöÀÇ ¹ßÇà¼ö¿¡ µû¶ó °»½ÅµË´Ï´Ù. ŸÀÌ¸Ó ÅëÁöÀÇ ÀÏÀÚ°¡ ÇöÀçÀÇ ÀÏÀÚº¸´Ù ÀüÀÇ °æ¿ì, ÀÌ ÅëÁö´Â ÅëÁö ¸®½ºÆ®·ÎºÎÅÍ »èÁ¦µË´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TimerMBean ³»ÀÇ start

stop

public void stop()
ŸÀ̸Ӹ¦ Á¤ÁöÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TimerMBean ³»ÀÇ stop

addNotification

public Integer  addNotification(String  type,
                               String  message,
                               Object  userData,
                               Date  date,
                               long period,
                               long nbOccurences,
                               boolean fixedRate)
                        throws IllegalArgumentException 
ÁöÁ¤µÈ type,message ¹× userData ·Î »õ·Î¿î ŸÀÌ¸Ó ÅëÁö¸¦ ÀÛ¼ºÇØ, À̰ÍÀ» ÁöÁ¤ÀÇ ÀÏÀÚ, °£°Ý ¹× ¹ßÇà¼ö¿Í ÇÔ²² ÅëÁö ¸®½ºÆ®¿¡ »ðÀÔÇÕ´Ï´Ù.

»ðÀԵǴ ŸÀÌ¸Ó ÅëÁöÀÇ ÀÏÀÚ°¡ ÇöÀçÀÇ ÀÏÀÚº¸´Ù ÀüÀÇ °æ¿ì, ÀÌ ¸Þ¼­µå´Â ÁöÁ¤µÈ ÀÏÀÚ°¡ ÇöÀçÀÇ ÀÏÀÚÀÌ´Ù°í ÇÏ¿© µ¿ÀÛÇÕ´Ï´Ù.
1 ȸ¸¸ÀÇ ÅëÁö´Â Áï½Ã Àü´ÞµË´Ï´Ù.
Á¤±âÀûÀÎ ÅëÁöÀÇ °æ¿ì, ÃÖÃÊÀÇ ÅëÁö´Â Áï½Ã Àü´ÞµÈ ÀÌÈÄÀÇ ÅëÁö´Â °£°Ý ÆÄ¶ó¹ÌÅÍ·Î ÁöÁ¤µÈ °£°ÝÀ¸·Î Àü´ÞµË´Ï´Ù.

ŸÀÌ¸Ó ÅëÁö°¡ ÅëÁö ¸®½ºÆ®¿¡ Ãß°¡µÈ µÚ, °ü·ÃÁöÀ» ¼ö ÀÖ¾ú´ø ÀÏÀÚ, °£°Ý ¹× ¹ßÇà¼ö¸¦ °»½ÅÇÒ ¼ö ¾ø½À´Ï´Ù.

Á¤±â ÅëÁöÀÇ °æ¿ì,Timer ·Î ÁöÁ¤µÇ°í ÀÖµµ·Ï,fixedRate ÆÄ¶ó¹ÌÅÍÀÇ °ªÀÌ ½ÇÇà schemaÀÇ ÁöÁ¤¿¡ »ç¿ëµË´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TimerMBean ³»ÀÇ addNotification
ÆÄ¶ó¹ÌÅÍ:
type - ŸÀÌ¸Ó ÅëÁöÇü
message - ŸÀÌ¸Ó ÅëÁöÀÇ »ó¼¼ ¸Þ¼¼Áö
userData - ŸÀÌ¸Ó ÅëÁöÀÇ À¯Àú µ¥ÀÌÅÍ ¿ÀºêÁ§Æ®
date - ÅëÁö°¡ ¹ßÇàµÇ´Â ÀÏÀÚ
period - ŸÀÌ¸Ó ÅëÁöÀÇ °£°Ý (¹Ð¸® ¼¼ÄÁµå)
nbOccurences - ¹ßÇàµÇ´Â ŸÀÌ¸Ó ÅëÁöÀÇ ÇÕ°è¼ö
fixedRate - true À̸ç, Á¤±â ÅëÁöÀÎ °æ¿ì,fixed-rate ½ÇÇà schema·Î ½ºÄÉÁÙ µÈ´Ù. false À̸ç, Á¤±â ÅëÁöÀÎ °æ¿ì,fixed-delay ½ÇÇà schema·Î ½ºÄÉÁÙ µÈ´Ù. Á¤±â ÅëÁö°¡ ¾Æ´Ñ °æ¿ì´Â ¹«½ÃµÈ´Ù
¹Ýȯ°ª:
»õ·Ó°Ô ÀÛ¼ºµÈ ŸÀÌ¸Ó ÅëÁöÀÇ ½Äº°ÀÚ
¿¹¿Ü:
IllegalArgumentException - °£°Ý ¶Ç´Â ¹ßÇà¼ö°¡ ºÎÀÇ °ªÀÇ °æ¿ì
°ü·Ã Ç׸ñ:
addNotification(String, String, Object, Date, long, long)

addNotification

public Integer  addNotification(String  type,
                               String  message,
                               Object  userData,
                               Date  date,
                               long period,
                               long nbOccurences)
                        throws IllegalArgumentException 
ÁöÁ¤µÈ type,message ¹× userData ·Î »õ·Î¿î ŸÀÌ¸Ó ÅëÁö¸¦ ÀÛ¼ºÇØ, À̰ÍÀ» ÁöÁ¤ÀÇ ÀÏÀÚ, °£°Ý ¹× ¹ßÇà¼ö¿Í ÇÔ²² ÅëÁö ¸®½ºÆ®¿¡ »ðÀÔÇÕ´Ï´Ù.

»ðÀԵǴ ŸÀÌ¸Ó ÅëÁöÀÇ ÀÏÀÚ°¡ ÇöÀçÀÇ ÀÏÀÚº¸´Ù ÀüÀÇ °æ¿ì, ÀÌ ¸Þ¼­µå´Â ÁöÁ¤µÈ ÀÏÀÚ°¡ ÇöÀçÀÇ ÀÏÀÚÀÌ´Ù°í ÇÏ¿© µ¿ÀÛÇÕ´Ï´Ù.
1 ȸ¸¸ÀÇ ÅëÁö´Â Áï½Ã Àü´ÞµË´Ï´Ù.
Á¤±âÀûÀÎ ÅëÁöÀÇ °æ¿ì, ÃÖÃÊÀÇ ÅëÁö´Â Áï½Ã Àü´ÞµÈ ÀÌÈÄÀÇ ÅëÁö´Â °£°Ý ÆÄ¶ó¹ÌÅÍ·Î ÁöÁ¤µÈ °£°ÝÀ¸·Î Àü´ÞµË´Ï´Ù.

ŸÀÌ¸Ó ÅëÁö°¡ ÅëÁö ¸®½ºÆ®¿¡ Ãß°¡µÈ µÚ, °ü·ÃÁöÀ» ¼ö ÀÖ¾ú´ø ÀÏÀÚ, °£°Ý ¹× ¹ßÇà¼ö¸¦ °»½ÅÇÒ ¼ö ¾ø½À´Ï´Ù.

Á¤±â ÅëÁöÀÇ °æ¿ì,Timer ·Î ÁöÁ¤µÇ°í ÀÖµµ·Ï fixed-delay ½ÇÇà schema¸¦ »ç¿ëÇÕ´Ï´Ù. fixed-rate ½ÇÇà schema¸¦ »ç¿ëÇÏ·Á¸é, ´ë½Å¿¡ addNotification(String, String, Object, Date, long, long, boolean) ¸¦ »ç¿ëÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TimerMBean ³»ÀÇ addNotification
ÆÄ¶ó¹ÌÅÍ:
type - ŸÀÌ¸Ó ÅëÁöÇü
message - ŸÀÌ¸Ó ÅëÁöÀÇ »ó¼¼ ¸Þ¼¼Áö
userData - ŸÀÌ¸Ó ÅëÁöÀÇ À¯Àú µ¥ÀÌÅÍ ¿ÀºêÁ§Æ®
date - ÅëÁö°¡ ¹ßÇàµÇ´Â ÀÏÀÚ
period - ŸÀÌ¸Ó ÅëÁöÀÇ °£°Ý (¹Ð¸® ¼¼ÄÁµå)
nbOccurences - ¹ßÇàµÇ´Â ŸÀÌ¸Ó ÅëÁöÀÇ ÇÕ°è¼ö
¹Ýȯ°ª:
»õ·Ó°Ô ÀÛ¼ºµÈ ŸÀÌ¸Ó ÅëÁöÀÇ ½Äº°ÀÚ
¿¹¿Ü:
IllegalArgumentException - °£°Ý ¶Ç´Â ¹ßÇà¼ö°¡ ºÎÀÇ °ªÀÇ °æ¿ì
°ü·Ã Ç׸ñ:
addNotification(String, String, Object, Date, long, long, boolean)

addNotification

public Integer  addNotification(String  type,
                               String  message,
                               Object  userData,
                               Date  date,
                               long period)
                        throws IllegalArgumentException 
ÁöÁ¤µÈ type,message ¹× userData ·Î »õ·Î¿î ŸÀÌ¸Ó ÅëÁö¸¦ ÀÛ¼ºÇØ, À̰ÍÀ» ÁöÁ¤ÀÇ ÀÏÀÚ, °£°Ý ¹× ¹ßÇà¼ö null ¿Í ÇÔ²² ÅëÁö ¸®½ºÆ®¿¡ »ðÀÔÇÕ´Ï´Ù.

ŸÀÌ¸Ó ÅëÁö´Â Timer ·Î ÁöÁ¤µÇ°í ÀÖµµ·Ï,fixed-delay ½ÇÇà schema¸¦ »ç¿ëÇϴ ŸÀÌ¸Ó °£°ÝÀ¸·Î ¿¬¼ÓÀûÀ¸·Î ¹Ýº¹ÇØÁý´Ï´Ù. fixed-rate ½ÇÇà schema¸¦ »ç¿ëÇÏ·Á¸é, ´ë½Å¿¡ addNotification(String, String, Object, Date, long, long, boolean) ¸¦ »ç¿ëÇÕ´Ï´Ù.

»ðÀԵǴ ŸÀÌ¸Ó ÅëÁöÀÇ ÀÏÀÚ°¡ ÇöÀçÀÇ ÀÏÀÚº¸´Ù ÀüÀÇ °æ¿ì, ÀÌ ¸Þ¼­µå´Â ÁöÁ¤µÈ ÀÏÀÚ°¡ ÇöÀçÀÇ ÀÏÀÚÀÌ´Ù°í ÇÏ¿© µ¿ÀÛÇÕ´Ï´Ù. ÃÖÃÊÀÇ ÅëÁö´Â Áï½Ã Àü´ÞµÈ ÀÌÈÄÀÇ ÅëÁö´Â °£°Ý ÆÄ¶ó¹ÌÅÍ·Î ÁöÁ¤µÈ °£°ÝÀ¸·Î Àü´ÞµË´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TimerMBean ³»ÀÇ addNotification
ÆÄ¶ó¹ÌÅÍ:
type - ŸÀÌ¸Ó ÅëÁöÇü
message - ŸÀÌ¸Ó ÅëÁöÀÇ »ó¼¼ ¸Þ¼¼Áö
userData - ŸÀÌ¸Ó ÅëÁöÀÇ À¯Àú µ¥ÀÌÅÍ ¿ÀºêÁ§Æ®
date - ÅëÁö°¡ ¹ßÇàµÇ´Â ÀÏÀÚ
period - ŸÀÌ¸Ó ÅëÁöÀÇ °£°Ý (¹Ð¸® ¼¼ÄÁµå)
¹Ýȯ°ª:
»õ·Ó°Ô ÀÛ¼ºµÈ ŸÀÌ¸Ó ÅëÁöÀÇ ½Äº°ÀÚ
¿¹¿Ü:
IllegalArgumentException - ÀÏÀÚ°¡ ºÎÀÇ °ªÀΰ¡, ÅëÁöÀÇ ÀÏÀÚ°¡ ÇöÀçÀÇ ÀÏÀÚº¸´Ù Àü

addNotification

public Integer  addNotification(String  type,
                               String  message,
                               Object  userData,
                               Date  date)
                        throws IllegalArgumentException 
ÁöÁ¤µÈ type,message ¹× userData ·Î »õ·Î¿î ŸÀÌ¸Ó ÅëÁö¸¦ ÀÛ¼ºÇØ, À̰ÍÀ» ÁöÁ¤ÀÇ ÀÏÀÚ, °£°Ý null ¹× ¹ßÇà¼ö¿Í ÇÔ²² ÅëÁö ¸®½ºÆ®¿¡ »ðÀÔÇÕ´Ï´Ù.

ŸÀÌ¸Ó ÅëÁö´Â ÁöÁ¤µÈ ÀÏÀÚ¿¡ Á¤¸®ÇØ Ã³¸®µË´Ï´Ù.

»ðÀԵǴ ŸÀÌ¸Ó ÅëÁöÀÇ ÀÏÀÚ°¡ ÇöÀçÀÇ ÀÏÀÚº¸´Ù ÀüÀÇ °æ¿ì, ÀÌ ¸Þ¼­µå´Â ÁöÁ¤µÈ ÀÏÀÚ°¡ ÇöÀçÀÇ ÀÏÀÚÀÌ´Ù°í ÇÏ¿© µ¿ÀÛÇÕ´Ï´Ù. ÅëÁö´Â Áï½Ã Àü´ÞµË´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TimerMBean ³»ÀÇ addNotification
ÆÄ¶ó¹ÌÅÍ:
type - ŸÀÌ¸Ó ÅëÁöÇü
message - ŸÀÌ¸Ó ÅëÁöÀÇ »ó¼¼ ¸Þ¼¼Áö
userData - ŸÀÌ¸Ó ÅëÁöÀÇ À¯Àú µ¥ÀÌÅÍ ¿ÀºêÁ§Æ®
date - ÅëÁö°¡ ¹ßÇàµÇ´Â ÀÏÀÚ
¹Ýȯ°ª:
»õ·Ó°Ô ÀÛ¼ºµÈ ŸÀÌ¸Ó ÅëÁöÀÇ ½Äº°ÀÚ
¿¹¿Ü:
IllegalArgumentException - ÅëÁöÀÇ ÀÏÀÚ°¡ ÇöÀçÀÇ ÀÏÀÚº¸´Ù Àü

removeNotification

public void removeNotification(Integer  id)
                        throws InstanceNotFoundException 
ÁöÁ¤µÈ ½Äº°ÀÚ¿¡ ´ëÀÀÇϴ ŸÀÌ¸Ó ÅëÁö¸¦ ÅëÁö ¸®½ºÆ®·ÎºÎÅÍ »èÁ¦ÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TimerMBean ³»ÀÇ removeNotification
ÆÄ¶ó¹ÌÅÍ:
id - ŸÀÌ¸Ó ÅëÁö ½Äº°ÀÚ
¿¹¿Ü:
InstanceNotFoundException - ÀÌ Å¸ÀÌ¸Ó MBean ÅëÁö ¸®½ºÆ®³»¿¡ ÁöÁ¤µÈ ½Äº°ÀÚ¿¡ ´ëÀÀÇϴ ŸÀÌ¸Ó ÅëÁö°¡ Á¸ÀçÇÏÁö ¾Ê´Â´Ù

removeNotifications

public void removeNotifications(String  type)
                         throws InstanceNotFoundException 
ÁöÁ¤µÈ ÇüÅ¿¡ ´ëÀÀÇÏ´Â ¸ðµç ŸÀÌ¸Ó ÅëÁö¸¦ ÅëÁö ¸®½ºÆ®·ÎºÎÅÍ »èÁ¦ÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TimerMBean ³»ÀÇ removeNotifications
ÆÄ¶ó¹ÌÅÍ:
type - ŸÀÌ¸Ó ÅëÁöÇü
¿¹¿Ü:
InstanceNotFoundException - ÀÌ Å¸ÀÌ¸Ó MBean ÅëÁö ¸®½ºÆ®³»¿¡ ÁöÁ¤µÈ ÇüÅ¿¡ ´ëÀÀÇϴ ŸÀÌ¸Ó ÅëÁö°¡ Á¸ÀçÇÏÁö ¾Ê´Â´Ù

removeAllNotifications

public void removeAllNotifications()
ÅëÁö ¸®½ºÆ®·ÎºÎÅÍ ¸ðµç ŸÀÌ¸Ó ÅëÁö¸¦ »èÁ¦ÇØ, ŸÀÌ¸Ó ÅëÁö ½Äº°ÀÚ¸¦ °»½ÅÇϱâ À§ÇÑ Ä«¿îÅ͸¦ ¸®¼ÂÆ® ÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TimerMBean ³»ÀÇ removeAllNotifications

getNbNotifications

public int getNbNotifications()
ÅëÁö ¸®½ºÆ®¿¡ µî·ÏµÇ¾î Àִ ŸÀÌ¸Ó ÅëÁöÀÇ ¼ö¸¦ ÃëµæÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TimerMBean ³»ÀÇ getNbNotifications
¹Ýȯ°ª:
ŸÀÌ¸Ó ÅëÁöÀÇ ¼ö

getAllNotificationIDs

public Vector  getAllNotificationIDs()
ÅëÁö ¸®½ºÆ®¿¡ µî·ÏµÇ¾î ¸ðµç ŸÀÌ¸Ó ÅëÁö ½Äº°ÀÚ¸¦ ÃëµæÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TimerMBean ³»ÀÇ getAllNotificationIDs
¹Ýȯ°ª:
¸ðµç ŸÀÌ¸Ó ÅëÁö ½Äº°ÀÚ¸¦ Æ÷ÇÔÇÑ Integer ¿ÀºêÁ§Æ® ¸»Çϰí ÄíÅç.
ÀÌ Å¸ÀÌ¸Ó MBean ¿¡ ŸÀÌ¸Ó ÅëÁö°¡ µî·ÏµÇÁö ¾ÊÀº °æ¿ì´Â ÇÏ´Ã

getNotificationIDs

public Vector  getNotificationIDs(String  type)
ÁöÁ¤µÈ ÇüÅ¿¡ ´ëÀÀÇÏ´Â ¸ðµç ŸÀÌ¸Ó ÅëÁö ½Äº°ÀÚ¸¦ ÃëµæÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TimerMBean ³»ÀÇ getNotificationIDs
ÆÄ¶ó¹ÌÅÍ:
type - ŸÀÌ¸Ó ÅëÁöÇü
¹Ýȯ°ª:
ÁöÁ¤µÈ type ¸ðµç ŸÀÌ¸Ó ÅëÁö ½Äº°ÀÚ¸¦ Æ÷ÇÔÇÑ Integer ¿ÀºêÁ§Æ® ¸»Çϰí ÄíÅç.
ÀÌ Å¸ÀÌ¸Ó MBean ·Î ÁöÁ¤µÈ type ŸÀÌ¸Ó ÅëÁö°¡ µî·ÏµÇÁö ¾ÊÀº °æ¿ì´Â ÇÏ´Ã

getNotificationType

public String  getNotificationType(Integer  id)
ÁöÁ¤µÈ ½Äº°ÀÚ¿¡ ´ëÀÀÇϴ ŸÀÌ¸Ó ÅëÁöÇüÀ» ÃëµæÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TimerMBean ³»ÀÇ getNotificationType
ÆÄ¶ó¹ÌÅÍ:
id - ŸÀÌ¸Ó ÅëÁö ½Äº°ÀÚ
¹Ýȯ°ª:
ŸÀÌ¸Ó ÅëÁöÇü. ½Äº°ÀÚ°¡ ÀÌ Å¸ÀÌ¸Ó MBean ¿¡ µî·ÏµÈ ŸÀÌ¸Ó ÅëÁö¿¡ ´ëÀÀÇϰí ÀÖÁö ¾Ê´Â °æ¿ì´Â null

getNotificationMessage

public String  getNotificationMessage(Integer  id)
ÁöÁ¤µÈ ½Äº°ÀÚ¿¡ ´ëÀÀÇϴ ŸÀÌ¸Ó ÅëÁöÀÇ »ó¼¼ ¸Þ¼¼Áö¸¦ ÃëµæÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TimerMBean ³»ÀÇ getNotificationMessage
ÆÄ¶ó¹ÌÅÍ:
id - ŸÀÌ¸Ó ÅëÁö ½Äº°ÀÚ
¹Ýȯ°ª:
ŸÀÌ¸Ó ÅëÁöÀÇ »ó¼¼ ¸Þ¼¼Áö. ½Äº°ÀÚ°¡ ÀÌ Å¸ÀÌ¸Ó MBean ¿¡ µî·ÏµÈ ŸÀÌ¸Ó ÅëÁö¿¡ ´ëÀÀÇϰí ÀÖÁö ¾Ê´Â °æ¿ì´Â null

getNotificationUserData

public Object  getNotificationUserData(Integer  id)
ÁöÁ¤µÈ ½Äº°ÀÚ¿¡ ´ëÀÀÇϴ ŸÀÌ¸Ó ÅëÁöÀÇ À¯Àú µ¥ÀÌÅÍ ¿ÀºêÁ§Æ®¸¦ ÃëµæÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TimerMBean ³»ÀÇ getNotificationUserData
ÆÄ¶ó¹ÌÅÍ:
id - ŸÀÌ¸Ó ÅëÁö ½Äº°ÀÚ
¹Ýȯ°ª:
ŸÀÌ¸Ó ÅëÁöÀÇ À¯Àú µ¥ÀÌÅÍ ¿ÀºêÁ§Æ®. ½Äº°ÀÚ°¡ ÀÌ Å¸ÀÌ¸Ó MBean ¿¡ µî·ÏµÈ ŸÀÌ¸Ó ÅëÁö¿¡ ´ëÀÀÇϰí ÀÖÁö ¾Ê´Â °æ¿ì´Â null

getDate

public Date  getDate(Integer  id)
ŸÀÌ¸Ó ÅëÁö¿¡ °ü·ÃÁöÀ» ¼ö ÀÖ¾ú´ø ÀÏÀÚÀÇ Ä«ÇǸ¦ ÃëµæÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TimerMBean ³»ÀÇ getDate
ÆÄ¶ó¹ÌÅÍ:
id - ŸÀÌ¸Ó ÅëÁö ½Äº°ÀÚ
¹Ýȯ°ª:
ÀÏÀÚÀÇ Ä«ÇÇ. ½Äº°ÀÚ°¡ ÀÌ Å¸ÀÌ¸Ó MBean ¿¡ µî·ÏµÈ ŸÀÌ¸Ó ÅëÁö¿¡ ´ëÀÀÇϰí ÀÖÁö ¾Ê´Â °æ¿ì´Â null

getPeriod

public Long  getPeriod(Integer  id)
ŸÀÌ¸Ó ÅëÁö¿¡ °ü·ÃÁöÀ» ¼ö ÀÖ¾ú´ø °£°Ý (¹Ð¸® ¼¼ÄÁµå)ÀÇ Ä«ÇǸ¦ ÃëµæÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TimerMBean ³»ÀÇ getPeriod
ÆÄ¶ó¹ÌÅÍ:
id - ŸÀÌ¸Ó ÅëÁö ½Äº°ÀÚ
¹Ýȯ°ª:
°£°ÝÀÇ Ä«ÇÇ. ½Äº°ÀÚ°¡ ÀÌ Å¸ÀÌ¸Ó MBean ¿¡ µî·ÏµÈ ŸÀÌ¸Ó ÅëÁö¿¡ ´ëÀÀÇϰí ÀÖÁö ¾Ê´Â °æ¿ì´Â null

getNbOccurences

public Long  getNbOccurences(Integer  id)
ŸÀÌ¸Ó ÅëÁö¿¡ °ü·ÃÁöÀ» ¼ö ÀÖ¾ú´ø ³ª¸ÓÁöÀÇ ¹ßÇà¼öÀÇ Ä«ÇǸ¦ ÃëµæÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TimerMBean ³»ÀÇ getNbOccurences
ÆÄ¶ó¹ÌÅÍ:
id - ŸÀÌ¸Ó ÅëÁö ½Äº°ÀÚ
¹Ýȯ°ª:
³ª¸ÓÁöÀÇ ¹ßÇà¼öÀÇ Ä«ÇÇ. ½Äº°ÀÚ°¡ ÀÌ Å¸ÀÌ¸Ó MBean ¿¡ µî·ÏµÈ ŸÀÌ¸Ó ÅëÁö¿¡ ´ëÀÀÇϰí ÀÖÁö ¾Ê´Â °æ¿ì´Â null

getFixedRate

public Boolean  getFixedRate(Integer  id)
Á¤±â ÅëÁö¸¦ fixed-delay ·Î ½ÇÇàÇÒ±î fixed-rate ·Î ½ÇÇàÇÏ´ÂÁö¸¦ ³ªÅ¸³»´Â Ç÷¡±×ÀÇ Ä«ÇǸ¦ ÃëµæÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TimerMBean ³»ÀÇ getFixedRate
ÆÄ¶ó¹ÌÅÍ:
id - ŸÀÌ¸Ó ÅëÁö ½Äº°ÀÚ
¹Ýȯ°ª:
Á¤±â ÅëÁö¸¦ fixed-delay ·Î ½ÇÇàÇÒ±î fixed-rate ·Î ½ÇÇàÇÏ´ÂÁö¸¦ ³ªÅ¸³»´Â Ç÷¡±×ÀÇ Ä«ÇÇ

getSendPastNotifications

public boolean getSendPastNotifications()
ŸÀ̸Ӱ¡ °ú°ÅÀÇ ÅëÁö¸¦ ¼Û½ÅÇÒÁö ¾î¶³Áö¸¦ ÁöÁ¤ÇÏ´Â Ç÷¡±×¸¦ ÃëµæÇÕ´Ï´Ù.
°ú°ÅÀÇ ÅëÁö¸¦ ¼Û½ÅÇÒÁö ¾î¶³Áö¸¦ ÁöÁ¤ÇÏ´Â Ç÷¡±×ÀÇ µðÆúƮġ´Â false ÀÔ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TimerMBean ³»ÀÇ getSendPastNotifications
¹Ýȯ°ª:
°ú°ÅÀÇ ÅëÁö¸¦ ¼Û½ÅÇÒÁö ¾î¶³Áö¸¦ ÁöÁ¤ÇÏ´Â Ç÷¡±×Ä¡
°ü·Ã Ç׸ñ:
setSendPastNotifications(boolean)

setSendPastNotifications

public void setSendPastNotifications(boolean value)
ŸÀ̸Ӱ¡ °ú°ÅÀÇ ÅëÁö¸¦ ¼Û½ÅÇÒÁö ¾î¶³Áö¸¦ ÁöÁ¤ÇÏ´Â Ç÷¡±×¸¦ ¼³Á¤ÇÕ´Ï´Ù.
°ú°ÅÀÇ ÅëÁö¸¦ ¼Û½ÅÇÒÁö ¾î¶³Áö¸¦ ÁöÁ¤ÇÏ´Â Ç÷¡±×ÀÇ µðÆúƮġ´Â false ÀÔ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TimerMBean ³»ÀÇ setSendPastNotifications
ÆÄ¶ó¹ÌÅÍ:
value - °ú°ÅÀÇ ÅëÁö¸¦ ¼Û½ÅÇÒÁö ¾î¶³Áö¸¦ ÁöÁ¤ÇÏ´Â Ç÷¡±×Ä¡
°ü·Ã Ç׸ñ:
getSendPastNotifications()

isActive

public boolean isActive()
ŸÀÌ¸Ó MBean °¡ ¾×ƼºêÇѰ¡ ¾î¶²°¡¸¦ Å×½ºÆ®ÇÕ´Ï´Ù. ŸÀÌ¸Ó MBean´Â start ¸Þ¼­µå°¡ ºÒ·Á °¡¸é ¾×ƼºêÇÏ°Ô µÇ¾î,stop ¸Þ¼­µå°¡ ºÒ·Á °¡¸é ºñ¾×ƼºêÇÏ°Ô µË´Ï´Ù.
¾×Ƽºê¿Í ºñ¾×ƼºêÀÇ º¯È¯ Ç÷¡±×ÀÇ µðÆúƮġ´Â false ÀÔ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TimerMBean ³»ÀÇ isActive
¹Ýȯ°ª:
ŸÀÌ¸Ó MBean °¡ ¾×ƼºêÇÑ °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false

isEmpty

public boolean isEmpty()
ŸÀÌ¸Ó ÅëÁöÀÇ ¸®½ºÆ®°¡ ÇÏ´ÃÀΰ¡ ¾î¶²°¡¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º TimerMBean ³»ÀÇ isEmpty
¹Ýȯ°ª:
ŸÀÌ¸Ó ÅëÁöÀÇ ¸®½ºÆ®°¡ ÇÏ´ÃÀÇ °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false

JavaTM 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.