This commit is contained in:
coderfengyun 2014-03-26 09:29:40 +08:00
parent 5b3dd8049a
commit 4176d68297
12 changed files with 20 additions and 17 deletions

View File

@ -1,4 +1,4 @@
package org.bench4q.agent.plugin.result;
package org.bench4q.agent.plugin.basic;
import java.util.LinkedHashMap;
import java.util.Map;

View File

@ -1,4 +1,4 @@
package org.bench4q.agent.plugin.basic;
package org.bench4q.agent.plugin.basic.comandline;
import java.io.BufferedReader;
import java.io.InputStreamReader;
@ -6,7 +6,6 @@ import java.io.InputStreamReader;
import org.bench4q.agent.plugin.Behavior;
import org.bench4q.agent.plugin.Parameter;
import org.bench4q.agent.plugin.Plugin;
import org.bench4q.agent.plugin.result.CommandLineReturn;
import org.bench4q.agent.utils.Type.SupportTypes;
@Plugin("CommandLine")

View File

@ -1,4 +1,6 @@
package org.bench4q.agent.plugin.result;
package org.bench4q.agent.plugin.basic.comandline;
import org.bench4q.agent.plugin.basic.PluginReturn;
public class CommandLineReturn extends PluginReturn {
public CommandLineReturn(boolean success) {

View File

@ -9,7 +9,7 @@ import java.util.Random;
import org.bench4q.agent.plugin.Behavior;
import org.bench4q.agent.plugin.Parameter;
import org.bench4q.agent.plugin.Plugin;
import org.bench4q.agent.plugin.result.HttpReturn;
import org.bench4q.agent.plugin.basic.http.HttpReturn;
import org.bench4q.agent.utils.Type.SupportTypes;
@Plugin("Hbase")

View File

@ -32,7 +32,6 @@ import org.apache.commons.httpclient.methods.StringRequestEntity;
import org.bench4q.agent.plugin.Behavior;
import org.bench4q.agent.plugin.Parameter;
import org.bench4q.agent.plugin.Plugin;
import org.bench4q.agent.plugin.result.HttpReturn;
import org.bench4q.agent.utils.ParameterParser;
import org.bench4q.agent.utils.Type.SupportTypes;
import org.bench4q.agent.utils.types.Table;

View File

@ -1,8 +1,9 @@
package org.bench4q.agent.plugin.result;
package org.bench4q.agent.plugin.basic.http;
import java.util.Map;
import org.apache.commons.httpclient.Header;
import org.bench4q.agent.plugin.basic.PluginReturn;
/***
* the contentLength's unit is Byte

View File

@ -1,9 +1,8 @@
package org.bench4q.agent.plugin.basic;
package org.bench4q.agent.plugin.basic.log;
import org.bench4q.agent.plugin.Behavior;
import org.bench4q.agent.plugin.Parameter;
import org.bench4q.agent.plugin.Plugin;
import org.bench4q.agent.plugin.result.LogReturn;
import org.bench4q.agent.utils.Type.SupportTypes;
@Plugin("Log")

View File

@ -1,4 +1,6 @@
package org.bench4q.agent.plugin.result;
package org.bench4q.agent.plugin.basic.log;
import org.bench4q.agent.plugin.basic.PluginReturn;
public class LogReturn extends PluginReturn {
public LogReturn(boolean success) {

View File

@ -1,10 +1,9 @@
package org.bench4q.agent.plugin.basic;
package org.bench4q.agent.plugin.basic.timer;
import org.apache.log4j.Logger;
import org.bench4q.agent.plugin.Behavior;
import org.bench4q.agent.plugin.Parameter;
import org.bench4q.agent.plugin.Plugin;
import org.bench4q.agent.plugin.result.TimerReturn;
import org.bench4q.agent.utils.Type.SupportTypes;
@Plugin("ConstantTimer")

View File

@ -1,4 +1,6 @@
package org.bench4q.agent.plugin.result;
package org.bench4q.agent.plugin.basic.timer;
import org.bench4q.agent.plugin.basic.PluginReturn;
/**
*

View File

@ -11,8 +11,8 @@ import org.bench4q.agent.helper.ApplicationContextHelper;
import org.bench4q.agent.parameterization.SessionObject;
import org.bench4q.agent.plugin.Plugin;
import org.bench4q.agent.plugin.PluginManager;
import org.bench4q.agent.plugin.result.HttpReturn;
import org.bench4q.agent.plugin.result.PluginReturn;
import org.bench4q.agent.plugin.basic.PluginReturn;
import org.bench4q.agent.plugin.basic.http.HttpReturn;
import org.bench4q.agent.scenario.behavior.Behavior;
public class Worker implements Runnable {

View File

@ -4,9 +4,9 @@ import java.util.Map;
import org.apache.commons.httpclient.Cookie;
import org.apache.commons.httpclient.cookie.MalformedCookieException;
import org.bench4q.agent.plugin.basic.PluginReturn;
import org.bench4q.agent.plugin.basic.http.HttpPlugin;
import org.bench4q.agent.plugin.result.HttpReturn;
import org.bench4q.agent.plugin.result.PluginReturn;
import org.bench4q.agent.plugin.basic.http.HttpReturn;
import org.bench4q.share.helper.TestHelper;
import org.junit.Test;