Plugin annotations and abstract classes added.

This commit is contained in:
Zhen Tang 2013-06-26 00:06:05 +08:00
parent 7e20158437
commit ee57a36ba2
10 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,5 @@
package org.bench4q.agent.plugin;
public abstract class AbstractControlFunction extends AbstractFunction {
}

View File

@ -0,0 +1,5 @@
package org.bench4q.agent.plugin;
public abstract class AbstractFunction {
}

View File

@ -0,0 +1,5 @@
package org.bench4q.agent.plugin;
public abstract class AbstractPlugin {
}

View File

@ -0,0 +1,5 @@
package org.bench4q.agent.plugin;
public abstract class AbstractSampleFunction extends AbstractFunction {
}

View File

@ -0,0 +1,5 @@
package org.bench4q.agent.plugin;
public abstract class AbstractTestFunction extends AbstractFunction {
}

View File

@ -0,0 +1,5 @@
package org.bench4q.agent.plugin;
public abstract class AbstractTimerFunction extends AbstractFunction {
}

View File

@ -0,0 +1,16 @@
package org.bench4q.agent.plugin.annotation;
public @interface Function {
String name();
Class<?> plugin();
int number();
FunctionType functionType();
Parameter[] parameters();
String help();
}

View File

@ -0,0 +1,5 @@
package org.bench4q.agent.plugin.annotation;
public enum FunctionType {
Sample, Test, Timer, Control
}

View File

@ -0,0 +1,7 @@
package org.bench4q.agent.plugin.annotation;
public @interface Parameter {
String name();
String type();
}

View File

@ -0,0 +1,11 @@
package org.bench4q.agent.plugin.annotation;
public @interface Plugin {
String id();
String name();
Parameter[] parameters();
String help();
}