add diskTotalKBytesRate to fileSystemModel

This commit is contained in:
fanfuxiaoran 2014-03-06 11:38:14 +08:00
parent cc2fbb0bed
commit 1b392db925
2 changed files with 19 additions and 1 deletions

View File

@ -15,7 +15,15 @@ public class FileSystemModel extends SampleModel{
private double usedGB;
private double freeGB;
private double usedPercent;
private double diskTotalKBytesRate;
@XmlElement
public double getDiskTotalKBytesRate() {
return diskTotalKBytesRate;
}
public void setDiskTotalKBytesRate(double diskTotalKBytesRate) {
this.diskTotalKBytesRate = diskTotalKBytesRate;
}
@XmlElement
public String getFileDir() {
return fileDir;

View File

@ -9,7 +9,7 @@ import org.bench4q.share.models.master.statistics.SampleModel;
import java.util.List;
@XmlRootElement(name = "PhysicalDisk")
public class PhysicalDiskModel extends SampleModel{
public class PhysicalDiskModel extends SampleModel {
private Double diskReadKBytesRate;
private Double diskWriteKBytesRate;
private double curDiskQueLength;
@ -18,6 +18,7 @@ public class PhysicalDiskModel extends SampleModel{
private double freeGB;
private double usedPercent;
private List<FileSystemModel> fieFileSystemModels;
private double diskTotalKBytesRate;
// private Logger logger = Logger.getLogger(PhysicalDiskModel.class);
@ -98,4 +99,13 @@ public class PhysicalDiskModel extends SampleModel{
this.usedPercent = usedPercent;
}
@XmlElement
public double getDiskTotalKBytesRate() {
return diskTotalKBytesRate;
}
public void setDiskTotalKBytesRate(double diskTotalKBytesRate) {
this.diskTotalKBytesRate = diskTotalKBytesRate;
}
}