net.java.dev.moskito.core.stats.impl
Class StatValueFactory

java.lang.Object
  extended by net.java.dev.moskito.core.stats.impl.StatValueTypeUtility
      extended by net.java.dev.moskito.core.stats.impl.StatValueFactory

public class StatValueFactory
extends StatValueTypeUtility

This factory creates StatValue instances.

Author:
dvayanu

Constructor Summary
StatValueFactory()
           
 
Method Summary
static StatValue createStatValue(Object aPattern, String aName, Interval[] aIntervals)
          This method creates a new StatValue instance.
static StatValue createStatValue(StatValueTypes aType, String aName, Interval[] aIntervals)
          This method creates a StatValue instance.
 
Methods inherited from class net.java.dev.moskito.core.stats.impl.StatValueTypeUtility
createValueHolderFactory, object2type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatValueFactory

public StatValueFactory()
Method Detail

createStatValue

public static final StatValue createStatValue(Object aPattern,
                                              String aName,
                                              Interval[] aIntervals)
This method creates a new StatValue instance. The new object will be from the same type as the given template object.

Parameters:
aPattern - the template object
aName - the name of the value
aIntervals - the list of Intervals to be used
Returns:
the StatValue instance

createStatValue

public static StatValue createStatValue(StatValueTypes aType,
                                        String aName,
                                        Interval[] aIntervals)
This method creates a StatValue instance.

Parameters:
aType - the type of the value
aName - the name of the value
aIntervals - the list of Intervals to be used
Returns:
the StatValue instance


Copyright © 2006 MoSKito Project Team. All Rights Reserved.
MoSKito, the open source java monitoring framework