|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.adventnet.services.proxy.JmxProxy
This class acts as the delegate class for doing the SNMP proxy for a particular MBean. This will be used when you want to expose the existing Snmp Agent through Multiple Protocols.
| Constructor Summary | |
JmxProxy()
Default Constructor. |
|
JmxProxy(MBeanServer server)
Constructor that takes the MBeanServer as the parameter. |
|
JmxProxy(MBeanServer server,
java.util.Hashtable trapListenFwdHash)
Constructor that takes the MBeanServer as the parameter with the trapListener and Forwarding details |
|
| Method Summary | |
void |
deRegister()
This method de-registers the JMXProxy instance. |
java.lang.Object |
doScalarSnmpGetOper(ObjectName source,
java.lang.String attribute)
This method does the proxy Get operations for Scalar groups. |
java.lang.Object |
doScalarSnmpOper(java.lang.Object source,
java.lang.String attribute,
byte command,
java.lang.String value)
This method does the proxy operations for Scalar groups. |
java.lang.Object |
doScalarSnmpSetOper(ObjectName source,
java.lang.String attribute,
java.lang.String value)
This method does the proxy Set operations for Scalar groups. |
java.util.Vector |
doTableSnmpGetOper(java.lang.Object source,
java.lang.String attribute,
java.lang.String[][] value,
java.lang.String entryName)
This method does the proxy operations for Get Requests for Tables. |
void |
doTableSnmpSetOper(java.lang.Object source,
java.lang.String attribute,
CompositeData comp,
java.lang.String[] indexNames,
java.lang.String key)
This method does the proxy operations for Set Request for Tables. |
java.util.Hashtable |
getProxyTable()
Getter for the ProxyInfo objects |
void |
register(ObjectName name,
java.lang.String host,
int port,
java.lang.String community)
This method registers the particular MBean with the JmxProxy with details about the SubAgent. |
void |
register(ObjectName name,
java.lang.String host,
int port,
java.lang.String community,
java.lang.String version)
This method registers the particular MBean with the JmxProxy with details about the SubAgent. |
void |
startListenerAndForwarder(java.lang.Integer port)
Method to start the TrapListenerAndForwarder to listen for the SubAgent Traps. |
void |
tableAddRow(ObjectName objName,
java.lang.Object[] indexObjects,
CompositeData entry)
When the manager is trying to add a row in the table, this method will be called. |
void |
tableDeleteRow(ObjectName objName,
java.lang.Object[] indexObjects)
When the manager is trying to delete a row in the table, this method will be called. |
java.util.List |
tableGetEntries(ObjectName objName,
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 |
tableGetEntry(ObjectName objName,
java.lang.Object[] indexObjects)
To get the entry for the given row (identified by the instance) |
CompositeData |
tableGetFirstEntry(ObjectName objName)
To get the first entry in the table |
CompositeData |
tableGetNextEntry(ObjectName objName,
java.lang.Object[] indexObjects)
To get the next entry for the given row (identified by the instance) |
void |
tableModifyRow(ObjectName objName,
java.lang.Object[] indexObjects,
CompositeData entry)
When the manager is trying to modify a row in the table, this method will be called. |
int |
tableTotalRows(ObjectName objName)
This method gives the total number of rows in the table. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public JmxProxy()
public JmxProxy(MBeanServer server)
server - the instance of the MBeanServer.
public JmxProxy(MBeanServer server,
java.util.Hashtable trapListenFwdHash)
server - the instance of the MBeanServer.trapListenFwdHash - the Hashtable which contains the Trap Listening and Forwarding details| Method Detail |
public void register(ObjectName name,
java.lang.String host,
int port,
java.lang.String community)
name - the ObjectName of the interested MBeanhost - the SubAgent host Nameport - the SubAgent port numbercommunity - the community with which the Proxy should be done.
public void register(ObjectName name,
java.lang.String host,
int port,
java.lang.String community,
java.lang.String version)
name - the ObjectName of the interested MBeanhost - the SubAgent host Nameport - the SubAgent port numbercommunity - the community with which the Proxy should be done.version - the SNMP version with which the Proxy should be done.
public java.lang.Object doScalarSnmpOper(java.lang.Object source,
java.lang.String attribute,
byte command,
java.lang.String value)
source - the Managed Resource that calls this method.attribute - the attribute of MBean for which proxy needs to be donecommand - value indicating the type of the SNMP message,
get/getnext/set request.value - public java.util.Hashtable getProxyTable()
public java.util.Vector doTableSnmpGetOper(java.lang.Object source,
java.lang.String attribute,
java.lang.String[][] value,
java.lang.String entryName)
source - the Managed Resource that calls this method.attribute - the attribute of MBean for which proxy needs to be donevalue - entryName - The entry name of the Table
public void doTableSnmpSetOper(java.lang.Object source,
java.lang.String attribute,
CompositeData comp,
java.lang.String[] indexNames,
java.lang.String key)
throws AgentException
source - the Managed Resource that calls this method.attribute - the attribute of MBean for which proxy needs to be done
times out or there is no response from the agent, returns null.comp - The composite data corresponding to the the value to be setindexNames - The String array representing the index Nameskey - The key value
public CompositeData tableGetEntry(ObjectName objName,
java.lang.Object[] indexObjects)
indexObjects - the object array with index objects which
identifies the row
public CompositeData tableGetNextEntry(ObjectName objName,
java.lang.Object[] indexObjects)
indexObjects - the object array with index objects which
identifies the rowpublic CompositeData tableGetFirstEntry(ObjectName objName)
public void tableAddRow(ObjectName objName,
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 tableDeleteRow(ObjectName objName,
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 tableModifyRow(ObjectName objName,
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 tableTotalRows(ObjectName objName)
public java.util.List tableGetEntries(ObjectName objName,
int startIndex,
int endIndex)
public java.lang.Object doScalarSnmpGetOper(ObjectName source,
java.lang.String attribute)
source - the ObjectName of the MBean.attribute - the attribute of MBean for which proxy needs to be done
public java.lang.Object doScalarSnmpSetOper(ObjectName source,
java.lang.String attribute,
java.lang.String value)
source - the ObjectName of the MBean.attribute - the attribute of MBean for which proxy needs to be donepublic void deRegister()
public void startListenerAndForwarder(java.lang.Integer port)
port - The port value where the Listener is to be opened.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||