add support for monitorResults
This commit is contained in:
parent
f5f4987ad2
commit
b25ccc5c7d
|
@ -1,58 +1,43 @@
|
|||
package org.bench4q.share.models.master;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import org.bench4q.share.models.monitor.LogicalDiskModel;
|
||||
|
||||
/**
|
||||
* When asked for logicalDisk, this model will be response
|
||||
*
|
||||
* @author coderfengyun
|
||||
*
|
||||
*/
|
||||
@XmlRootElement(name = "MonitorLogicalDiskResponseModel")
|
||||
public class MonitorLogicalDiskResponseModel {
|
||||
private boolean success;
|
||||
private String failCause;
|
||||
private LogicalDiskModel logicalDiskModel;
|
||||
private Date createDatetime;
|
||||
|
||||
@XmlElement(name = "success")
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
@XmlElement(name = "failCause")
|
||||
public String getFailCause() {
|
||||
return failCause;
|
||||
}
|
||||
|
||||
public void setFailCause(String failCause) {
|
||||
this.failCause = failCause;
|
||||
}
|
||||
|
||||
@XmlElement
|
||||
public LogicalDiskModel getLogicalDiskModel() {
|
||||
return logicalDiskModel;
|
||||
}
|
||||
|
||||
public void setLogicalDiskModel(LogicalDiskModel logicalDiskModel) {
|
||||
this.logicalDiskModel = logicalDiskModel;
|
||||
}
|
||||
|
||||
public Date getCreateDatetime() {
|
||||
return createDatetime;
|
||||
}
|
||||
|
||||
public void setCreateDatetime(Date createDatetime) {
|
||||
this.createDatetime = createDatetime;
|
||||
}
|
||||
|
||||
}
|
||||
package org.bench4q.share.models.master;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlElementWrapper;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import org.bench4q.share.models.master.statistics.SampleModel;
|
||||
import org.bench4q.share.models.monitor.LogicalDiskModel;
|
||||
|
||||
/**
|
||||
* When asked for logicalDisk, this model will be response
|
||||
*
|
||||
* @author coderfengyun
|
||||
*
|
||||
*/
|
||||
@XmlRootElement(name = "MonitorLogicalDiskResponseModel")
|
||||
public class MonitorLogicalDiskResponseModel implements MonitorResultBase {
|
||||
private List<LogicalDiskModel> logicalDiskModels;
|
||||
|
||||
@XmlElementWrapper
|
||||
@XmlElement(name = "logicalDiskModel")
|
||||
public List<LogicalDiskModel> getLogicalDiskModels() {
|
||||
return logicalDiskModels;
|
||||
}
|
||||
|
||||
public void setLogicalDiskModels(List<LogicalDiskModel> logicalDiskModels) {
|
||||
this.logicalDiskModels = logicalDiskModels;
|
||||
}
|
||||
|
||||
public MonitorLogicalDiskResponseModel() {
|
||||
this.setLogicalDiskModels(new ArrayList<LogicalDiskModel>());
|
||||
}
|
||||
|
||||
public void add(SampleModel model) {
|
||||
if (model instanceof LogicalDiskModel) {
|
||||
this.getLogicalDiskModels().add((LogicalDiskModel) model);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,58 +1,43 @@
|
|||
package org.bench4q.share.models.master;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import org.bench4q.share.models.monitor.MemoryModel;
|
||||
|
||||
/**
|
||||
* When asked for memory, this will be response
|
||||
*
|
||||
* @author coderfengyun
|
||||
*
|
||||
*/
|
||||
@XmlRootElement(name = "MonitorMemoryResponseModel")
|
||||
public class MonitorMemoryResponseModel {
|
||||
private boolean success;
|
||||
private String failCause;
|
||||
private MemoryModel memoryModel;
|
||||
private Date createDatetime;
|
||||
|
||||
@XmlElement
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
@XmlElement
|
||||
public String getFailCause() {
|
||||
return failCause;
|
||||
}
|
||||
|
||||
public void setFailCause(String failCause) {
|
||||
this.failCause = failCause;
|
||||
}
|
||||
|
||||
@XmlElement
|
||||
public MemoryModel getMemoryModel() {
|
||||
return memoryModel;
|
||||
}
|
||||
|
||||
public void setMemoryModel(MemoryModel memoryModel) {
|
||||
this.memoryModel = memoryModel;
|
||||
}
|
||||
|
||||
public Date getCreateDatetime() {
|
||||
return createDatetime;
|
||||
}
|
||||
|
||||
public void setCreateDatetime(Date createDatetime) {
|
||||
this.createDatetime = createDatetime;
|
||||
}
|
||||
|
||||
}
|
||||
package org.bench4q.share.models.master;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlElementWrapper;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import org.bench4q.share.models.master.statistics.SampleModel;
|
||||
import org.bench4q.share.models.monitor.MemoryModel;
|
||||
|
||||
/**
|
||||
* When asked for memory, this will be response
|
||||
*
|
||||
* @author coderfengyun
|
||||
*
|
||||
*/
|
||||
@XmlRootElement(name = "MonitorMemoryResponseModel")
|
||||
public class MonitorMemoryResponseModel implements MonitorResultBase {
|
||||
private List<MemoryModel> memoryModels;
|
||||
|
||||
@XmlElementWrapper
|
||||
@XmlElement(name = "memoryModel")
|
||||
public List<MemoryModel> getMemoryModels() {
|
||||
return memoryModels;
|
||||
}
|
||||
|
||||
public void setMemoryModels(List<MemoryModel> memoryModels) {
|
||||
this.memoryModels = memoryModels;
|
||||
}
|
||||
|
||||
public MonitorMemoryResponseModel() {
|
||||
this.setMemoryModels(new ArrayList<MemoryModel>());
|
||||
}
|
||||
|
||||
public void add(SampleModel model) {
|
||||
if (model instanceof MemoryModel) {
|
||||
this.getMemoryModels().add((MemoryModel) model);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,57 +1,42 @@
|
|||
package org.bench4q.share.models.master;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import org.bench4q.share.models.monitor.NetworkInterfaceModel;
|
||||
|
||||
/**
|
||||
* When asked for network, this will be response
|
||||
*
|
||||
* @author coderfengyun
|
||||
*
|
||||
*/
|
||||
@XmlRootElement
|
||||
public class MonitorNetworkReponseModel {
|
||||
private boolean success;
|
||||
private String failCause;
|
||||
private NetworkInterfaceModel model;
|
||||
private Date createDatetime;
|
||||
|
||||
@XmlElement
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
@XmlElement
|
||||
public String getFailCause() {
|
||||
return failCause;
|
||||
}
|
||||
|
||||
public void setFailCause(String failCause) {
|
||||
this.failCause = failCause;
|
||||
}
|
||||
|
||||
@XmlElement
|
||||
public NetworkInterfaceModel getModel() {
|
||||
return model;
|
||||
}
|
||||
|
||||
public void setModel(NetworkInterfaceModel model) {
|
||||
this.model = model;
|
||||
}
|
||||
|
||||
public Date getCreateDatetime() {
|
||||
return createDatetime;
|
||||
}
|
||||
|
||||
public void setCreateDatetime(Date createDatetime) {
|
||||
this.createDatetime = createDatetime;
|
||||
}
|
||||
}
|
||||
package org.bench4q.share.models.master;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlElementWrapper;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import org.bench4q.share.models.master.statistics.SampleModel;
|
||||
import org.bench4q.share.models.monitor.NetworkInterfaceModel;
|
||||
|
||||
/**
|
||||
* When asked for network, this will be response
|
||||
*
|
||||
* @author coderfengyun
|
||||
*
|
||||
*/
|
||||
@XmlRootElement
|
||||
public class MonitorNetworkReponseModel implements MonitorResultBase {
|
||||
private List<NetworkInterfaceModel> models;
|
||||
|
||||
@XmlElementWrapper
|
||||
@XmlElement(name = "networkInterface")
|
||||
public List<NetworkInterfaceModel> getModels() {
|
||||
return models;
|
||||
}
|
||||
|
||||
public void setModels(List<NetworkInterfaceModel> models) {
|
||||
this.models = models;
|
||||
}
|
||||
|
||||
public MonitorNetworkReponseModel() {
|
||||
this.setModels(new ArrayList<NetworkInterfaceModel>());
|
||||
}
|
||||
|
||||
public void add(SampleModel model) {
|
||||
if (model instanceof NetworkInterfaceModel) {
|
||||
this.getModels().add((NetworkInterfaceModel) model);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,58 +1,42 @@
|
|||
package org.bench4q.share.models.master;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import org.bench4q.share.models.monitor.ProcessorModel;
|
||||
|
||||
/**
|
||||
* when asked for processor, this will be response
|
||||
*
|
||||
* @author coderfengyun
|
||||
*
|
||||
*/
|
||||
@XmlRootElement
|
||||
public class MonitorProcessorResponseModel {
|
||||
private boolean success;
|
||||
private String failCause;
|
||||
private ProcessorModel processorModel;
|
||||
private Date createDatetime;
|
||||
|
||||
@XmlElement
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
@XmlElement
|
||||
public String getFailCause() {
|
||||
return failCause;
|
||||
}
|
||||
|
||||
public void setFailCause(String failCause) {
|
||||
this.failCause = failCause;
|
||||
}
|
||||
|
||||
@XmlElement
|
||||
public ProcessorModel getProcessorModel() {
|
||||
return processorModel;
|
||||
}
|
||||
|
||||
public void setProcessorModel(ProcessorModel processorModel) {
|
||||
this.processorModel = processorModel;
|
||||
}
|
||||
|
||||
public Date getCreateDatetime() {
|
||||
return createDatetime;
|
||||
}
|
||||
|
||||
public void setCreateDatetime(Date createDatetime) {
|
||||
this.createDatetime = createDatetime;
|
||||
}
|
||||
|
||||
}
|
||||
package org.bench4q.share.models.master;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlElementWrapper;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import org.bench4q.share.models.master.statistics.SampleModel;
|
||||
import org.bench4q.share.models.monitor.ProcessorModel;
|
||||
|
||||
/**
|
||||
* when asked for processor, this will be response
|
||||
*
|
||||
* @author coderfengyun
|
||||
*
|
||||
*/
|
||||
@XmlRootElement
|
||||
public class MonitorProcessorResponseModel implements MonitorResultBase {
|
||||
private List<ProcessorModel> processorModels;
|
||||
|
||||
@XmlElementWrapper
|
||||
@XmlElement(name = "processorModel")
|
||||
public List<ProcessorModel> getProcessorModels() {
|
||||
return processorModels;
|
||||
}
|
||||
|
||||
public void setProcessorModels(List<ProcessorModel> processorModels) {
|
||||
this.processorModels = processorModels;
|
||||
}
|
||||
|
||||
public MonitorProcessorResponseModel() {
|
||||
this.setProcessorModels(new ArrayList<ProcessorModel>());
|
||||
}
|
||||
|
||||
public void add(SampleModel model) {
|
||||
if (model instanceof ProcessorModel) {
|
||||
this.getProcessorModels().add((ProcessorModel) model);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
package org.bench4q.share.models.master;
|
||||
|
||||
import org.bench4q.share.models.master.statistics.SampleModel;
|
||||
|
||||
public interface MonitorResultBase {
|
||||
public void add(SampleModel model);
|
||||
}
|
|
@ -1,54 +1,55 @@
|
|||
package org.bench4q.share.models.master;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class MonitorResultContainerModel {
|
||||
private List<MonitorLogicalDiskResponseModel> logicalDiskResponseModels;
|
||||
private List<MonitorMemoryResponseModel> memoryResponseModels;
|
||||
private List<MonitorProcessorResponseModel> processorResponseModels;
|
||||
private List<MonitorNetworkReponseModel> netWorkReponseModels;
|
||||
|
||||
public List<MonitorLogicalDiskResponseModel> getLogicalDiskResponseModels() {
|
||||
return logicalDiskResponseModels;
|
||||
}
|
||||
|
||||
public void setLogicalDiskResponseModels(
|
||||
List<MonitorLogicalDiskResponseModel> logicalDiskResponseModels) {
|
||||
this.logicalDiskResponseModels = logicalDiskResponseModels;
|
||||
}
|
||||
|
||||
public List<MonitorMemoryResponseModel> getMemoryResponseModels() {
|
||||
return memoryResponseModels;
|
||||
}
|
||||
|
||||
public void setMemoryResponseModels(
|
||||
List<MonitorMemoryResponseModel> memoryResponseModels) {
|
||||
this.memoryResponseModels = memoryResponseModels;
|
||||
}
|
||||
|
||||
public List<MonitorProcessorResponseModel> getProcessorResponseModels() {
|
||||
return processorResponseModels;
|
||||
}
|
||||
|
||||
public void setProcessorResponseModels(
|
||||
List<MonitorProcessorResponseModel> processorResponseModels) {
|
||||
this.processorResponseModels = processorResponseModels;
|
||||
}
|
||||
|
||||
public List<MonitorNetworkReponseModel> getNetWorkReponseModels() {
|
||||
return netWorkReponseModels;
|
||||
}
|
||||
|
||||
public void setNetWorkReponseModels(
|
||||
List<MonitorNetworkReponseModel> netWorkReponseModels) {
|
||||
this.netWorkReponseModels = netWorkReponseModels;
|
||||
}
|
||||
|
||||
public MonitorResultContainerModel() {
|
||||
this.setLogicalDiskResponseModels(new ArrayList<MonitorLogicalDiskResponseModel>());
|
||||
this.setMemoryResponseModels(new ArrayList<MonitorMemoryResponseModel>());
|
||||
this.setProcessorResponseModels(new ArrayList<MonitorProcessorResponseModel>());
|
||||
this.setNetWorkReponseModels(new ArrayList<MonitorNetworkReponseModel>());
|
||||
}
|
||||
}
|
||||
package org.bench4q.share.models.master;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.bench4q.share.models.monitor.LogicalDiskModel;
|
||||
import org.bench4q.share.models.monitor.MemoryModel;
|
||||
import org.bench4q.share.models.monitor.NetworkInterfaceModel;
|
||||
import org.bench4q.share.models.monitor.ProcessorModel;
|
||||
|
||||
public class MonitorResultContainerModel {
|
||||
private List<LogicalDiskModel> logicalDiskModels;
|
||||
private List<MemoryModel> memoryModels;
|
||||
private List<ProcessorModel> processorModels;
|
||||
private List<NetworkInterfaceModel> netWorkModels;
|
||||
|
||||
public List<LogicalDiskModel> getLogicalDiskModels() {
|
||||
return logicalDiskModels;
|
||||
}
|
||||
|
||||
public void setLogicalDiskModels(List<LogicalDiskModel> logicalDiskModels) {
|
||||
this.logicalDiskModels = logicalDiskModels;
|
||||
}
|
||||
|
||||
public List<MemoryModel> getMemoryModels() {
|
||||
return memoryModels;
|
||||
}
|
||||
|
||||
public void setMemoryModels(List<MemoryModel> memoryModels) {
|
||||
this.memoryModels = memoryModels;
|
||||
}
|
||||
|
||||
public List<ProcessorModel> getProcessorModels() {
|
||||
return processorModels;
|
||||
}
|
||||
|
||||
public void setProcessorModels(List<ProcessorModel> processorModels) {
|
||||
this.processorModels = processorModels;
|
||||
}
|
||||
|
||||
public List<NetworkInterfaceModel> getNetWorkModels() {
|
||||
return netWorkModels;
|
||||
}
|
||||
|
||||
public void setNetWorkModels(List<NetworkInterfaceModel> netWorkModels) {
|
||||
this.netWorkModels = netWorkModels;
|
||||
}
|
||||
|
||||
public MonitorResultContainerModel() {
|
||||
this.setLogicalDiskModels(new ArrayList<LogicalDiskModel>());
|
||||
this.setMemoryModels(new ArrayList<MemoryModel>());
|
||||
this.setProcessorModels(new ArrayList<ProcessorModel>());
|
||||
this.setNetWorkModels(new ArrayList<NetworkInterfaceModel>());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ import javax.xml.bind.annotation.XmlElement;
|
|||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
@XmlRootElement
|
||||
public abstract class StatisticsResultModel {
|
||||
public abstract class SampleModel {
|
||||
protected Date samplingTime;
|
||||
|
||||
@XmlElement
|
|
@ -6,7 +6,7 @@ import javax.xml.bind.annotation.XmlRootElement;
|
|||
import org.bench4q.share.models.agent.statistics.AgentBehaviorsBriefModel;
|
||||
|
||||
@XmlRootElement(name = "scriptBehaviorsBriefModel")
|
||||
public class ScriptBehaviorsBriefModel extends StatisticsResultModel {
|
||||
public class ScriptBehaviorsBriefModel extends SampleModel {
|
||||
private boolean finished;
|
||||
private AgentBehaviorsBriefModel testBehaviorsBriefModel;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ import javax.xml.bind.annotation.XmlElement;
|
|||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
@XmlRootElement
|
||||
public class ScriptBriefResultModel extends StatisticsResultModel {
|
||||
public class ScriptBriefResultModel extends SampleModel {
|
||||
private long totalSuccessCountFromBegin;
|
||||
private long totalFailCountFromBegin;
|
||||
private long averageResponseTime;
|
||||
|
|
|
@ -4,7 +4,7 @@ import javax.xml.bind.annotation.XmlElement;
|
|||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
@XmlRootElement
|
||||
public class ScriptPageBriefModel extends StatisticsResultModel {
|
||||
public class ScriptPageBriefModel extends SampleModel {
|
||||
private boolean finished;
|
||||
private long countFromBegin;
|
||||
private long maxResponseTimeFromBegin;
|
||||
|
|
|
@ -9,7 +9,7 @@ import javax.xml.bind.annotation.XmlElementWrapper;
|
|||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
@XmlRootElement
|
||||
public class ScriptPagesBriefModel extends StatisticsResultModel {
|
||||
public class ScriptPagesBriefModel extends SampleModel {
|
||||
private List<ScriptPageBriefModel> scriptPageBriefModels;
|
||||
|
||||
@XmlElementWrapper
|
||||
|
|
|
@ -1,29 +1,31 @@
|
|||
package org.bench4q.share.models.monitor;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElementWrapper;
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
@XmlRootElement(name = "LogicalDisk")
|
||||
public class LogicalDiskModel {
|
||||
|
||||
private List<LogicalDiskModelChild> logicalDiskList;
|
||||
|
||||
public LogicalDiskModel() {
|
||||
this.logicalDiskList = new ArrayList<LogicalDiskModelChild>();
|
||||
}
|
||||
|
||||
@XmlElementWrapper
|
||||
@XmlElement(name = "Instance", type = LogicalDiskModelChild.class)
|
||||
public List<LogicalDiskModelChild> getLogicalDiskList() {
|
||||
return logicalDiskList;
|
||||
}
|
||||
|
||||
public void setLogicalDiskList(
|
||||
ArrayList<LogicalDiskModelChild> logicalDiskList) {
|
||||
this.logicalDiskList = logicalDiskList;
|
||||
}
|
||||
package org.bench4q.share.models.monitor;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElementWrapper;
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import org.bench4q.share.models.master.statistics.SampleModel;
|
||||
|
||||
@XmlRootElement(name = "LogicalDisk")
|
||||
public class LogicalDiskModel extends SampleModel {
|
||||
|
||||
private List<LogicalDiskModelChild> logicalDiskList;
|
||||
|
||||
public LogicalDiskModel() {
|
||||
this.logicalDiskList = new ArrayList<LogicalDiskModelChild>();
|
||||
}
|
||||
|
||||
@XmlElementWrapper
|
||||
@XmlElement(name = "Instance", type = LogicalDiskModelChild.class)
|
||||
public List<LogicalDiskModelChild> getLogicalDiskList() {
|
||||
return logicalDiskList;
|
||||
}
|
||||
|
||||
public void setLogicalDiskList(
|
||||
ArrayList<LogicalDiskModelChild> logicalDiskList) {
|
||||
this.logicalDiskList = logicalDiskList;
|
||||
}
|
||||
}
|
|
@ -1,129 +1,159 @@
|
|||
package org.bench4q.share.models.monitor;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
@XmlRootElement
|
||||
public class LogicalDiskModelChild{
|
||||
private String instance;
|
||||
private double freeSpacePercent;
|
||||
private double freeMegabytes;
|
||||
|
||||
// <EFBFBD><EFBFBD><EFBFBD>̻<EFBFBD>ٷֱ<EFBFBD>
|
||||
private double diskTimePercent;
|
||||
private double diskReadTimePercent;
|
||||
private double diskWriteTimePercent;
|
||||
|
||||
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ<EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD>?
|
||||
private double averageDiskTransferTimeInSecond;
|
||||
private double averageDiskReadTimeInSecond;
|
||||
private double averageDiskWriteTimeInSecond;
|
||||
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֽ<EFBFBD>?
|
||||
|
||||
|
||||
private double diskBytesPerSecond;
|
||||
|
||||
private double diskReadBytesPerSecond;
|
||||
private double diskWriteBytesPerSecond;
|
||||
|
||||
// <EFBFBD><EFBFBD><EFBFBD>аٷֱ<EFBFBD>
|
||||
private double idleTimePercent;
|
||||
// ƽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>г<EFBFBD><EFBFBD><EFBFBD>?
|
||||
private double averageDiskQueueLength;
|
||||
// <EFBFBD><EFBFBD>ǰ<EFBFBD><EFBFBD><EFBFBD>г<EFBFBD><EFBFBD><EFBFBD>
|
||||
private double currentDiskQueueLength;
|
||||
public String getInstance() {
|
||||
return instance;
|
||||
}
|
||||
public void setInstance(String instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
public double getFreeSpacePercent() {
|
||||
return freeSpacePercent;
|
||||
}
|
||||
public void setFreeSpacePercent(double freeSpacePercent) {
|
||||
this.freeSpacePercent = freeSpacePercent;
|
||||
}
|
||||
public double getFreeMegabytes() {
|
||||
return freeMegabytes;
|
||||
}
|
||||
public void setFreeMegabytes(double freeMegabytes) {
|
||||
this.freeMegabytes = freeMegabytes;
|
||||
}
|
||||
public double getDiskTimePercent() {
|
||||
return diskTimePercent;
|
||||
}
|
||||
public void setDiskTimePercent(double diskTimePercent) {
|
||||
this.diskTimePercent = diskTimePercent;
|
||||
}
|
||||
public double getDiskReadTimePercent() {
|
||||
return diskReadTimePercent;
|
||||
}
|
||||
public void setDiskReadTimePercent(double diskReadTimePercent) {
|
||||
this.diskReadTimePercent = diskReadTimePercent;
|
||||
}
|
||||
public double getDiskWriteTimePercent() {
|
||||
return diskWriteTimePercent;
|
||||
}
|
||||
public void setDiskWriteTimePercent(double diskWriteTimePercent) {
|
||||
this.diskWriteTimePercent = diskWriteTimePercent;
|
||||
}
|
||||
public double getAverageDiskTransferTimeInSecond() {
|
||||
return averageDiskTransferTimeInSecond;
|
||||
}
|
||||
public void setAverageDiskTransferTimeInSecond(
|
||||
double averageDiskTransferTimeInSecond) {
|
||||
this.averageDiskTransferTimeInSecond = averageDiskTransferTimeInSecond;
|
||||
}
|
||||
public double getAverageDiskReadTimeInSecond() {
|
||||
return averageDiskReadTimeInSecond;
|
||||
}
|
||||
public void setAverageDiskReadTimeInSecond(double averageDiskReadTimeInSecond) {
|
||||
this.averageDiskReadTimeInSecond = averageDiskReadTimeInSecond;
|
||||
}
|
||||
public double getAverageDiskWriteTimeInSecond() {
|
||||
return averageDiskWriteTimeInSecond;
|
||||
}
|
||||
public void setAverageDiskWriteTimeInSecond(double averageDiskWriteTimeInSecond) {
|
||||
this.averageDiskWriteTimeInSecond = averageDiskWriteTimeInSecond;
|
||||
}
|
||||
|
||||
public double getDiskBytesPerSecond() {
|
||||
return diskBytesPerSecond;
|
||||
}
|
||||
public void setDiskBytesPerSecond(double diskBytesPerSecond) {
|
||||
this.diskBytesPerSecond = diskBytesPerSecond;
|
||||
}
|
||||
public double getDiskReadBytesPerSecond() {
|
||||
return diskReadBytesPerSecond;
|
||||
}
|
||||
public void setDiskReadBytesPerSecond(double diskReadBytesPerSecond) {
|
||||
this.diskReadBytesPerSecond = diskReadBytesPerSecond;
|
||||
}
|
||||
public double getDiskWriteBytesPerSecond() {
|
||||
return diskWriteBytesPerSecond;
|
||||
}
|
||||
public void setDiskWriteBytesPerSecond(double diskkWriteBytesPerSecond) {
|
||||
this.diskWriteBytesPerSecond = diskkWriteBytesPerSecond;
|
||||
}
|
||||
public double getIdleTimePercent() {
|
||||
return idleTimePercent;
|
||||
}
|
||||
public void setIdleTimePercent(double idleTimePercent) {
|
||||
this.idleTimePercent = idleTimePercent;
|
||||
}
|
||||
public double getAverageDiskQueueLength() {
|
||||
return averageDiskQueueLength;
|
||||
}
|
||||
public void setAverageDiskQueueLength(double averageDiskQueueLength) {
|
||||
this.averageDiskQueueLength = averageDiskQueueLength;
|
||||
}
|
||||
public double getCurrentDiskQueueLength() {
|
||||
return currentDiskQueueLength;
|
||||
}
|
||||
public void setCurrentDiskQueueLength(double currentDiskQueueLength) {
|
||||
this.currentDiskQueueLength = currentDiskQueueLength;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
package org.bench4q.share.models.monitor;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import org.bench4q.share.models.master.statistics.SampleModel;
|
||||
|
||||
@XmlRootElement
|
||||
public class LogicalDiskModelChild extends SampleModel {
|
||||
private String instance;
|
||||
private double freeSpacePercent;
|
||||
private double freeMegabytes;
|
||||
|
||||
// <EFBFBD><EFBFBD><EFBFBD>̻<EFBFBD>ٷֱ<EFBFBD>
|
||||
private double diskTimePercent;
|
||||
private double diskReadTimePercent;
|
||||
private double diskWriteTimePercent;
|
||||
|
||||
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ<EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD>?
|
||||
private double averageDiskTransferTimeInSecond;
|
||||
private double averageDiskReadTimeInSecond;
|
||||
private double averageDiskWriteTimeInSecond;
|
||||
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֽ<EFBFBD>?
|
||||
|
||||
private double diskBytesPerSecond;
|
||||
|
||||
private double diskReadBytesPerSecond;
|
||||
private double diskWriteBytesPerSecond;
|
||||
|
||||
// <EFBFBD><EFBFBD><EFBFBD>аٷֱ<EFBFBD>
|
||||
private double idleTimePercent;
|
||||
// ƽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>г<EFBFBD><EFBFBD><EFBFBD>?
|
||||
private double averageDiskQueueLength;
|
||||
// <EFBFBD><EFBFBD>ǰ<EFBFBD><EFBFBD><EFBFBD>г<EFBFBD><EFBFBD><EFBFBD>
|
||||
private double currentDiskQueueLength;
|
||||
|
||||
public String getInstance() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
public void setInstance(String instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
public double getFreeSpacePercent() {
|
||||
return freeSpacePercent;
|
||||
}
|
||||
|
||||
public void setFreeSpacePercent(double freeSpacePercent) {
|
||||
this.freeSpacePercent = freeSpacePercent;
|
||||
}
|
||||
|
||||
public double getFreeMegabytes() {
|
||||
return freeMegabytes;
|
||||
}
|
||||
|
||||
public void setFreeMegabytes(double freeMegabytes) {
|
||||
this.freeMegabytes = freeMegabytes;
|
||||
}
|
||||
|
||||
public double getDiskTimePercent() {
|
||||
return diskTimePercent;
|
||||
}
|
||||
|
||||
public void setDiskTimePercent(double diskTimePercent) {
|
||||
this.diskTimePercent = diskTimePercent;
|
||||
}
|
||||
|
||||
public double getDiskReadTimePercent() {
|
||||
return diskReadTimePercent;
|
||||
}
|
||||
|
||||
public void setDiskReadTimePercent(double diskReadTimePercent) {
|
||||
this.diskReadTimePercent = diskReadTimePercent;
|
||||
}
|
||||
|
||||
public double getDiskWriteTimePercent() {
|
||||
return diskWriteTimePercent;
|
||||
}
|
||||
|
||||
public void setDiskWriteTimePercent(double diskWriteTimePercent) {
|
||||
this.diskWriteTimePercent = diskWriteTimePercent;
|
||||
}
|
||||
|
||||
public double getAverageDiskTransferTimeInSecond() {
|
||||
return averageDiskTransferTimeInSecond;
|
||||
}
|
||||
|
||||
public void setAverageDiskTransferTimeInSecond(
|
||||
double averageDiskTransferTimeInSecond) {
|
||||
this.averageDiskTransferTimeInSecond = averageDiskTransferTimeInSecond;
|
||||
}
|
||||
|
||||
public double getAverageDiskReadTimeInSecond() {
|
||||
return averageDiskReadTimeInSecond;
|
||||
}
|
||||
|
||||
public void setAverageDiskReadTimeInSecond(
|
||||
double averageDiskReadTimeInSecond) {
|
||||
this.averageDiskReadTimeInSecond = averageDiskReadTimeInSecond;
|
||||
}
|
||||
|
||||
public double getAverageDiskWriteTimeInSecond() {
|
||||
return averageDiskWriteTimeInSecond;
|
||||
}
|
||||
|
||||
public void setAverageDiskWriteTimeInSecond(
|
||||
double averageDiskWriteTimeInSecond) {
|
||||
this.averageDiskWriteTimeInSecond = averageDiskWriteTimeInSecond;
|
||||
}
|
||||
|
||||
public double getDiskBytesPerSecond() {
|
||||
return diskBytesPerSecond;
|
||||
}
|
||||
|
||||
public void setDiskBytesPerSecond(double diskBytesPerSecond) {
|
||||
this.diskBytesPerSecond = diskBytesPerSecond;
|
||||
}
|
||||
|
||||
public double getDiskReadBytesPerSecond() {
|
||||
return diskReadBytesPerSecond;
|
||||
}
|
||||
|
||||
public void setDiskReadBytesPerSecond(double diskReadBytesPerSecond) {
|
||||
this.diskReadBytesPerSecond = diskReadBytesPerSecond;
|
||||
}
|
||||
|
||||
public double getDiskWriteBytesPerSecond() {
|
||||
return diskWriteBytesPerSecond;
|
||||
}
|
||||
|
||||
public void setDiskWriteBytesPerSecond(double diskkWriteBytesPerSecond) {
|
||||
this.diskWriteBytesPerSecond = diskkWriteBytesPerSecond;
|
||||
}
|
||||
|
||||
public double getIdleTimePercent() {
|
||||
return idleTimePercent;
|
||||
}
|
||||
|
||||
public void setIdleTimePercent(double idleTimePercent) {
|
||||
this.idleTimePercent = idleTimePercent;
|
||||
}
|
||||
|
||||
public double getAverageDiskQueueLength() {
|
||||
return averageDiskQueueLength;
|
||||
}
|
||||
|
||||
public void setAverageDiskQueueLength(double averageDiskQueueLength) {
|
||||
this.averageDiskQueueLength = averageDiskQueueLength;
|
||||
}
|
||||
|
||||
public double getCurrentDiskQueueLength() {
|
||||
return currentDiskQueueLength;
|
||||
}
|
||||
|
||||
public void setCurrentDiskQueueLength(double currentDiskQueueLength) {
|
||||
this.currentDiskQueueLength = currentDiskQueueLength;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,70 +1,73 @@
|
|||
package org.bench4q.share.models.monitor;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
@XmlRootElement(name = "Memory")
|
||||
public class MemoryModel {
|
||||
|
||||
// private double pageFaultsPerSecond;//<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӳȱҳ
|
||||
private double pagesPerSecond;
|
||||
private double pagesInputPerSecond;
|
||||
private double pagesOutputPerSecond;
|
||||
private double cacheBytes;
|
||||
private double committedBytes;// ռ<EFBFBD>õ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD><EFBFBD><EFBFBD>ֽ<EFBFBD>?
|
||||
private double availableKiloBytes;
|
||||
|
||||
@XmlElement
|
||||
public double getPagesPerSecond() {
|
||||
return pagesPerSecond;
|
||||
}
|
||||
|
||||
public void setPagesPerSecond(double pagesPerSecond) {
|
||||
this.pagesPerSecond = pagesPerSecond;
|
||||
}
|
||||
|
||||
@XmlElement
|
||||
public double getPagesInputPerSecond() {
|
||||
return pagesInputPerSecond;
|
||||
}
|
||||
|
||||
public void setPagesInputPerSecond(double pagesInputPerSecond) {
|
||||
this.pagesInputPerSecond = pagesInputPerSecond;
|
||||
}
|
||||
|
||||
@XmlElement
|
||||
public double getCacheBytes() {
|
||||
return cacheBytes;
|
||||
}
|
||||
|
||||
public void setCacheBytes(double cacheBytes) {
|
||||
this.cacheBytes = cacheBytes;
|
||||
}
|
||||
|
||||
@XmlElement
|
||||
public double getCommittedBytes() {
|
||||
return committedBytes;
|
||||
}
|
||||
|
||||
public void setCommittedBytes(double committedBytes) {
|
||||
this.committedBytes = committedBytes;
|
||||
}
|
||||
|
||||
@XmlElement
|
||||
public double getPagesOutputPerSecond() {
|
||||
return pagesOutputPerSecond;
|
||||
}
|
||||
|
||||
public void setPagesOutputPerSecond(double pagesOutputPerSecond) {
|
||||
this.pagesOutputPerSecond = pagesOutputPerSecond;
|
||||
}
|
||||
|
||||
@XmlElement
|
||||
public double getAvailableKiloBytes() {
|
||||
return availableKiloBytes;
|
||||
}
|
||||
|
||||
public void setAvailableKiloBytes(double availableKiloBytes) {
|
||||
this.availableKiloBytes = availableKiloBytes;
|
||||
}
|
||||
}
|
||||
package org.bench4q.share.models.monitor;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import org.bench4q.share.models.master.statistics.SampleModel;
|
||||
|
||||
@XmlRootElement(name = "Memory")
|
||||
public class MemoryModel extends SampleModel {
|
||||
|
||||
// private double pageFaultsPerSecond;//<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӳȱҳ
|
||||
private double pagesPerSecond;
|
||||
private double pagesInputPerSecond;
|
||||
private double pagesOutputPerSecond;
|
||||
private double cacheBytes;
|
||||
private double committedBytes;// ռ<EFBFBD>õ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD><EFBFBD><EFBFBD>ֽ<EFBFBD>?
|
||||
private double availableKiloBytes;
|
||||
|
||||
@XmlElement
|
||||
public double getPagesPerSecond() {
|
||||
return pagesPerSecond;
|
||||
}
|
||||
|
||||
public void setPagesPerSecond(double pagesPerSecond) {
|
||||
this.pagesPerSecond = pagesPerSecond;
|
||||
}
|
||||
|
||||
@XmlElement
|
||||
public double getPagesInputPerSecond() {
|
||||
return pagesInputPerSecond;
|
||||
}
|
||||
|
||||
public void setPagesInputPerSecond(double pagesInputPerSecond) {
|
||||
this.pagesInputPerSecond = pagesInputPerSecond;
|
||||
}
|
||||
|
||||
@XmlElement
|
||||
public double getCacheBytes() {
|
||||
return cacheBytes;
|
||||
}
|
||||
|
||||
public void setCacheBytes(double cacheBytes) {
|
||||
this.cacheBytes = cacheBytes;
|
||||
}
|
||||
|
||||
@XmlElement
|
||||
public double getCommittedBytes() {
|
||||
return committedBytes;
|
||||
}
|
||||
|
||||
public void setCommittedBytes(double committedBytes) {
|
||||
this.committedBytes = committedBytes;
|
||||
}
|
||||
|
||||
@XmlElement
|
||||
public double getPagesOutputPerSecond() {
|
||||
return pagesOutputPerSecond;
|
||||
}
|
||||
|
||||
public void setPagesOutputPerSecond(double pagesOutputPerSecond) {
|
||||
this.pagesOutputPerSecond = pagesOutputPerSecond;
|
||||
}
|
||||
|
||||
@XmlElement
|
||||
public double getAvailableKiloBytes() {
|
||||
return availableKiloBytes;
|
||||
}
|
||||
|
||||
public void setAvailableKiloBytes(double availableKiloBytes) {
|
||||
this.availableKiloBytes = availableKiloBytes;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,26 +1,29 @@
|
|||
package org.bench4q.share.models.monitor;
|
||||
|
||||
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlElementWrapper;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
@XmlRootElement(name = "NetworkInterface")
|
||||
public class NetworkInterfaceModel {
|
||||
private List<NetworkInterfaceModelChild> networkList;
|
||||
@XmlElementWrapper
|
||||
@XmlElement(name="Instance",type=NetworkInterfaceModelChild.class)
|
||||
public List<NetworkInterfaceModelChild> getNetworkList() {
|
||||
return networkList;
|
||||
}
|
||||
|
||||
public void setNetworkList(List<NetworkInterfaceModelChild> networkList) {
|
||||
this.networkList = networkList;
|
||||
}
|
||||
public NetworkInterfaceModel(){
|
||||
this.networkList=new ArrayList<NetworkInterfaceModelChild>();
|
||||
}
|
||||
}
|
||||
package org.bench4q.share.models.monitor;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlElementWrapper;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import org.bench4q.share.models.master.statistics.SampleModel;
|
||||
|
||||
@XmlRootElement(name = "NetworkInterface")
|
||||
public class NetworkInterfaceModel extends SampleModel {
|
||||
private List<NetworkInterfaceModelChild> networkList;
|
||||
|
||||
@XmlElementWrapper
|
||||
@XmlElement(name = "Instance", type = NetworkInterfaceModelChild.class)
|
||||
public List<NetworkInterfaceModelChild> getNetworkList() {
|
||||
return networkList;
|
||||
}
|
||||
|
||||
public void setNetworkList(List<NetworkInterfaceModelChild> networkList) {
|
||||
this.networkList = networkList;
|
||||
}
|
||||
|
||||
public NetworkInterfaceModel() {
|
||||
this.networkList = new ArrayList<NetworkInterfaceModelChild>();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,23 +1,30 @@
|
|||
package org.bench4q.share.models.monitor;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlElementWrapper;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
@XmlRootElement(name="Processor")
|
||||
public class ProcessorModel {
|
||||
private List<ProcessorModelChild> processorModelList;
|
||||
public ProcessorModel(){
|
||||
processorModelList=new ArrayList<ProcessorModelChild>();
|
||||
}
|
||||
@XmlElementWrapper
|
||||
@XmlElement(name="processorModelChild",type=ProcessorModelChild.class)
|
||||
public List<ProcessorModelChild> getProcessorModelList() {
|
||||
return processorModelList;
|
||||
}
|
||||
public void setProcessorModelList(List<ProcessorModelChild> processorModelList) {
|
||||
this.processorModelList = processorModelList;
|
||||
}
|
||||
}
|
||||
package org.bench4q.share.models.monitor;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlElementWrapper;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import org.bench4q.share.models.master.statistics.SampleModel;
|
||||
|
||||
@XmlRootElement(name = "Processor")
|
||||
public class ProcessorModel extends SampleModel {
|
||||
private List<ProcessorModelChild> processorModelList;
|
||||
|
||||
public ProcessorModel() {
|
||||
processorModelList = new ArrayList<ProcessorModelChild>();
|
||||
}
|
||||
|
||||
@XmlElementWrapper
|
||||
@XmlElement(name = "processorModelChild", type = ProcessorModelChild.class)
|
||||
public List<ProcessorModelChild> getProcessorModelList() {
|
||||
return processorModelList;
|
||||
}
|
||||
|
||||
public void setProcessorModelList(
|
||||
List<ProcessorModelChild> processorModelList) {
|
||||
this.processorModelList = processorModelList;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue