net.anotheria.extensions.php.stats.factories.PHPScriptExecutionStatsFactory Maven / Gradle / Ivy
The newest version!
package net.anotheria.extensions.php.stats.factories;
import net.anotheria.extensions.php.stats.PHPScriptExecutionStats;
import net.anotheria.moskito.core.predefined.AbstractStatsFactory;
import net.anotheria.moskito.core.predefined.Constants;
import net.anotheria.moskito.core.predefined.ServiceStats;
import net.anotheria.moskito.core.predefined.ServiceStatsFactory;
import net.anotheria.moskito.core.stats.Interval;
/**
* Factory for php script execution stats
*/
public class PHPScriptExecutionStatsFactory extends AbstractStatsFactory {
/**
* Default instance to spare additional object creation.
*/
public static final AbstractStatsFactory DEFAULT_INSTANCE
= new PHPScriptExecutionStatsFactory();
/**
* Creates a new factory with default intervals.
*/
public PHPScriptExecutionStatsFactory() {
super();
}
@Override
public PHPScriptExecutionStats createStatsObject(String name) {
return new PHPScriptExecutionStats(name, getIntervals());
}
}