|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.snmp.snmp2.agent.SimpleRequestHandler
com.adventnet.adaptors.snmp.VarBindRequestListenerSupport
public class VarBindRequestListenerSupport
This class acts as the VarBindRequestListener object for each mbean that registers with the server. For SNMP support a separate registration tree is maintained at the PduRequestHandler, to which this VarBindRequestListener gets registered.
| Field Summary | |
|---|---|
(package private) SnmpAdaptor |
adaptor
|
(package private) javax.management.modelmbean.ModelMBeanAttributeInfo[] |
adss
|
(package private) int |
count
|
(package private) boolean |
implementsModelListener
|
(package private) java.lang.String[] |
indexNames
|
(package private) AgentTableModel |
insTable
|
(package private) UpdateListener |
listener
|
(package private) java.lang.String |
msClassName
|
(package private) javax.management.modelmbean.ModelMBeanNotificationInfo[] |
ndss
|
(package private) int |
nonIndexCount
|
(package private) java.lang.String |
objectName
|
(package private) javax.management.ObjectInstance |
oi
|
(package private) int[] |
oidRep
|
(package private) boolean |
rowStatus
|
(package private) java.lang.String |
rowStatusName
|
(package private) java.lang.String |
rowStatusOid
|
(package private) javax.management.MBeanServer |
server
|
(package private) int[] |
subidList
|
(package private) boolean |
tabular
|
(package private) java.util.Hashtable |
tempTable
|
| Fields inherited from class com.adventnet.snmp.snmp2.agent.SimpleRequestHandler |
|---|
instrumentHandler, tableListener |
| Constructor Summary | |
|---|---|
VarBindRequestListenerSupport()
|
|
VarBindRequestListenerSupport(javax.management.MBeanServer server,
javax.management.ObjectInstance oi)
|
|
VarBindRequestListenerSupport(javax.management.MBeanServer server,
java.lang.String objectName,
javax.management.modelmbean.ModelMBeanInfo mmInfo)
|
|
VarBindRequestListenerSupport(javax.management.MBeanServer server,
java.lang.String wsClassName,
javax.management.modelmbean.ModelMBeanInfo mmInfo,
SnmpAdaptor adaptor)
The following is a constructor newly added to register the StandardMBean and DynamicMBean with the SnmpAgent. |
|
| Method Summary | |
|---|---|
void |
addRow(TableEntry entry)
|
void |
addUpdateListener(UpdateListener l)
Addition of UpdateListener for persistence storage of Table values. |
(package private) boolean |
checkForRowStatus(javax.jmx.openmbean.CompositeData entry,
int msgType)
|
void |
disableAllTypes()
Useful in filtering the Notifications. |
void |
disableType(java.lang.String prefix)
Useful in filtering. |
void |
enableType(java.lang.String prefix)
Useful in filtering. |
java.util.Vector |
getEnabledTypes()
Returns the enabled types of this NotificationFilter as Vector of String values. |
javax.management.modelmbean.ModelMBeanInfo |
getModelMBeanInfo()
|
int[] |
getOidRep()
Retrives the integer representation of OID |
int[] |
getSubidList()
Gets the subid list of the oid. |
boolean |
getViewBasedFlag()
|
void |
handleNotification(javax.management.Notification notification,
java.lang.Object handback)
The unique call-back method which will be called by an MBean(notification broadcaster) when it emits a notification. |
boolean |
isNotificationEnabled(javax.management.Notification notification)
|
boolean |
isNotificationEnabled(javax.management.Notification notification,
javax.management.NotificationListener listener,
java.lang.Object handback)
Invoked before sending the specified notification to the listener. |
static int[] |
makeInstanceOID(byte[] type,
java.lang.Object[] array,
boolean[] implied)
|
protected void |
processGetNextRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
Process the GetNext Request message which is received from PduRequestHandler. |
protected void |
processGetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
Process the Get Request message which is received from PduRequestHandler. |
protected void |
processSetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
Process the Set Request message which is received from PduRequestHandler. |
protected void |
processTabularSetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
|
void |
remove(TableEntry entry)
|
void |
removeUpdateListener()
Removal of UpdateListener for persistence storage of Table values. |
void |
setTrapHandler(java.lang.Object th)
|
void |
setViewBasedFlag(boolean vbac)
|
| Methods inherited from class com.adventnet.snmp.snmp2.agent.SimpleRequestHandler |
|---|
addInstrumentHandler, addRegistrationListener, addTableListener, getInstrument, getMibVarHash, getNextRequest, getNextRequest, getObjectHash, getObjectTypeHash, getRequest, getTableListener, getUpdateListener, isWriteEachTime, processGetNextRequest, processGetRequest, processSetRequest, removeRegistrationListener, setRequest, setWriteEachTime, writeIntoFile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
int[] oidRep
int[] subidList
java.util.Hashtable tempTable
javax.management.modelmbean.ModelMBeanAttributeInfo[] adss
javax.management.modelmbean.ModelMBeanNotificationInfo[] ndss
javax.management.ObjectInstance oi
java.lang.String objectName
java.lang.String msClassName
SnmpAdaptor adaptor
javax.management.MBeanServer server
boolean tabular
boolean implementsModelListener
int count
AgentTableModel insTable
boolean rowStatus
java.lang.String rowStatusOid
java.lang.String rowStatusName
int nonIndexCount
java.lang.String[] indexNames
UpdateListener listener
| Constructor Detail |
|---|
public VarBindRequestListenerSupport()
public VarBindRequestListenerSupport(javax.management.MBeanServer server,
java.lang.String wsClassName,
javax.management.modelmbean.ModelMBeanInfo mmInfo,
SnmpAdaptor adaptor)
throws java.lang.Exception
java.lang.Exception
public VarBindRequestListenerSupport(javax.management.MBeanServer server,
java.lang.String objectName,
javax.management.modelmbean.ModelMBeanInfo mmInfo)
throws java.lang.Exception
java.lang.Exception
public VarBindRequestListenerSupport(javax.management.MBeanServer server,
javax.management.ObjectInstance oi)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public javax.management.modelmbean.ModelMBeanInfo getModelMBeanInfo()
public int[] getOidRep()
SimpleRequestHandler
getOidRep in class SimpleRequestHandlerpublic int[] getSubidList()
SimpleRequestHandler
getSubidList in class SimpleRequestHandler
protected void processGetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
throws AgentSnmpException
SimpleRequestHandler
processGetRequest in class SimpleRequestHandlervarb - The received varbind .node - The node for which Get Request is to be done.pe - The VarBind Request Event created by this Get request.
AgentSnmpException - This wraps all the Exceptions thrown
while Processing the Event.
public static int[] makeInstanceOID(byte[] type,
java.lang.Object[] array,
boolean[] implied)
boolean checkForRowStatus(javax.jmx.openmbean.CompositeData entry,
int msgType)
protected void processSetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
throws AgentSnmpException
SimpleRequestHandler
processSetRequest in class SimpleRequestHandlervarb - The received varbind.node - The node for which Get Next Request is to be done.pe - The VarBind Request Event created by this GetNext request.
AgentSnmpException - This wraps all the Exceptions thrown
while Processing the Event.
protected void processTabularSetRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
throws java.lang.Exception
java.lang.Exception
protected void processGetNextRequest(SnmpVarBind varb,
AgentNode node,
VarBindRequestEvent pe)
throws AgentSnmpException
SimpleRequestHandler
processGetNextRequest in class SimpleRequestHandlervarb - The received varbind.node - The node for which Get Next Request is to be done.pe - The VarBind Request Event created by this GetNext request.
AgentSnmpException - This wraps all the Exceptions thrown
while Processing the Event.public void addRow(TableEntry entry)
public void remove(TableEntry entry)
public void addUpdateListener(UpdateListener l)
SimpleRequestHandler
addUpdateListener in class SimpleRequestHandlerl - The updateListener which implements the writeIntoFile method.public void removeUpdateListener()
SimpleRequestHandler
removeUpdateListener in class SimpleRequestHandler
public void handleNotification(javax.management.Notification notification,
java.lang.Object handback)
handleNotification in interface javax.management.NotificationListenernotification - The notification.handback - An opaque object which helps the listener to associate information
regarding the MBean emitter. This object was passed to the MBean during the
addListener call and resend, without modification, to the listener. The MBean object
should to use or modify the object.
public boolean isNotificationEnabled(javax.management.Notification notification,
javax.management.NotificationListener listener,
java.lang.Object handback)
notification - The notification to be sent.listener - The listener object which will handle the notification.handback - An opaque object which helps the listener to associate information
regarding the MBean emitter. This object is passed to the MBean during the
addNotificationListener call and resent, without modification, to the listener.
public boolean isNotificationEnabled(javax.management.Notification notification)
isNotificationEnabled in interface javax.management.NotificationFilterpublic void disableAllTypes()
public void disableType(java.lang.String prefix)
prefix - the prefix value for which notifications are dropped.public void enableType(java.lang.String prefix)
prefix - the prefix value for which notifications are filtered successfully.public java.util.Vector getEnabledTypes()
public void setTrapHandler(java.lang.Object th)
public void setViewBasedFlag(boolean vbac)
public boolean getViewBasedFlag()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||