|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--javax.management.modelmbean.RequiredModelMBean
|
+--com.adventnet.services.proxy.JMXSnmpProxyModelMBean
| Inner classes inherited from class javax.management.modelmbean.RequiredModelMBean |
RequiredModelMBean.UpdateTimer |
| Fields inherited from class javax.management.modelmbean.RequiredModelMBean |
adsValueTable,
attrbroadcaster,
attrFilterMapTable,
clazz,
confDirName,
confFile,
confFileName,
confFileTable,
mbeanInfo,
notifbroadcaster,
notiffields1,
notiffields2,
object,
objectType,
prints,
registered |
| Constructor Summary | |
JMXSnmpProxyModelMBean(java.util.Hashtable propertyHash,
JmxProxy proxy)
|
|
| Method Summary | |
void |
addRow(java.lang.Object[] indexObjects,
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)
Gets the value of a specific attribute of this MBean. |
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. |
CompositeData |
getEntry(java.lang.Object[] indexObjects)
To get the entry for the given row (identified by the instance) |
CompositeData |
getFirstEntry()
To get the first entry in the table |
java.lang.String[] |
getIndexNames()
|
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)
Invokes a method on or through a RequiredModelMBean and returns the result of the method execution. |
void |
modifyRow(java.lang.Object[] indexObjects,
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. |
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
Allows the MBean to perform any operations it needs before being registered in the MBeanServer. |
void |
setAttribute(Attribute attribute)
Sets the value of a specific attribute of this MBean. |
void |
setCommunity(java.lang.String community)
|
void |
setHost(java.lang.String host)
|
void |
setIndexNames(java.lang.String indexNames)
|
void |
setJmxProxy(JmxProxy proxy)
|
void |
setModelMBeanInfo(ModelMBeanInfo mbi)
Initializes a ModelMBean object using ModelMBeanInfo passed in. |
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 java.lang.Object |
|
| Constructor Detail |
public JMXSnmpProxyModelMBean(java.util.Hashtable propertyHash,
JmxProxy proxy)
throws MBeanException,
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 CompositeData getEntry(java.lang.Object[] indexObjects)
indexObjects - the object array with index objects which
identifies the rowpublic CompositeData getNextEntry(java.lang.Object[] indexObjects)
indexObjects - the object array with index objects which
identifies the rowpublic CompositeData getFirstEntry()
public void addRow(java.lang.Object[] indexObjects,
CompositeData entry)
throws java.lang.Exception
indexObjects - the object array with index objects which
identifies the row to be added.entry - the entry value as javax.jmx.openmbean.CompositeData
instance.
public void deleteRow(java.lang.Object[] indexObjects)
throws java.lang.Exception
indexObjects - the object array with index objects which
identifies the row to be deleted.entry - the entry value as javax.jmx.openmbean.CompositeData
instance.
public void modifyRow(java.lang.Object[] indexObjects,
CompositeData entry)
throws java.lang.Exception
indexObjects - the object array with index objects which
identifies the row to be modified.entry - the entry value as javax.jmx.openmbean.CompositeData
instance.public int totalRows()
public java.util.List getEntries(int startIndex,
int endIndex)
public java.lang.Object getAttribute(java.lang.String attribute)
throws AttributeNotFoundException,
MBeanException,
ReflectionException
attribute - A String specifying the name of the attribute to be retrieved.
public void setAttribute(Attribute attribute)
throws AttributeNotFoundException,
InvalidAttributeValueException,
MBeanException,
ReflectionException
attribute - The identification of the attribute to be set and
the value it is to be set to.
public void setModelMBeanInfo(ModelMBeanInfo mbi)
throws MBeanException,
RuntimeOperationsException
If the ModelMBean is currently registered, this method throws
a RuntimeOperationsException wrapping an
IllegalStateException
If the given inModelMBeanInfo does not contain any
ModelMBeanNotificationInfo for the GENERIC
or ATTRIBUTE_CHANGE notifications, then the
RequiredModelMBean will supply its own default
ModelMBeanNotificationInfos for
those missing notifications.
mbi - The ModelMBeanInfo object to be used by the ModelMBean.IllegalArgumentException if
the MBeanInfo passed in parameter is null.IllegalStateException if the ModelMBean
is currently registered in the MBeanServer.
public java.lang.Object invoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature)
throws MBeanException,
ReflectionException
If the given method to be invoked, together with the provided signature, matches one of RequiredModelMbean accessible methods, this one will be call. Otherwise the call to the given method will be tried on the managed ressource.
The last value returned by an operation may be cached in the operation's descriptor which is in the ModelMBeanOperationInfo's descriptor. The valid value will be in the 'value' field if there is one. If the 'currencyTimeLimit' field in the descriptor is:
opName - The name of the method to be invoked. The name can be the
fully qualified method name including the classname, or just
the method name if the classname is defined in the 'class'
field of the operation descriptor.opArgs - An array containing the parameters to be set
when the operation is invokedsig - An array containing the signature of the operation. The class
objects will be loaded using the same class loader as the one
used for loading the MBean on which the operation was invoked.ServiceNotFoundException: No ModelMBeanOperationInfo or
no descriptor defined for the specified operation or the managed
resource is null.InvalidTargetObjectTypeException: The 'targetType'
field value is not 'objectReference'.Exception
thrown while trying to invoke the method.IllegalArgumentException Method name is null.
public ObjectName preRegister(MBeanServer server,
ObjectName name)
throws java.lang.Exception
server - The MBeanServer in which the MBean will be registered.name - The object name of the MBean.public void postRegister(java.lang.Boolean registrationDone)
registrationDone - 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
public void postDeregister()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||