Examples of DestMetricsDTO


Examples of org.apache.activemq.apollo.dto.DestMetricsDTO

        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 ) {
View Full Code Here

Examples of org.apache.activemq.apollo.dto.DestMetricsDTO

        }
        return metrics;
    }

    public long getInflightCount(Object broker, Destination destination) {
        DestMetricsDTO metrics = getMetrics((Broker) broker, destination);
        if( metrics==null ) {
            return 0;
        }
        return metrics.queue_size;
    }
View Full Code Here

Examples of org.apache.activemq.apollo.dto.DestMetricsDTO

        }
        return metrics.queue_size;
    }

    public long getDequeueCount(Object broker, Destination destination) {
        DestMetricsDTO metrics = getMetrics((Broker) broker, destination);
        if( metrics==null ) {
            return 0;
        }
        return metrics.dequeue_item_counter;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.