String [] targets = getTargets();
if ( targets.length == 0 )
{
targets = ALL_TARGET;
}
final InvokeResult [] results = getProxy().mbeanInvoke( "list", "true", targets);
if ( results.length == 0 )
{
println( "No objects match the targets " + SmartStringifier.toString( targets ) );
}
else
{
final InvokeResultIteratorStringifier s = new InvokeResultIteratorStringifier( "\n" );
println( s.stringify( Arrays.asList( results ).iterator() ) );
}