|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--javax.management.NotificationBroadcasterSupport
|
+--javax.management.monitor.Monitor
|
+--com.adventnet.services.monitor.TableMonitor
This class defines a monitor MBean designed to observe the values of the table attributes.
| Inner Class Summary | |
(package private) class |
TableMonitor.TableMonitorThread
|
| Fields inherited from class javax.management.monitor.Monitor |
alreadyNotified,
alreadyNotifieds,
capacityIncrement,
dbgTag,
derivedGaugeTimeStamp,
elementCount,
isActive,
logger,
OBSERVED_ATTRIBUTE_ERROR_NOTIFIED,
OBSERVED_ATTRIBUTE_TYPE_ERROR_NOTIFIED,
OBSERVED_OBJECT_ERROR_NOTIFIED,
RESET_FLAGS_ALREADY_NOTIFIED,
RUNTIME_ERROR_NOTIFIED,
sequenceNumber,
server |
| Fields inherited from class javax.management.NotificationBroadcasterSupport |
li |
| Constructor Summary | |
TableMonitor()
Default constructor |
|
| Method Summary | |
boolean |
checkImplementsModelListener()
Determines whether ModelListener is implemented or not |
long |
getGranularityPeriod()
This method gets the granularity period (in milliseconds). |
java.lang.Object |
getHighThreshold()
Returns the high threshold value |
java.lang.Object |
getLowThreshold()
Returns the low threshold value |
java.lang.String |
getObservedAttribute()
This method gets the name of the attribute being observed. |
java.lang.String |
getObservedColumn()
Returns the observed column |
java.lang.String |
getObservedColumnType()
Returns the type of the observed column |
ObjectName |
getObservedObject()
This method gets the object name of the object being observed. |
boolean |
isActive()
This method tests whether the monitor MBean is active. |
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
Overriding the preRegister() of MBeanRegistration interface to store the ObjectName locally. |
void |
setGranularityPeriod(long period)
This method sets the granularity period (in milliseconds) .The default value is one second. |
void |
setObservedAttribute(java.lang.String attribute)
This method sets the attribute being observed. |
void |
setObservedColumn(java.lang.String colName,
java.lang.String typeName)
Sets the column to be observed |
void |
setObservedObject(ObjectName object)
This method sets the object name of the object being observed. |
void |
setThresholds(java.lang.Object low,
java.lang.Object high)
Sets the high and the low threshold value |
void |
start()
Starts the Table monitoring Thread |
void |
stop()
Stops the monitoring Thread |
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
addNotificationListener,
handleNotification,
handleNotification,
removeNotificationListener,
removeNotificationListener,
sendNotification |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public TableMonitor()
| Method Detail |
public long getGranularityPeriod()
public void setGranularityPeriod(long period)
throws java.lang.IllegalArgumentException
period - the granularity period value.public java.lang.String getObservedAttribute()
public void setObservedAttribute(java.lang.String attribute)
attribute - The attribute to be observed.public ObjectName getObservedObject()
public void setObservedObject(ObjectName object)
object - The ObjectName of the object to be observed.public boolean isActive()
public void setObservedColumn(java.lang.String colName,
java.lang.String typeName)
colName - The name of the column to be observedtypeName - The type of the column to be observedpublic java.lang.String getObservedColumn()
public java.lang.String getObservedColumnType()
The - type of the observed column
public ObjectName preRegister(MBeanServer server,
ObjectName name)
throws java.lang.Exception
server - - The MBean server in which the monitor MBean will be registered.name - - The object name of the monitor MBean.public void start()
public void setThresholds(java.lang.Object low,
java.lang.Object high)
low - The low threshold valuehigh - The high threshold valuepublic java.lang.Object getLowThreshold()
public java.lang.Object getHighThreshold()
public void stop()
public boolean checkImplementsModelListener()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||