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

net.anotheria.extensions.php.stats.factories.PHPScriptExecutionStatsFactory Maven / Gradle / Ivy

There is a newer version: 4.0.3
Show 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());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy