Retrieves single instance of wdr.control.MBean matching specified criteria. Value of None is returned if to MBeans match specified criteria.

getMBean( [<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.MBean or value of None.

Examples

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

See also