add filteredTypes to RunScenarioModel

This commit is contained in:
hmm 2014-09-01 14:46:36 +08:00
parent 6954a15bf4
commit 50de7f9815
3 changed files with 22 additions and 0 deletions

View File

@ -15,6 +15,7 @@ public class RunScenarioModel {
private int poolSize; private int poolSize;
private List<UsePluginModel> usePlugins; private List<UsePluginModel> usePlugins;
private List<PageModel> pages; private List<PageModel> pages;
private List<String> filteredTypes;
@XmlElement @XmlElement
public int getPoolSize() { public int getPoolSize() {
@ -49,4 +50,14 @@ public class RunScenarioModel {
this.setUsePlugins(new LinkedList<UsePluginModel>()); this.setUsePlugins(new LinkedList<UsePluginModel>());
this.setPages(new LinkedList<PageModel>()); this.setPages(new LinkedList<PageModel>());
} }
@XmlElementWrapper(name = "filteredTypes")
@XmlElement(name = "filteredType")
public List<String> getFilteredTypes() {
return filteredTypes;
}
public void setFilteredTypes(List<String> filteredTypes) {
this.filteredTypes = filteredTypes;
}
} }

View File

@ -19,6 +19,7 @@ public class OperateScriptServerResponseModel {
private int port; private int port;
private String fileName; private String fileName;
private List<ScriptModel> scriptModels; private List<ScriptModel> scriptModels;
private String[] filterTypeList;
@XmlElement @XmlElement
public boolean isSuccess() { public boolean isSuccess() {
@ -74,4 +75,13 @@ public class OperateScriptServerResponseModel {
this.scriptModels = scriptModels; this.scriptModels = scriptModels;
} }
@XmlElement
public String[] getFilterTypeList() {
return filterTypeList;
}
public void setFilterTypeList(String[] filterTypeList) {
this.filterTypeList = filterTypeList;
}
} }

View File

@ -1,6 +1,7 @@
package org.bench4q.share.models.master; package org.bench4q.share.models.master;
import java.util.Date; import java.util.Date;
import java.util.List;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlRootElement;