7879808182838485868788
if (destination.getDomain() == Domain.QUEUE.getId()) { synchronized (this) { final BrokerEvent clientStats = getBrokerClient().getClientStatsById(getRealDestinationName(destination)); final BrokerField field = clientStats.getField(QUEUE_LENGTH_FIELD) ; return Integer.parseInt(field.value.toString()) ; } } else
157158159160161162163164165166167
String[] fieldNames = clientStats.getFieldNames(null) ; for (int i = 0 ; i < fieldNames.length ; i++) { BrokerField field = clientStats.getField(fieldNames[i]) ; if (field.value != null) { rval.put(fieldNames[i], field.value.toString()) ; }