|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjavax.management.NotificationBroadcasterSupport
javax.management.monitor.Monitor
public abstract class Monitor
¸ðµç ¸ð´ÏÅÍ MBean °øÅë ºÎºÐÀ» Á¤ÀÇÇÕ´Ï´Ù. ¸ð´ÏÅÍ MBean´Â °¨½Ã ´ë»óÀÇ MBean ¼¼Æ®¿¡ °øÅëÀÇ ¼Ó¼ºÀÇ °ªÀ» °¨½ÃÇÕ´Ï´Ù. °¨½Ã ´ë»óÀÇ ¼Ó¼ºÀº ÀÔµµ ÁÖ±â·Î¼ ÁöÁ¤µÈ °£°ÝÀ¸·Î °¨½ÃµË´Ï´Ù. °ÔÀÌÁöÄ¡ (ÆÄ»ý °ÔÀÌÁö)´Â °¨½Ã ´ë»óÀÇ ¼Ó¼ºÀÇ °ªÀ¸·ÎºÎÅÍ ÆÄ»ýÇÕ´Ï´Ù.
ÇÊµå °³¿ä | |
---|---|
protected int |
alreadyNotified
ÃßõÇÏÁö ¾Ê½À´Ï´Ù. alreadyNotifieds [0] À¸·Î µ¿µîÇÕ´Ï´Ù. |
protected int[] |
alreadyNotifieds
ÀÌ¹Ì ÅëÁöµÈ ¼±ÅÃÀÌ ³¡³ ¸ð´ÏÅÍ ¿¡·¯ÀÔ´Ï´Ù. |
protected static int |
capacityIncrement
¸ð´ÏÅÍ ¹è¿ÀÇ »çÀÌÁî°¡ ¿ë·®º¸´Ù Ä¿Á³À» ¶§ ÀÚµ¿ÀûÀ¸·Î Áõ°¡ÇÏ´Â ¿ë·®ÀÔ´Ï´Ù. |
protected String |
dbgTag
ÃßõÇÏÁö ¾Ê½À´Ï´Ù. ´ëü´Â ¾ø½À´Ï´Ù. |
protected int |
elementCount
°¨½Ã ´ë»óÀÇ °´Ã¼ÀÇ º¤Åͳ»ÀÇ À¯È¿ÇÑ ÄÄÆÛ³ÍÆ®ÀÇ ¼öÀÔ´Ï´Ù. |
protected static int |
OBSERVED_ATTRIBUTE_ERROR_NOTIFIED
°¨½Ã ´ë»óÀÇ ¼Ó¼ºÀÇ º¯°æ ÈÄ, ÅëÁö°¡ ¹ßÇàµÈ °ÍÀ» ³ªÅ¸³»´Â Ç÷¡±×ÀÔ´Ï´Ù. |
protected static int |
OBSERVED_ATTRIBUTE_TYPE_ERROR_NOTIFIED
°¨½Ã ´ë»óÀÇ °´Ã¼ ¶Ç´Â ¼Ó¼ºÀÇ º¯°æ ÈÄ, ÅëÁö°¡ ¹ßÇàµÈ °ÍÀ» ³ªÅ¸³»´Â Ç÷¡±×ÀÔ´Ï´Ù. |
protected static int |
OBSERVED_OBJECT_ERROR_NOTIFIED
°¨½Ã ´ë»óÀÇ °´Ã¼ÀÇ º¯°æ ÈÄ, ÅëÁö°¡ ¹ßÇàµÈ °ÍÀ» ³ªÅ¸³»´Â Ç÷¡±×ÀÔ´Ï´Ù. |
protected static int |
RESET_FLAGS_ALREADY_NOTIFIED
ÀÌ Ç÷¡±×´Â ¸ð´ÏÅÍ ¼Ó¼º alreadyNotifieds ¸¦
¸®¼Â Çϱâ À§Çؼ »ç¿ëµË´Ï´Ù. |
protected static int |
RUNTIME_ERROR_NOTIFIED
°¨½Ã ´ë»óÀÇ °´Ã¼ ¶Ç´Â ¼Ó¼ºÀÇ º¯°æ ÈÄ, ÅëÁö°¡ ¹ßÇàµÈ °ÍÀ» ³ªÅ¸³»´Â Ç÷¡±×ÀÔ´Ï´Ù. |
protected MBeanServer |
server
MBean ¼¹ö»óÀÇ ÂüÁ¶ÀÔ´Ï´Ù. |
»ý¼ºÀÚ °³¿ä | |
---|---|
Monitor ()
|
¸Þ¼µå °³¿ä | |
---|---|
void |
addObservedObject (ObjectName object)
°¨½Ã ´ë»óÀÇ MBean ¼¼Æ®·Î ÁöÁ¤µÈ °´Ã¼°¡ Æ÷ÇÔµÇÁö ¾Ê´Â °æ¿ì, ±× °´Ã¼¸¦ Ãß°¡ÇÕ´Ï´Ù. |
boolean |
containsObservedObject (ObjectName object)
°¨½Ã ´ë»óÀÇ MBean ¼¼Æ®³»·Î ÁöÁ¤µÈ °´Ã¼°¡ Æ÷ÇÔµÉÁö ¾î¶³Áö¸¦ Å×½ºÆ®ÇÕ´Ï´Ù. |
long |
getGranularityPeriod ()
ÀÔµµÀÇ Áֱ⸦ ¹Ð¸® ¼¼ÄÁµå ´ÜÀ§·Î ÃëµæÇÕ´Ï´Ù. |
String |
getObservedAttribute ()
°¨½Ã ´ë»óÀÇ ¼Ó¼ºÀ» ÃëµæÇÕ´Ï´Ù. |
ObjectName |
getObservedObject ()
ÃßõÇÏÁö ¾Ê½À´Ï´Ù. JMX 1.2 ¿¡¼´Â getObservedObjects() ·Î ġȯµË´Ï´Ù. |
ObjectName [] |
getObservedObjects ()
°¨½Ã ´ë»óÀÇ °´Ã¼¸¦ Æ÷ÇÔÇÑ ¹è¿À» ¸®ÅÏÇÕ´Ï´Ù. |
boolean |
isActive ()
¸ð´ÏÅÍ MBean°¡ Ȱ¼ºÈµÇ¾ú´Â°¡ ¾î¶²°¡¸¦ Å×½ºÆ®ÇÕ´Ï´Ù. |
void |
postDeregister ()
MBean ¼¹ö·ÎºÎÅÍ µî·Ï ÇØÁ¦ÇÑµÚ ¸ð´ÏÅÍ MBean°¡ ÇÊ¿äÇÑ ¿ÀÆÛ·¹À̼ÇÀ» ½ÇÇàÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù. |
void |
postRegister (Boolean registrationDone)
MBean ¼¹ö¿¡ÀÇ µî·ÏÀÌ ¼º°ø ¶Ç´Â ½ÇÆÐÇÑµÚ ¸ð´ÏÅÍ MBean°¡ ÇÊ¿äÇÑ ¿ÀÆÛ·¹À̼ÇÀ» ½ÇÇàÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù. |
void |
preDeregister ()
MBean ¼¹ö·ÎºÎÅÍ µî·Ï ÇØÁ¦Çϱâ Àü¿¡ ¸ð´ÏÅÍ MBean°¡ ÇÊ¿äÇÑ ¿ÀÆÛ·¹À̼ÇÀ» ½ÇÇàÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù. |
ObjectName |
preRegister (MBeanServer server,
ObjectName name)
MBean ¼¹ö¿¡ µî·ÏÇϱâ Àü¿¡ ¸ð´ÏÅÍ MBean°¡ ÇÊ¿äÇÑ ¿ÀÆÛ·¹À̼ÇÀ» ½ÇÇàÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù. |
void |
removeObservedObject (ObjectName object)
°¨½Ã ´ë»óÀÇ MBean ¼¼Æ®·ÎºÎÅÍ ÁöÁ¤µÈ °´Ã¼¸¦ »èÁ¦ÇÕ´Ï´Ù. |
void |
setGranularityPeriod (long period)
ÀÔµµÀÇ Áֱ⸦ ¹Ð¸® ¼¼ÄÁµå ´ÜÀ§·Î ¼³Á¤ÇÕ´Ï´Ù. |
void |
setObservedAttribute (String attribute)
°¨½Ã ´ë»óÀÇ ¼Ó¼ºÀ» ¼³Á¤ÇÕ´Ï´Ù. |
void |
setObservedObject (ObjectName object)
ÃßõÇÏÁö ¾Ê½À´Ï´Ù. JMX 1.2 ÀÌÈÄ, addObservedObject(javax.management.ObjectName) ·Î ġȯµÇ°í ÀÖ½À´Ï´Ù. |
abstract void |
start ()
¸ð´ÏÅ͸¦ °³½ÃÇÕ´Ï´Ù. |
abstract void |
stop ()
¸ð´ÏÅ͸¦ Á¤ÁöÇÕ´Ï´Ù. |
Ŭ·¡½º javax.management. NotificationBroadcasterSupport ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
addNotificationListener,
getNotificationInfo,
handleNotification,
removeNotificationListener,
removeNotificationListener,
sendNotification |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ÇʵåÀÇ »ó¼¼ |
---|
protected static final int capacityIncrement
protected int elementCount
@Deprecated protected int alreadyNotified
alreadyNotifieds
[0] À¸·Î µ¿µîÇÕ´Ï´Ù.
protected int[] alreadyNotifieds
ÀÌ¹Ì ÅëÁöµÈ ¼±ÅÃÀÌ ³¡³ ¸ð´ÏÅÍ ¿¡·¯ÀÔ´Ï´Ù.
ÀÌ ¹è¿³»ÀÇ °¢ ¿ä¼Ò´Â º¤Åͳ»ÀÇ °¨½Ã ´ë»ó °´Ã¼¿¡ ´ëÀÀÇϰí ÀÖ½À´Ï´Ù. OBSERVED_OBJECT_ERROR_NOTIFIED
Ç÷¡±×µîÀÇ ºñÆ® ¸¶½ºÅ©¸¦ Æ÷ÇÔÇØ, ´ëÀÀÇÏ´Â ÅëÁö°¡ À̹Ì
°¨½Ã ´ë»óÀÇ MBean¿¡ ¼Û½ÅµÇ¾ú´ÂÁö ¾î¶°Çß´ÂÁö¸¦ ³ªÅ¸³À´Ï´Ù.
protected MBeanServer server
preRegister(MBeanServer server, ObjectName name)
protected static final int RESET_FLAGS_ALREADY_NOTIFIED
alreadyNotifieds
¸¦
¸®¼Â Çϱâ À§Çؼ »ç¿ëµË´Ï´Ù.
protected static final int OBSERVED_OBJECT_ERROR_NOTIFIED
protected static final int OBSERVED_ATTRIBUTE_ERROR_NOTIFIED
protected static final int OBSERVED_ATTRIBUTE_TYPE_ERROR_NOTIFIED
protected static final int RUNTIME_ERROR_NOTIFIED
@Deprecated protected String dbgTag
»ý¼ºÀÚ »ó¼¼ |
---|
public Monitor()
¸Þ¼µåÀÇ »ó¼¼ |
---|
public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
MBean ¼¹öÀÇ ÂüÁ¶¸¦ ÃʱâÈÇÕ´Ï´Ù.
MBeanRegistration
³»ÀÇ preRegister
server
- MBean ¼¹ö. ¸ð´ÏÅÍ MBean´Â ÀÌ MBean ¼¹ö¿¡ µî·ÏµÇ´Âname
- ¸ð´ÏÅÍ MBean
°´Ã¼¸í
Exception
- public void postRegister(Boolean registrationDone)
this ÄÁÅØ½ºÆ®¿¡ ¼´Â »ç¿ëÇÏÁö ¾Ê½À´Ï´Ù.
MBeanRegistration
³»ÀÇ postRegister
registrationDone
- MBean°¡ MBean ¼¹ö¿¡ Á¤»óÀûÀ¸·Î µî·ÏµÇ¾ú´ÂÁö ¾î¶°Çß´ÂÁö¸¦ ³ªÅ¸³½´Ù. µî·Ï¿¡ ½ÇÆÐÇßÀ» °æ¿ìÀÇ °ªÀº falsepublic void preDeregister() throws Exception
¸ð´ÏÅ͸¦ Á¤ÁöÇÕ´Ï´Ù.
MBeanRegistration
³»ÀÇ preDeregister
Exception
- public void postDeregister()
this ÄÁÅØ½ºÆ®¿¡ ¼´Â »ç¿ëÇÏÁö ¾Ê½À´Ï´Ù.
MBeanRegistration
³»ÀÇ postDeregister
public abstract void start()
MonitorMBean
³»ÀÇ start
public abstract void stop()
MonitorMBean
³»ÀÇ stop
@Deprecated public ObjectName getObservedObject()
getObservedObjects()
·Î ġȯµË´Ï´Ù.
null
À»
¸®ÅÏÇÕ´Ï´Ù.
MonitorMBean
³»ÀÇ getObservedObject
setObservedObject(ObjectName)
@Deprecated public void setObservedObject(ObjectName object) throws IllegalArgumentException
addObservedObject(javax.management.ObjectName)
·Î ġȯµÇ°í ÀÖ½À´Ï´Ù.
MonitorMBean
³»ÀÇ setObservedObject
object
- °¨½Ã ´ë»óÀÇ °´Ã¼
IllegalArgumentException
- ÁöÁ¤µÈ °´Ã¼°¡ nullÀÎ °æ¿ìgetObservedObject()
public void addObservedObject(ObjectName object) throws IllegalArgumentException
MonitorMBean
³»ÀÇ addObservedObject
object
- °¨½Ã ´ë»óÀÇ °´Ã¼
IllegalArgumentException
- ÁöÁ¤µÈ °´Ã¼°¡ nullÀÎ °æ¿ìpublic void removeObservedObject(ObjectName object)
MonitorMBean
³»ÀÇ removeObservedObject
object
- »èÁ¦ÇÏ´Â °´Ã¼public boolean containsObservedObject(ObjectName object)
MonitorMBean
³»ÀÇ containsObservedObject
object
- üũ ´ë»óÀÇ °´Ã¼
true
, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false
public ObjectName [] getObservedObjects()
MonitorMBean
³»ÀÇ getObservedObjects
public String getObservedAttribute()
MonitorMBean
³»ÀÇ getObservedAttribute
setObservedAttribute(java.lang.String)
public void setObservedAttribute(String attribute) throws IllegalArgumentException
MonitorMBean
³»ÀÇ setObservedAttribute
attribute
- °¨½Ã ´ë»óÀÇ ¼Ó¼º
IllegalArgumentException
- ÁöÁ¤µÈ ¼Ó¼ºÀÌ nullÀÎ °æ¿ìgetObservedAttribute()
public long getGranularityPeriod()
MonitorMBean
³»ÀÇ getGranularityPeriod
setGranularityPeriod(long)
public void setGranularityPeriod(long period) throws IllegalArgumentException
MonitorMBean
³»ÀÇ setGranularityPeriod
period
- ÀÔµµ ÁÖ±âÀÇ °ª
IllegalArgumentException
- ÀÔµµ ÁֱⰡ Á¦·Î ¾Æ·¡ÀÇ °æ¿ìgetGranularityPeriod()
public boolean isActive()
start
¸Þ¼µå°¡ ºÒ·Á°¡
¸é Ȱ¼ºÈ
µÇ¾î, stop
¸Þ¼µå°¡ ºÒ·Á°¡
¸é ºñȰ¼ºÈ
µË´Ï´Ù.
MonitorMBean
³»ÀÇ isActive
true
, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.