protected abstract static class DslBackendListener.BackendListenerCodeBuilder extends MethodCallBuilder
builderMethods| Constructor and Description |
|---|
BackendListenerCodeBuilder(Class<? extends org.apache.jmeter.visualizers.backend.BackendListenerClient> backendListenerClass,
List<Method> builderMethods) |
| Modifier and Type | Method and Description |
|---|---|
protected MethodParam |
buildArgParam(String argName,
Map<String,String> args,
Map<String,String> defaultArgs) |
protected abstract MethodCall |
buildBackendListenerCall(Map<String,String> args,
Map<String,String> defaultValues) |
protected MethodCall |
buildMethodCall(MethodCallContext context)
Generates the method call instance for the particular DSL test element.
|
boolean |
matches(MethodCallContext context)
Allows checking if this builder can build method calls for the given context.
|
buildMethodCall, getBuilderOptionName, order, propertyIterator2Streampublic boolean matches(MethodCallContext context)
MethodCallBuilderThis method is invoked in every registered MethodCallBuilder, until one is found that matches.
matches in class MethodCallBuildercontext - 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.protected MethodCall buildMethodCall(MethodCallContext context)
MethodCallBuilder
You can check DslTestPlan.CodeBuilder to get an idea
of how a general implementation of this method looks like
If 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.
buildMethodCall in class MethodCallBuildercontext - 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.protected abstract MethodCall buildBackendListenerCall(Map<String,String> args, Map<String,String> defaultValues)
Copyright © 2023. All rights reserved.