Class ObjectNameWrapper
- java.lang.Object
-
- org.opennms.netmgt.poller.jmx.wrappers.AbstractWrapper
-
- org.opennms.netmgt.poller.jmx.wrappers.ObjectNameWrapper
-
public class ObjectNameWrapper extends AbstractWrapper
A Wrapper for a JMX Object Name used in JEXL expressions.
-
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.poller.jmx.wrappers.AbstractWrapper
connection
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ObjectNameWrapper
create(MBeanServerConnection connection, String objectNameString)
static ObjectNameWrapper
create(MBeanServerConnection connection, ObjectName objectName)
Object
get(String attributeName)
Get the value of the requested attribute.-
Methods inherited from class org.opennms.netmgt.poller.jmx.wrappers.AbstractWrapper
wrap
-
-
-
-
Method Detail
-
get
public Object get(String attributeName)
Description copied from class:AbstractWrapper
Get the value of the requested attribute. Implementors should wrap the result using theAbstractWrapper.wrap(Object)
method.- Specified by:
get
in classAbstractWrapper
- Parameters:
attributeName
- the name of the requested attribute- Returns:
- the value
-
create
public static ObjectNameWrapper create(MBeanServerConnection connection, ObjectName objectName)
-
create
public static ObjectNameWrapper create(MBeanServerConnection connection, String objectNameString)
-
-