|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
javax.management.monitor.Monitor
com.adventnet.services.monitor.TableMonitor
public class TableMonitor
This class defines a monitor MBean designed to observe the values of the table attributes.
| Nested Class Summary | |
|---|---|
(package private) class |
TableMonitor.TableMonitorThread
|
| Field Summary |
|---|
| Fields inherited from class javax.management.monitor.Monitor |
|---|
alreadyNotified, alreadyNotifieds, capacityIncrement, dbgTag, elementCount, OBSERVED_ATTRIBUTE_ERROR_NOTIFIED, OBSERVED_ATTRIBUTE_TYPE_ERROR_NOTIFIED, OBSERVED_OBJECT_ERROR_NOTIFIED, RESET_FLAGS_ALREADY_NOTIFIED, RUNTIME_ERROR_NOTIFIED, server |
| 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 |
javax.management.ObjectName |
getObservedObject()
This method gets the object name of the object being observed. |
boolean |
isActive()
This method tests whether the monitor MBean is active. |
javax.management.ObjectName |
preRegister(javax.management.MBeanServer server,
javax.management.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(javax.management.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.monitor.Monitor |
|---|
addObservedObject, containsObservedObject, getObservedObjects, postDeregister, postRegister, preDeregister, removeObservedObject |
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
|---|
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.management.monitor.MonitorMBean |
|---|
addObservedObject, containsObservedObject, getObservedObjects, removeObservedObject |
| Constructor Detail |
|---|
public TableMonitor()
| Method Detail |
|---|
public long getGranularityPeriod()
getGranularityPeriod in interface javax.management.monitor.MonitorMBeangetGranularityPeriod in class javax.management.monitor.Monitor
public void setGranularityPeriod(long period)
throws java.lang.IllegalArgumentException
setGranularityPeriod in interface javax.management.monitor.MonitorMBeansetGranularityPeriod in class javax.management.monitor.Monitorperiod - the granularity period value.
java.lang.IllegalArgumentException - - The granularity period is less than or
equal to zero.public java.lang.String getObservedAttribute()
getObservedAttribute in interface javax.management.monitor.MonitorMBeangetObservedAttribute in class javax.management.monitor.Monitorpublic void setObservedAttribute(java.lang.String attribute)
setObservedAttribute in interface javax.management.monitor.MonitorMBeansetObservedAttribute in class javax.management.monitor.Monitorattribute - The attribute to be observed.public javax.management.ObjectName getObservedObject()
getObservedObject in interface javax.management.monitor.MonitorMBeangetObservedObject in class javax.management.monitor.Monitorpublic void setObservedObject(javax.management.ObjectName object)
setObservedObject in interface javax.management.monitor.MonitorMBeansetObservedObject in class javax.management.monitor.Monitorobject - The ObjectName of the object to be observed.public boolean isActive()
isActive in interface javax.management.monitor.MonitorMBeanisActive in class javax.management.monitor.Monitor
public void setObservedColumn(java.lang.String colName,
java.lang.String typeName)
setObservedColumn in interface TableMonitorMBeancolName - The name of the column to be observedtypeName - The type of the column to be observedpublic java.lang.String getObservedColumn()
getObservedColumn in interface TableMonitorMBeanpublic java.lang.String getObservedColumnType()
getObservedColumnType in interface TableMonitorMBeanThe - type of the observed column
public javax.management.ObjectName preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
throws java.lang.Exception
preRegister in interface javax.management.MBeanRegistrationpreRegister in class javax.management.monitor.Monitorjava.lang.Exceptionpublic void start()
start in interface javax.management.monitor.MonitorMBeanstart in class javax.management.monitor.Monitor
public void setThresholds(java.lang.Object low,
java.lang.Object high)
setThresholds in interface TableMonitorMBeanlow - The low threshold valuehigh - The high threshold valuepublic java.lang.Object getLowThreshold()
getLowThreshold in interface TableMonitorMBeanpublic java.lang.Object getHighThreshold()
getHighThreshold in interface TableMonitorMBeanpublic void stop()
stop in interface javax.management.monitor.MonitorMBeanstop in class javax.management.monitor.Monitorpublic boolean checkImplementsModelListener()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||