All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.blazemeter.jmeter.controller.DummyThreadGroup Maven / Gradle / Ivy

There is a newer version: 0.12
Show newest version
package com.blazemeter.jmeter.controller;

import org.apache.jmeter.engine.StandardJMeterEngine;
import org.apache.jmeter.threads.AbstractThreadGroup;
import org.apache.jmeter.threads.JMeterThread;
import org.apache.jmeter.threads.ListenerNotifier;
import org.apache.jorphan.collections.ListedHashTree;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class DummyThreadGroup extends AbstractThreadGroup {
    private static final Logger log = LoggerFactory.getLogger(ParallelSampler.class);

    @Override
    public boolean stopThread(String s, boolean b) {
        return false;
    }

    @Override
    public int numberOfActiveThreads() {
        return 0;
    }

    @Override
    public void start(int i, ListenerNotifier listenerNotifier, ListedHashTree listedHashTree, StandardJMeterEngine standardJMeterEngine) {

    }

    @Override
    public boolean verifyThreadsStopped() {
        return false;
    }

    @Override
    public void waitThreadsStopped() {

    }

    @Override
    public void tellThreadsToStop() {

    }

    @Override
    public void stop() {

    }

    @Override
    public void threadFinished(JMeterThread jMeterThread) {
        log.debug("BG thread finished");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy