mbeans
Constructs list of wdr.control.MBean object from multi-line string representation of MBean ObjectNames. Each line in the string contains one ObjectName.
mbeans( objectNames )
This function comes helpful when mixing classic wsadmin code with WDR-based code. JMX ObjectNames obtained by wsadmin AdminControl.queryNames
or by other means can be easily converted into list of wdr.control.MBean objects.
Arguments
objectNames
multi-line string representation of ObjectName
Result
list of wdr.control.MBean instances
Examples
# objectName variable will contain a multi-line string where each
# line represents ObjectName of a Server
objectNames = AdminControl.queryNames('WebSphere:*,type=Server')
for srv in mbeans(objectNames):
print srv.name, ': ', srv.state