Class DslBackendListener.BackendListenerCodeBuilder
- java.lang.Object
-
- us.abstracta.jmeter.javadsl.codegeneration.MethodCallBuilder
-
- us.abstracta.jmeter.javadsl.core.listeners.DslBackendListener.BackendListenerCodeBuilder
-
- Direct Known Subclasses:
GraphiteBackendListener.CodeBuilder,InfluxDbBackendListener.CodeBuilder
- Enclosing class:
- DslBackendListener<T extends DslBackendListener<T>>
protected abstract static class DslBackendListener.BackendListenerCodeBuilder extends MethodCallBuilder
-
-
Field Summary
-
Fields inherited from class us.abstracta.jmeter.javadsl.codegeneration.MethodCallBuilder
builderMethods
-
-
Constructor Summary
Constructors Constructor Description BackendListenerCodeBuilder(Class<? extends org.apache.jmeter.visualizers.backend.BackendListenerClient> backendListenerClass, List<Method> builderMethods)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected MethodParambuildArgParam(String argName, Map<String,String> args, Map<String,String> defaultArgs)protected abstract MethodCallbuildBackendListenerCall(Map<String,String> args, Map<String,String> defaultValues)protected MethodCallbuildMethodCall(MethodCallContext context)Generates the method call instance for the particular DSL test element.booleanmatches(MethodCallContext context)Allows checking if this builder can build method calls for the given context.-
Methods inherited from class us.abstracta.jmeter.javadsl.codegeneration.MethodCallBuilder
buildMethodCall, getBuilderOptionName, order, propertyIterator2Stream
-
-
-
-
Method Detail
-
matches
public boolean matches(MethodCallContext context)
Description copied from class:MethodCallBuilderAllows checking if this builder can build method calls for the given context.This method is invoked in every registered MethodCallBuilder, until one is found that matches.
- Specified by:
matchesin classMethodCallBuilder- Parameters:
context- provides information used to determine if a method call might be created by this builder. For example: JMeter test plan tree node test element, parent context, a map of entries to host custom information, etc.- Returns:
- true if this builder knows how to build a method call for the context, false otherwise.
-
buildMethodCall
protected MethodCall buildMethodCall(MethodCallContext context)
Description copied from class:MethodCallBuilderGenerates the method call instance for the particular DSL test element.You can check
DslTestPlan.CodeBuilderto get an idea of how a general implementation of this method looks likeIf you find a scenario where your MethodCallBuilder applies to the given context, but no code has to be generated for it, then use
MethodCall.emptyCall()to return a call that generates no code.- Specified by:
buildMethodCallin classMethodCallBuilder- Parameters:
context- provides all information that might be required to generate the method call. For example: JMeter test plan tree node test element, parent context, a map of entries to host custom information, etc.- Returns:
- generated method call for the DSL test element.
-
buildBackendListenerCall
protected abstract MethodCall buildBackendListenerCall(Map<String,String> args, Map<String,String> defaultValues)
-
-