
es.tid.pce.client.emulator.PrintStatistics Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of network-emulator Show documentation
Show all versions of network-emulator Show documentation
Emulator of GMPLS-controlled transport Network
The newest version!
package es.tid.pce.client.emulator;
import java.util.TimerTask;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Print statistics to write in a file the emulation statistics
* Es una tarea que se ejecutara externamente
* @author mcs
*
*/
public class PrintStatistics extends TimerTask {
AutomaticTesterStatistics ats;
private Logger statsLog;
public PrintStatistics(AutomaticTesterStatistics ats){
statsLog=LoggerFactory.getLogger("stats");
this.ats=ats;
}
public void run(){
statsLog.info(ats.print());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy