Search in sources :

Example 1 with DiskMetrics

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

the class DistributedSystemBridge method showDiskMetrics.

public DiskMetrics showDiskMetrics(String member) throws Exception {
    MemberMXBean bean = validateMember(member);
    DiskMetrics dm = new DiskMetrics();
    dm.setDiskReadsRate(bean.getDiskReadsRate());
    dm.setDiskWritesRate(bean.getDiskWritesRate());
    dm.setTotalBackupInProgress(bean.getTotalBackupInProgress());
    dm.setTotalBackupCompleted(bean.getTotalBackupCompleted());
    dm.setDiskFlushAvgLatency(bean.getDiskFlushAvgLatency());
    dm.setTotalBytesOnDisk(bean.getTotalDiskUsage());
    return dm;
}
Also used : DiskMetrics(org.apache.geode.management.DiskMetrics) MemberMXBean(org.apache.geode.management.MemberMXBean)

Aggregations

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