Retrieves single instance of wdr.control.JMXMBean matching specified criteria. Raises an exception if there are multiple matches. Value of None is returned if to MBeans match specified criteria.

getJMXMBean( [<domain>,] <criteria> )

Arguments

domain

JMX domain being searched; optional argument, defauts to value of ‘WebSphere’; in most of the cases you can skip this argument and rely on the default value

criteria

list of key/value pairs

Result

Instance of (wdr.control.JMXMBean.class.html) or value of None.

Examples

srv = getJMXMBean(type='Server', name='dmgr')
print srv.state
STARTED

See also