InetSocketAddress address = (InetSocketAddress) b.get_socket_address();
return address.getPort();
}
public DestMetricsDTO getMetrics(Broker broker, Destination destination) {
DestMetricsDTO metrics = null;
switch (DestinationType.of(destination)) {
case QUEUE_TYPE:
case TEMP_QUEUE_TYPE:{
QueueStatusDTO dto = BrokerTestSupport.queue_status((Broker) broker, name(destination));
if( dto != null ) {