Search in sources :

Example 1 with NetworkMetrics

use of org.apache.geode.management.NetworkMetrics in project geode by apache.

the class DistributedSystemBridge method showNetworkMetric.

public NetworkMetrics showNetworkMetric(String member) throws Exception {
    MemberMXBean bean = validateMember(member);
    NetworkMetrics nm = new NetworkMetrics();
    nm.setBytesReceivedRate(bean.getBytesReceivedRate());
    nm.setBytesSentRate(bean.getBytesSentRate());
    return nm;
}
Also used : NetworkMetrics(org.apache.geode.management.NetworkMetrics) MemberMXBean(org.apache.geode.management.MemberMXBean)

Aggregations

MemberMXBean (org.apache.geode.management.MemberMXBean)1 NetworkMetrics (org.apache.geode.management.NetworkMetrics)1