|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.management.modelmbean.RequiredModelMBean
com.adventnet.services.proxy.JMXSnmpProxyModelMBean
public class JMXSnmpProxyModelMBean
| Constructor Summary | |
|---|---|
JMXSnmpProxyModelMBean(java.util.Hashtable propertyHash,
JmxProxy proxy)
|
|
| Method Summary | |
|---|---|
void |
addRow(java.lang.Object[] indexObjects,
javax.jmx.openmbean.CompositeData entry)
When the manager is trying to add a row in the table, this method will be called. |
void |
deleteRow(java.lang.Object[] indexObjects)
When the manager is trying to delete a row in the table, this method will be called. |
java.lang.Object |
getAttribute(java.lang.String attribute)
|
java.util.List |
getEntries(int startIndex,
int endIndex)
This method gives an List of the CompositeData instances in this table starting from the startIndex through till the EndIndex. |
javax.jmx.openmbean.CompositeData |
getEntry(java.lang.Object[] indexObjects)
To get the entry for the given row (identified by the instance) |
javax.jmx.openmbean.CompositeData |
getFirstEntry()
To get the first entry in the table |
java.lang.String[] |
getIndexNames()
|
javax.jmx.openmbean.CompositeData |
getNextEntry(java.lang.Object[] indexObjects)
To get the next entry for the given row (identified by the instance) |
java.lang.Object |
invoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature)
|
void |
modifyRow(java.lang.Object[] indexObjects,
javax.jmx.openmbean.CompositeData entry)
When the manager is trying to modify a row in the table, this method will be called. |
void |
postDeregister()
Allows the MBean to perform any operations needed after having been de-registered in the MBeanServer. |
void |
postRegister(java.lang.Boolean registrationDone)
Allows the MBean to perform any operations needed after having been registered in the MBeanServer or after the registration has failed. |
void |
preDeregister()
Allows the MBean to perform any operations it needs before being de-registered by the MBeanServer. |
javax.management.ObjectName |
preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
Allows the MBean to perform any operations it needs before being registered in the MBeanServer. |
void |
setAttribute(javax.management.Attribute attribute)
|
void |
setCommunity(java.lang.String community)
|
void |
setHost(java.lang.String host)
|
void |
setIndexNames(java.lang.String indexNames)
|
void |
setJmxProxy(JmxProxy proxy)
|
void |
setModelMBeanInfo(javax.management.modelmbean.ModelMBeanInfo mbi)
|
void |
setObjectName(java.lang.String objectName)
|
void |
setPort(java.lang.String port)
|
void |
setSNMPVersion(java.lang.String version)
|
int |
totalRows()
This method gives the total number of rows in the table. |
| Methods inherited from class javax.management.modelmbean.RequiredModelMBean |
|---|
addAttributeChangeNotificationListener, addNotificationListener, getAttributes, getClassLoaderRepository, getMBeanInfo, getNotificationInfo, load, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttributes, setManagedResource, store |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JMXSnmpProxyModelMBean(java.util.Hashtable propertyHash,
JmxProxy proxy)
throws javax.management.MBeanException,
javax.management.RuntimeOperationsException
javax.management.MBeanException
javax.management.RuntimeOperationsException| Method Detail |
|---|
public void setObjectName(java.lang.String objectName)
public void setHost(java.lang.String host)
public void setPort(java.lang.String port)
public void setIndexNames(java.lang.String indexNames)
public java.lang.String[] getIndexNames()
public void setSNMPVersion(java.lang.String version)
public void setCommunity(java.lang.String community)
public void setJmxProxy(JmxProxy proxy)
public javax.jmx.openmbean.CompositeData getEntry(java.lang.Object[] indexObjects)
getEntry in interface com.adventnet.utils.jmx.JmxTableModelListenerindexObjects - the object array with index objects which
identifies the row
public javax.jmx.openmbean.CompositeData getNextEntry(java.lang.Object[] indexObjects)
getNextEntry in interface com.adventnet.utils.jmx.JmxTableModelListenerindexObjects - the object array with index objects which
identifies the row
public javax.jmx.openmbean.CompositeData getFirstEntry()
getFirstEntry in interface com.adventnet.utils.jmx.JmxTableModelListener
public void addRow(java.lang.Object[] indexObjects,
javax.jmx.openmbean.CompositeData entry)
throws java.lang.Exception
addRow in interface com.adventnet.utils.jmx.JmxTableModelListenerindexObjects - the object array with index objects which
identifies the row to be added.entry - the entry value as javax.jmx.openmbean.CompositeData
instance.
java.lang.Exception
public void deleteRow(java.lang.Object[] indexObjects)
throws java.lang.Exception
deleteRow in interface com.adventnet.utils.jmx.JmxTableModelListenerindexObjects - the object array with index objects which
identifies the row to be deleted.entry - the entry value as javax.jmx.openmbean.CompositeData
instance.
java.lang.Exception
public void modifyRow(java.lang.Object[] indexObjects,
javax.jmx.openmbean.CompositeData entry)
throws java.lang.Exception
modifyRow in interface com.adventnet.utils.jmx.JmxTableModelListenerindexObjects - the object array with index objects which
identifies the row to be modified.entry - the entry value as javax.jmx.openmbean.CompositeData
instance.
java.lang.Exceptionpublic int totalRows()
totalRows in interface com.adventnet.utils.jmx.JmxTableModelListener
public java.util.List getEntries(int startIndex,
int endIndex)
getEntries in interface com.adventnet.utils.jmx.JmxTableModelListener
public java.lang.Object getAttribute(java.lang.String attribute)
throws javax.management.AttributeNotFoundException,
javax.management.MBeanException,
javax.management.ReflectionException
getAttribute in interface javax.management.DynamicMBeangetAttribute in class javax.management.modelmbean.RequiredModelMBeanjavax.management.AttributeNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
public void setAttribute(javax.management.Attribute attribute)
throws javax.management.AttributeNotFoundException,
javax.management.InvalidAttributeValueException,
javax.management.MBeanException,
javax.management.ReflectionException
setAttribute in interface javax.management.DynamicMBeansetAttribute in class javax.management.modelmbean.RequiredModelMBeanjavax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionException
public void setModelMBeanInfo(javax.management.modelmbean.ModelMBeanInfo mbi)
throws javax.management.MBeanException,
javax.management.RuntimeOperationsException
setModelMBeanInfo in interface javax.management.modelmbean.ModelMBeansetModelMBeanInfo in class javax.management.modelmbean.RequiredModelMBeanjavax.management.MBeanException
javax.management.RuntimeOperationsException
public java.lang.Object invoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature)
throws javax.management.MBeanException,
javax.management.ReflectionException
invoke in interface javax.management.DynamicMBeaninvoke in class javax.management.modelmbean.RequiredModelMBeanjavax.management.MBeanException
javax.management.ReflectionException
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.modelmbean.RequiredModelMBeanserver - The MBeanServer in which the MBean will be registered.name - The object name of the MBean.
java.lang.Exception - This exception should be caught by the MBeanServer
and re-thrown as an MBeanRegistrationException.public void postRegister(java.lang.Boolean registrationDone)
postRegister in interface javax.management.MBeanRegistrationpostRegister in class javax.management.modelmbean.RequiredModelMBeanregistrationDone - Indicates whether or not the MBean has been successfully
registered in the MBeanServer. The value false means that either the registration
phase has failed.
public void preDeregister()
throws java.lang.Exception
preDeregister in interface javax.management.MBeanRegistrationpreDeregister in class javax.management.modelmbean.RequiredModelMBeanjava.lang.Exception - This exception should be caught by the MBeanServer
and re-thrown as an MBeanRegistrationException.public void postDeregister()
postDeregister in interface javax.management.MBeanRegistrationpostDeregister in class javax.management.modelmbean.RequiredModelMBean
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||