Package kafka.network

Examples of kafka.network.SocketServerStatsMBean


 
  public SocketServerStatsMBean createSocketMbean() throws Exception
  {
    ObjectName mbeanName = new ObjectName("kafka:type=kafka.SocketServerStats");
    SocketServerStatsMBean stats = JMX.newMBeanProxy(getMbeanConnection(), mbeanName, SocketServerStatsMBean.class, true);
    return stats;
  }
View Full Code Here


  }
 
  public String getBrokerStats() throws Exception
  {
    StringBuffer buf = new StringBuffer();
    SocketServerStatsMBean stats = createSocketMbean();
    buf.append(stats.getBytesWrittenPerSecond() / (1024 *1024+ "," +  stats.getBytesReadPerSecond()  / (1024 *1024) );
    return buf.toString();
  }
View Full Code Here

TOP

Related Classes of kafka.network.SocketServerStatsMBean

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.