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

kg.apc.jmeter.reporters.LoadosophiaUploadingNotifier Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
package kg.apc.jmeter.reporters;

import java.io.Serializable;
import java.util.LinkedList;
import org.apache.jorphan.logging.LoggingManager;
import org.apache.log.Logger;

public class LoadosophiaUploadingNotifier implements Serializable {

    private static final Logger log = LoggingManager.getLoggerForClass();
    private static LoadosophiaUploadingNotifier instance;
    private LinkedList files = new LinkedList();

    private LoadosophiaUploadingNotifier() {
    }

    public static LoadosophiaUploadingNotifier getInstance() {
        if (instance == null) {
            instance = new LoadosophiaUploadingNotifier();
        }

        return instance;
    }

    public void startCollecting() {
        log.debug("Start files collection");
    }

    public void endCollecting() {
        log.debug("Ended files collection, clear files list");
        files.clear();
    }

    public LinkedList getFiles() {
        return files;
    }

    public void addFile(String file) {
        log.debug("Add new file: " + file);
        files.add(file);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy