Package org.apache.servicemix.jbi.messaging

Examples of org.apache.servicemix.jbi.messaging.MessagingStats


        this.component = component;
        this.description = description;
        this.binding = binding;
        this.service = service;
        this.componentStatsMBean = new ComponentStats(this);
        this.messagingStats = new MessagingStats(name.getName());
        this.sharedLibraries = sharedLibraries;
    }
View Full Code Here


                    FileOutputStream fileOut = new FileOutputStream(statsFile);
                    statsWriter = new PrintWriter(fileOut, true);
                    statsWriter.println(localConnector.getComponentNameSpace().getName() + ":");
                    statsWriter.println("inboundExchanges,inboundExchangeRate,outboundExchanges,outboundExchangeRate");
                }
                MessagingStats stats = localConnector.getMessagingStats();
                long inbound = stats.getInboundExchanges().getCount();
                double inboundRate = stats.getInboundExchangeRate().getAveragePerSecond();
                long outbound = stats.getOutboundExchanges().getCount();
                double outboundRate = stats.getOutboundExchangeRate().getAveragePerSecond();
                statsWriter.println(inbound + "," + inboundRate + "," + outbound + "," + outboundRate);
            }
            catch (IOException e) {
                log.warn("Failed to dump stats", e);
            }
View Full Code Here

TOP

Related Classes of org.apache.servicemix.jbi.messaging.MessagingStats

Copyright © 2018 www.massapicom. 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.