Coverage Report - kg.apc.jmeter.reporters.LoadosophiaUploadingNotifier
 
Classes in this File Line Coverage Branch Coverage Complexity
LoadosophiaUploadingNotifier
100%
16/16
100%
2/2
1.167
 
 1  
 package kg.apc.jmeter.reporters;
 2  
 
 3  
 import java.io.Serializable;
 4  
 import java.util.LinkedList;
 5  
 import org.apache.jorphan.logging.LoggingManager;
 6  
 import org.apache.log.Logger;
 7  
 
 8  
 public class LoadosophiaUploadingNotifier implements Serializable {
 9  
 
 10  1
     private static final Logger log = LoggingManager.getLoggerForClass();
 11  
     private static LoadosophiaUploadingNotifier instance;
 12  1
     private LinkedList<String> files = new LinkedList<String>();
 13  
 
 14  1
     private LoadosophiaUploadingNotifier() {
 15  1
     }
 16  
 
 17  
     public static LoadosophiaUploadingNotifier getInstance() {
 18  54
         if (instance == null) {
 19  1
             instance = new LoadosophiaUploadingNotifier();
 20  
         }
 21  
 
 22  54
         return instance;
 23  
     }
 24  
 
 25  
     public void startCollecting() {
 26  5
         log.debug("Start files collection");
 27  5
     }
 28  
 
 29  
     public void endCollecting() {
 30  9
         log.debug("Ended files collection, clear files list");
 31  9
         files.clear();
 32  9
     }
 33  
 
 34  
     public LinkedList<String> getFiles() {
 35  4
         return files;
 36  
     }
 37  
 
 38  
     public void addFile(String file) {
 39  6
         log.debug("Add new file: " + file);
 40  6
         files.add(file);
 41  6
     }
 42  
 }