org.ow2.clif.analyze.lib.graph
Class StatisticImpl

java.lang.Object
  extended by org.ow2.clif.analyze.lib.graph.StatisticImpl
All Implemented Interfaces:
org.objectweb.fractal.api.control.BindingController, StatisticCollector

public class StatisticImpl
extends java.lang.Object
implements org.objectweb.fractal.api.control.BindingController, StatisticCollector

The Class StatisticImpl.


Field Summary
 
Fields inherited from interface org.ow2.clif.analyze.api.graph.datasource.StatisticCollector
STATISTIC_COLLECTOR
 
Constructor Summary
StatisticImpl()
          Instantiates a new statistic impl.
 
Method Summary
 void bindFc(java.lang.String clientItfName, java.lang.Object serverItf)
           
 java.lang.Object[][] getMaxValues(java.lang.Object[][] values, int timeWindow, int step)
          Gets the max values.
 java.lang.Object[][] getMeans(java.lang.Object[][] values, int timeWindow, int step)
          Gets the means.
 java.lang.Object[][] getMinValues(java.lang.Object[][] values, int timeWindow, int step)
          Gets the min values.
 java.lang.Object[][] getStandardDeviations(java.lang.Object[][] values, int timeWindow, int step)
          Gets the standard deviation.
 java.util.Map getStatistics(java.lang.String testName, java.lang.String bladeId, java.lang.String eventTypeLabel, java.lang.String XFieldLabel, java.lang.String YFieldLabel, int start, int end, int count)
          Get statistic on the Y field.
 java.lang.String[] listFc()
           
 java.lang.Object lookupFc(java.lang.String clientItfName)
           
 void unbindFc(java.lang.String clientItfName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticImpl

public StatisticImpl()
Instantiates a new statistic impl.

Method Detail

bindFc

public void bindFc(java.lang.String clientItfName,
                   java.lang.Object serverItf)
            throws org.objectweb.fractal.api.NoSuchInterfaceException,
                   org.objectweb.fractal.api.control.IllegalBindingException,
                   org.objectweb.fractal.api.control.IllegalLifeCycleException
Specified by:
bindFc in interface org.objectweb.fractal.api.control.BindingController
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException
org.objectweb.fractal.api.control.IllegalBindingException
org.objectweb.fractal.api.control.IllegalLifeCycleException

listFc

public java.lang.String[] listFc()
Specified by:
listFc in interface org.objectweb.fractal.api.control.BindingController

lookupFc

public java.lang.Object lookupFc(java.lang.String clientItfName)
                          throws org.objectweb.fractal.api.NoSuchInterfaceException
Specified by:
lookupFc in interface org.objectweb.fractal.api.control.BindingController
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException

unbindFc

public void unbindFc(java.lang.String clientItfName)
              throws org.objectweb.fractal.api.NoSuchInterfaceException,
                     org.objectweb.fractal.api.control.IllegalBindingException,
                     org.objectweb.fractal.api.control.IllegalLifeCycleException
Specified by:
unbindFc in interface org.objectweb.fractal.api.control.BindingController
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException
org.objectweb.fractal.api.control.IllegalBindingException
org.objectweb.fractal.api.control.IllegalLifeCycleException

getMaxValues

public java.lang.Object[][] getMaxValues(java.lang.Object[][] values,
                                         int timeWindow,
                                         int step)
Description copied from interface: StatisticCollector
Gets the max values.

Specified by:
getMaxValues in interface StatisticCollector
Parameters:
values - the values
timeWindow - the time window
step - the step
Returns:
the max values

getMeans

public java.lang.Object[][] getMeans(java.lang.Object[][] values,
                                     int timeWindow,
                                     int step)
Description copied from interface: StatisticCollector
Gets the means.

Specified by:
getMeans in interface StatisticCollector
Parameters:
values - the values
timeWindow - the time window
step - the step
Returns:
the means

getMinValues

public java.lang.Object[][] getMinValues(java.lang.Object[][] values,
                                         int timeWindow,
                                         int step)
Description copied from interface: StatisticCollector
Gets the min values.

Specified by:
getMinValues in interface StatisticCollector
Parameters:
values - the values
timeWindow - the time window
step - the step
Returns:
the min values

getStandardDeviations

public java.lang.Object[][] getStandardDeviations(java.lang.Object[][] values,
                                                  int timeWindow,
                                                  int step)
Description copied from interface: StatisticCollector
Gets the standard deviation.

Specified by:
getStandardDeviations in interface StatisticCollector
Parameters:
values - the values
timeWindow - the time window
step - the step
Returns:
the standard deviation

getStatistics

public java.util.Map getStatistics(java.lang.String testName,
                                   java.lang.String bladeId,
                                   java.lang.String eventTypeLabel,
                                   java.lang.String XFieldLabel,
                                   java.lang.String YFieldLabel,
                                   int start,
                                   int end,
                                   int count)
Description copied from interface: StatisticCollector
Get statistic on the Y field.

Specified by:
getStatistics in interface StatisticCollector
Parameters:
testName - the test run name
bladeId - the blade identifier from the given test run
eventTypeLabel - the label of the event type
XFieldLabel - the label of the X field
YFieldLabel - the label of the Y field
start - the start
end - the end
count - the count
Returns:
a map that contains the various statistics on the Y field