Plugin annotations and abstract classes added.
This commit is contained in:
parent
7e20158437
commit
ee57a36ba2
|
@ -0,0 +1,5 @@
|
|||
package org.bench4q.agent.plugin;
|
||||
|
||||
public abstract class AbstractControlFunction extends AbstractFunction {
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
package org.bench4q.agent.plugin;
|
||||
|
||||
public abstract class AbstractFunction {
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
package org.bench4q.agent.plugin;
|
||||
|
||||
public abstract class AbstractPlugin {
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
package org.bench4q.agent.plugin;
|
||||
|
||||
public abstract class AbstractSampleFunction extends AbstractFunction {
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
package org.bench4q.agent.plugin;
|
||||
|
||||
public abstract class AbstractTestFunction extends AbstractFunction {
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
package org.bench4q.agent.plugin;
|
||||
|
||||
public abstract class AbstractTimerFunction extends AbstractFunction {
|
||||
|
||||
}
|
|
@ -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();
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
package org.bench4q.agent.plugin.annotation;
|
||||
|
||||
public enum FunctionType {
|
||||
Sample, Test, Timer, Control
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package org.bench4q.agent.plugin.annotation;
|
||||
|
||||
public @interface Parameter {
|
||||
String name();
|
||||
|
||||
String type();
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
package org.bench4q.agent.plugin.annotation;
|
||||
|
||||
public @interface Plugin {
|
||||
String id();
|
||||
|
||||
String name();
|
||||
|
||||
Parameter[] parameters();
|
||||
|
||||
String help();
|
||||
}
|
Loading…
Reference in New Issue