org.jboss.jmx.adaptor.snmp.agent
Class AttributeMappingsBinding
java.lang.Object
org.jboss.jmx.adaptor.snmp.agent.AttributeMappingsBinding
- All Implemented Interfaces:
- org.jboss.xb.binding.ObjectModelFactory
public class AttributeMappingsBinding
- extends java.lang.Object
- implements org.jboss.xb.binding.ObjectModelFactory
Parse the mapping of JMX mbean attributes to SNMP OIDs
TODO: extend this parsing.
-Add "table" element. This is not represented by any MBean attribute but is still recorded by the system,
as a a way to conceptually organize the desired exposed JMX metrics. This element would have the oid-prefix
attribute, which would replace the mbean oid-prefix
-Remove the ability for there to be an oid-prefix for the MBeans. instead, but this into the "table" element.
the reason we should do this is because SNMP works with "Objects" and "Instances". The way it is currently
parsed makes it seem like each MBean is a table, and we do not want to force this behavior.
New scheme for parsing:
(MBean we're interested in.)
(This attribute is a scalar, because it has no prefix. it's Object is 1.2.3.4.1 and the instance is 0)
..
(This indicates the creation of a conceptual table.)
(This is a row in the table) neither this nor the table are directly accessible in SNMP.
(this is an actual instance of the row (a single column in the row.)
This attribute is accessed by 1.2.3.4.1.8.1.1
..
- Version:
- $Revision: 81038 $
- Author:
- Heiko W. Rupp
|
Method Summary |
void |
addChild(AttributeMappings mappings,
ManagedBean mbean,
org.jboss.xb.binding.UnmarshallingContext navigator,
java.lang.String namespaceURI,
java.lang.String localName)
|
void |
addChild(ManagedBean mbean,
MappedAttribute attribute,
org.jboss.xb.binding.UnmarshallingContext navigator,
java.lang.String namespaceURI,
java.lang.String localName)
|
java.lang.Object |
completeRoot(java.lang.Object root,
org.jboss.xb.binding.UnmarshallingContext ctx,
java.lang.String uri,
java.lang.String name)
|
java.lang.Object |
newChild(AttributeMappings mappings,
org.jboss.xb.binding.UnmarshallingContext navigator,
java.lang.String namespaceUri,
java.lang.String localName,
org.xml.sax.Attributes attrs)
|
java.lang.Object |
newChild(ManagedBean mbean,
org.jboss.xb.binding.UnmarshallingContext navigator,
java.lang.String namespaceUri,
java.lang.String localName,
org.xml.sax.Attributes attrs)
|
java.lang.Object |
newRoot(java.lang.Object root,
org.jboss.xb.binding.UnmarshallingContext ctx,
java.lang.String namespaceURI,
java.lang.String localName,
org.xml.sax.Attributes attrs)
|
void |
setValue(AttributeMappings mappings,
org.jboss.xb.binding.UnmarshallingContext navigator,
java.lang.String namespaceUri,
java.lang.String localName,
java.lang.String value)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributeMappingsBinding
public AttributeMappingsBinding()
newRoot
public java.lang.Object newRoot(java.lang.Object root,
org.jboss.xb.binding.UnmarshallingContext ctx,
java.lang.String namespaceURI,
java.lang.String localName,
org.xml.sax.Attributes attrs)
- Specified by:
newRoot in interface org.jboss.xb.binding.ObjectModelFactory
completeRoot
public java.lang.Object completeRoot(java.lang.Object root,
org.jboss.xb.binding.UnmarshallingContext ctx,
java.lang.String uri,
java.lang.String name)
- Specified by:
completeRoot in interface org.jboss.xb.binding.ObjectModelFactory
setValue
public void setValue(AttributeMappings mappings,
org.jboss.xb.binding.UnmarshallingContext navigator,
java.lang.String namespaceUri,
java.lang.String localName,
java.lang.String value)
newChild
public java.lang.Object newChild(AttributeMappings mappings,
org.jboss.xb.binding.UnmarshallingContext navigator,
java.lang.String namespaceUri,
java.lang.String localName,
org.xml.sax.Attributes attrs)
addChild
public void addChild(AttributeMappings mappings,
ManagedBean mbean,
org.jboss.xb.binding.UnmarshallingContext navigator,
java.lang.String namespaceURI,
java.lang.String localName)
newChild
public java.lang.Object newChild(ManagedBean mbean,
org.jboss.xb.binding.UnmarshallingContext navigator,
java.lang.String namespaceUri,
java.lang.String localName,
org.xml.sax.Attributes attrs)
addChild
public void addChild(ManagedBean mbean,
MappedAttribute attribute,
org.jboss.xb.binding.UnmarshallingContext navigator,
java.lang.String namespaceURI,
java.lang.String localName)
Copyright © 2011. All Rights Reserved.