Change the AverageDiskBytesPerTransfer(Read,Write) to

DiskBytesPerSecond(Read,Write)
This commit is contained in:
fanfuxiaoran 2013-08-16 16:16:56 +08:00
parent 4f615ec810
commit 0ff05255d5
2 changed files with 22 additions and 18 deletions

View File

@ -18,9 +18,12 @@ public class LogicalDiskModelChild{
private double averageDiskReadTimeInSecond; private double averageDiskReadTimeInSecond;
private double averageDiskWriteTimeInSecond; private double averageDiskWriteTimeInSecond;
// 磁盘平均处理的字节 // 磁盘平均处理的字节
private double averageDiskBytesPerTransfer;// ¿É¼ÆËãÍÌÍÂÂÊ
private double averageDiskBytesPerRead;
private double averageDiskBytesPerWrite; private double diskBytesPerSecond;
private double diskReadBytesPerSecond;
private double diskkWriteBytesPerSecond;
// 空闲百分比 // 空闲百分比
private double idleTimePercent; private double idleTimePercent;
@ -83,23 +86,24 @@ public class LogicalDiskModelChild{
public void setAverageDiskWriteTimeInSecond(double averageDiskWriteTimeInSecond) { public void setAverageDiskWriteTimeInSecond(double averageDiskWriteTimeInSecond) {
this.averageDiskWriteTimeInSecond = averageDiskWriteTimeInSecond; this.averageDiskWriteTimeInSecond = averageDiskWriteTimeInSecond;
} }
public double getAverageDiskBytesPerTransfer() {
return averageDiskBytesPerTransfer; public double getDiskBytesPerSecond() {
return diskBytesPerSecond;
} }
public void setAverageDiskBytesPerTransfer(double averageDiskBytesPerTransfer) { public void setDiskBytesPerSecond(double diskBytesPerSecond) {
this.averageDiskBytesPerTransfer = averageDiskBytesPerTransfer; this.diskBytesPerSecond = diskBytesPerSecond;
} }
public double getAverageDiskBytesPerRead() { public double getDiskReadBytesPerSecond() {
return averageDiskBytesPerRead; return diskReadBytesPerSecond;
} }
public void setAverageDiskBytesPerRead(double averageDiskBytesPerRead) { public void setDiskReadBytesPerSecond(double diskReadBytesPerSecond) {
this.averageDiskBytesPerRead = averageDiskBytesPerRead; this.diskReadBytesPerSecond = diskReadBytesPerSecond;
} }
public double getAverageDiskBytesPerWrite() { public double getDiskkWriteBytesPerSecond() {
return averageDiskBytesPerWrite; return diskkWriteBytesPerSecond;
} }
public void setAverageDiskBytesPerWrite(double averageDiskBytesPerWrite) { public void setDiskkWriteBytesPerSecond(double diskkWriteBytesPerSecond) {
this.averageDiskBytesPerWrite = averageDiskBytesPerWrite; this.diskkWriteBytesPerSecond = diskkWriteBytesPerSecond;
} }
public double getIdleTimePercent() { public double getIdleTimePercent() {
return idleTimePercent; return idleTimePercent;

View File

@ -28,9 +28,9 @@ public class LogicalDiskServiceWindows {
LogicalDiskModelChild logicalDiskModelChild=new LogicalDiskModelChild(); LogicalDiskModelChild logicalDiskModelChild=new LogicalDiskModelChild();
logicalDiskModelChild.setInstance(elem); logicalDiskModelChild.setInstance(elem);
logicalDiskModelChild.setAverageDiskBytesPerRead(this.getLogicalDiskMonitor().getAverageDiskBytesPerRead(elem, idleTime)); logicalDiskModelChild.setDiskBytesPerSecond(this.getLogicalDiskMonitor().getDiskBytesPerSecond(elem, idleTime));
logicalDiskModelChild.setAverageDiskBytesPerTransfer(this.getLogicalDiskMonitor().getAverageDiskBytesPerTransfer(elem, idleTime)); logicalDiskModelChild.setDiskkWriteBytesPerSecond(this.getLogicalDiskMonitor().getDiskWriteBytesPerSecond(elem, idleTime));
logicalDiskModelChild.setAverageDiskBytesPerWrite(this.getLogicalDiskMonitor().getAverageDiskBytesPerWrite(elem, idleTime)); logicalDiskModelChild.setDiskReadBytesPerSecond(this.getLogicalDiskMonitor().getDiskReadsPerSecond(elem, idleTime));
logicalDiskModelChild.setAverageDiskQueueLength(this.getLogicalDiskMonitor().getAverageDiskQueueLength(elem, idleTime)); logicalDiskModelChild.setAverageDiskQueueLength(this.getLogicalDiskMonitor().getAverageDiskQueueLength(elem, idleTime));
logicalDiskModelChild.setAverageDiskReadTimeInSecond(this.getLogicalDiskMonitor().getAverageDiskReadQueueLength(elem, idleTime)); logicalDiskModelChild.setAverageDiskReadTimeInSecond(this.getLogicalDiskMonitor().getAverageDiskReadQueueLength(elem, idleTime));