JMeter example source code file (CompoundVariable.java)
This example JMeter source code file (CompoundVariable.java) is included in the DevDaily.com
"Java Source Code
Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.jmeter.engine.util;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import org.apache.jmeter.functions.Function;
import org.apache.jmeter.functions.InvalidVariableException;
import org.apache.jmeter.samplers.SampleResult;
import org.apache.jmeter.samplers.Sampler;
import org.apache.jmeter.threads.JMeterContext;
import org.apache.jmeter.threads.JMeterContextService;
import org.apache.jmeter.util.JMeterUtils;
import org.apache.jorphan.logging.LoggingManager;
import org.apache.jorphan.reflect.ClassFinder;
import org.apache.log.Logger;
/**
* CompoundFunction.
*
*/
public class CompoundVariable implements Function {
private static final Logger log = LoggingManager.getLoggerForClass();
private String rawParameters;
private static final FunctionParser functionParser = new FunctionParser();
// Created during class init; not modified thereafter
private static final Map<String, Class extends Function>> functions =
new HashMap<String, Class extends Function>>();
private boolean hasFunction, isDynamic;
private String permanentResults = ""; // $NON-NLS-1$
private LinkedList<Object> compiledComponents = new LinkedList
Other JMeter examples (source code examples)
Here is a short list of links related to this JMeter CompoundVariable.java source code file: