org.ow2.clif.analyze.api.graph
Interface DataSupplier

All Known Implementing Classes:
DataProxyImpl

public interface DataSupplier

The Interface DataSupplier.

Author:
Jordan BRUNIER, Gregory CALONNIER, Olivier LIU

Field Summary
static java.lang.String DATA_SUPPLIER
          The Constant DATA_SUPPLIER.
static java.lang.String STAT_MAXIMUMS
          The Constant STAT_MAXIMUMS.
static java.lang.String STAT_MEANS
          The Constant STAT_MEANS.
static java.lang.String STAT_MINIMUMS
          The Constant STAT_MINIMUMS.
static java.lang.String STAT_STD_DEVIATION
          The Constant STAT_STD_DEVIATION.
 
Method Summary
 long countValues(java.lang.String testName, java.lang.String bladeId, java.lang.String eventTypeLabel, java.lang.String YFieldLabel)
          Count values for the giving field label.
 java.lang.Object[][] getAllFieldsValues(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 all the values for a field from an event type, bladeId and test name
 BladeDescriptor[] getBladeDescriptor(java.lang.String testName, BladeFilter filter)
          Get the blade descriptor from a test and a blade filter
 BladeEvent[] getBladeEvents(java.lang.String testName, java.lang.String bladeId, java.lang.String eventTypeLabel, EventFilter filter, long fromIndex, int count)
          Get a bladeEvent array from a testName, a bladeId, an event
 java.lang.Object[][] getBladeEventsValues(BladeEvent[] bladeEventList, java.lang.String XFieldLabel, java.lang.String YFieldLabel)
          Get 2 columns from a bladeEvent[] : use first getBladeEvents
 java.lang.String[] getBladesIds(java.lang.String testName)
          Get the baldes' ids.
 java.lang.String[] getEventFieldLabels(java.lang.String testName, java.lang.String bladeId, java.lang.String eventTypeLabel)
          Get the events fields labels.
 java.lang.String[] getEventsTypeLabels(java.lang.String testName, java.lang.String bladeId)
          Get the events labels.
 java.lang.Object[][] getFieldsValues(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 the values for the X and Y fields.
 long getLifecycleCompleted(java.lang.String testName, java.lang.String bladeId)
          Get the completed life-cycle for a blade in a test
 long getLifecycleRunning(java.lang.String testName, java.lang.String bladeId)
          Get the running life-cycle for a blade in a test
 long getMaxTimeFor(java.lang.String testName, java.lang.String bladeId)
          Gets the max time for.
 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.
 BladeDescriptor[] getTestPlan(java.lang.String testName, BladeFilter filter)
          Get the blade descriptors
 java.lang.String[] getTestsNames()
          Get the tests' names.
 

Field Detail

DATA_SUPPLIER

static final java.lang.String DATA_SUPPLIER
The Constant DATA_SUPPLIER.

See Also:
Constant Field Values

STAT_STD_DEVIATION

static final java.lang.String STAT_STD_DEVIATION
The Constant STAT_STD_DEVIATION.

See Also:
Constant Field Values

STAT_MEANS

static final java.lang.String STAT_MEANS
The Constant STAT_MEANS.

See Also:
Constant Field Values

STAT_MINIMUMS

static final java.lang.String STAT_MINIMUMS
The Constant STAT_MINIMUMS.

See Also:
Constant Field Values

STAT_MAXIMUMS

static final java.lang.String STAT_MAXIMUMS
The Constant STAT_MAXIMUMS.

See Also:
Constant Field Values
Method Detail

getTestPlan

BladeDescriptor[] getTestPlan(java.lang.String testName,
                              BladeFilter filter)
Get the blade descriptors

Parameters:
testName - the test name
filter - the blade filter, null means no filter
Returns:
an array that contains the blade descriptors

getTestsNames

java.lang.String[] getTestsNames()
Get the tests' names.

Returns:
an array that contains the tests' names

getBladesIds

java.lang.String[] getBladesIds(java.lang.String testName)
Get the baldes' ids.

Parameters:
testName - the test run name
Returns:
an array that contains the blades ids of the given test

getEventsTypeLabels

java.lang.String[] getEventsTypeLabels(java.lang.String testName,
                                       java.lang.String bladeId)
Get the events labels.

Parameters:
testName - the test run name
bladeId - the blade identifier
Returns:
an array that contains the events label of the given blade

getEventFieldLabels

java.lang.String[] getEventFieldLabels(java.lang.String testName,
                                       java.lang.String bladeId,
                                       java.lang.String eventTypeLabel)
Get the events fields labels.

Parameters:
testName - the test run name
bladeId - the blade identifier from the given test run
eventTypeLabel - the label of the event type
Returns:
an array that contains the labels of the given event type

getFieldsValues

java.lang.Object[][] getFieldsValues(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 the values for the X and Y fields.

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
count - the count
end - the end
Returns:
a two dimension array that contains the values of the given fields

getStatistics

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.

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

countValues

long countValues(java.lang.String testName,
                 java.lang.String bladeId,
                 java.lang.String eventTypeLabel,
                 java.lang.String YFieldLabel)
Count values for the giving field label.

Parameters:
testName - the test run name
bladeId - the blade id
eventTypeLabel - the event type label
YFieldLabel - the Y field label
Returns:
the number of values

getMeans

java.lang.Object[][] getMeans(java.lang.Object[][] values,
                              int timeWindow,
                              int step)
Gets the means.

Parameters:
values - the values
timeWindow - the window
step - the step
Returns:
the means

getStandardDeviations

java.lang.Object[][] getStandardDeviations(java.lang.Object[][] values,
                                           int timeWindow,
                                           int step)
Gets the standard deviation.

Parameters:
values - the values
timeWindow - the window
step - the step
Returns:
the standard deviation

getMinValues

java.lang.Object[][] getMinValues(java.lang.Object[][] values,
                                  int timeWindow,
                                  int step)
Gets the min values.

Parameters:
values - the values
timeWindow - the time window
step - the step
Returns:
the min values

getMaxValues

java.lang.Object[][] getMaxValues(java.lang.Object[][] values,
                                  int timeWindow,
                                  int step)
Gets the max values.

Parameters:
values - the values
timeWindow - the time window
step - the step
Returns:
the max values

getMaxTimeFor

long getMaxTimeFor(java.lang.String testName,
                   java.lang.String bladeId)
Gets the max time for.

Parameters:
testName - the test name
bladeId - the blade id
Returns:
the max time for

getLifecycleRunning

long getLifecycleRunning(java.lang.String testName,
                         java.lang.String bladeId)
Get the running life-cycle for a blade in a test

Parameters:
testName - the test name
bladeId - the blade ID

getLifecycleCompleted

long getLifecycleCompleted(java.lang.String testName,
                           java.lang.String bladeId)
Get the completed life-cycle for a blade in a test

Parameters:
testName - the test name
bladeId - the blade ID

getAllFieldsValues

java.lang.Object[][] getAllFieldsValues(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 all the values for a field from an event type, bladeId and test name

Parameters:
testName - the test name
bladeId - the blade ID
eventTypeLabel - the event type name/label
XFieldLabel - the X field
YFieldLabel - the Y field
start - the start time
end - the end time
count - the values count
Returns:
an object[][] that contains the values

getBladeEvents

BladeEvent[] getBladeEvents(java.lang.String testName,
                            java.lang.String bladeId,
                            java.lang.String eventTypeLabel,
                            EventFilter filter,
                            long fromIndex,
                            int count)
                            throws ClifException
Get a bladeEvent array from a testName, a bladeId, an event

Throws:
ClifException

getBladeEventsValues

java.lang.Object[][] getBladeEventsValues(BladeEvent[] bladeEventList,
                                          java.lang.String XFieldLabel,
                                          java.lang.String YFieldLabel)
Get 2 columns from a bladeEvent[] : use first getBladeEvents


getBladeDescriptor

BladeDescriptor[] getBladeDescriptor(java.lang.String testName,
                                     BladeFilter filter)
Get the blade descriptor from a test and a blade filter

Parameters:
testName -
filter -