"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "moskito-core/src/main/java/net/anotheria/moskito/core/predefined/AbstractStatsFactory.java" between
moskito-moskito-2.9.3.tar.gz and moskito-moskito-2.10.0.tar.gz

About: MoSKito (Monitoring System Kit) is a framework for java application monitoring. Sources.

AbstractStatsFactory.java  (moskito-moskito-2.9.3):AbstractStatsFactory.java  (moskito-moskito-2.10.0)
package net.anotheria.moskito.core.predefined; package net.anotheria.moskito.core.predefined;
import java.util.Arrays;
import net.anotheria.moskito.core.dynamic.IOnDemandStatsFactory; import net.anotheria.moskito.core.dynamic.IOnDemandStatsFactory;
import net.anotheria.moskito.core.producers.IStats; import net.anotheria.moskito.core.producers.IStats;
import net.anotheria.moskito.core.stats.Interval; import net.anotheria.moskito.core.stats.Interval;
import java.util.Arrays;
/** /**
* Common {@link IOnDemandStatsFactory} impl. * Common {@link IOnDemandStatsFactory} impl.
* *
* @author sshscp * @author sshscp
*/ */
public abstract class AbstractStatsFactory<Stats extends IStats> implements IOnD emandStatsFactory<Stats> { public abstract class AbstractStatsFactory<Stats extends IStats> implements IOnD emandStatsFactory<Stats> {
/** /**
* Configured intervals that have to be passed to the created stats objec t. * Configured intervals that have to be passed to the created stats objec t.
*/ */
private final Interval[] intervals; private final Interval[] intervals;
skipping to change at line 38 skipping to change at line 38
} }
/** /**
* Creates a new factory with default intervals. * Creates a new factory with default intervals.
*/ */
public AbstractStatsFactory() { public AbstractStatsFactory() {
this(Constants.getDefaultIntervals()); this(Constants.getDefaultIntervals());
} }
public Interval[] getIntervals() { public Interval[] getIntervals() {
return intervals; return Arrays.copyOf(intervals, intervals.length);
} }
} }
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)