org.ow2.clif.analyze.api.graph.datasource
Interface RawDataRead

All Known Implementing Classes:
AnalyzerStorageProxyImpl

public interface RawDataRead

The Interface RawDataRead.

Author:
Jordan BRUNIER, Gregory CALONNIER, Olivier LIU

Field Summary
static java.lang.String RAW_DATA_READ
          The Constant DATA_SUPPLIER.
 
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 the values for the X and Y fields.
 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 the blade events
 java.lang.Object[][] getBladeEventsValues(BladeEvent[] bladeEventList, java.lang.String XFieldLabel, java.lang.String YFieldLabel)
          Get the values for the X and Y fields.
 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)
          Life-cycle Completed
 long getLifecycleRunning(java.lang.String testName, java.lang.String bladeId)
          Life-cycle Running
 long getMaxTimeFor(java.lang.String testName, java.lang.String bladeId)
          Gets the max time for.
 BladeDescriptor[] getTestPlan(java.lang.String testName, BladeFilter filter)
          Get the tests' names.
 java.lang.String[] getTestsNames()
          Get the tests' names.
 

Field Detail

RAW_DATA_READ

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

See Also:
Constant Field Values
Method Detail

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

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 the values for the X and Y fields.

Parameters:
testName -
bladeId -
eventTypeLabel -
XFieldLabel -
YFieldLabel -
start -
end -
count -
Returns:
a two dimension array that contains the values of the given fields

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

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

getTestPlan

BladeDescriptor[] getTestPlan(java.lang.String testName,
                              BladeFilter filter)
                              throws ClifException
Get the tests' names.

Returns:
an array that contains the tests' names
Throws:
ClifException

getBladeEvents

BladeEvent[] getBladeEvents(java.lang.String testName,
                            java.lang.String bladeId,
                            java.lang.String eventTypeLabel,
                            EventFilter filter,
                            long fromIndex,
                            int count)
                            throws ClifException
Get the blade events

Returns:
an array that contains the blade event
Throws:
ClifException

getLifecycleRunning

long getLifecycleRunning(java.lang.String testName,
                         java.lang.String bladeId)
Life-cycle Running

Parameters:
testName - a test name
bladeId - a blade ID
Returns:
the life-cycle running time

getLifecycleCompleted

long getLifecycleCompleted(java.lang.String testName,
                           java.lang.String bladeId)
Life-cycle Completed

Parameters:
testName - a test name
bladeId - a blade ID
Returns:
the life-cycle running time

getBladeEventsValues

java.lang.Object[][] getBladeEventsValues(BladeEvent[] bladeEventList,
                                          java.lang.String XFieldLabel,
                                          java.lang.String YFieldLabel)
Get the values for the X and Y fields.

Parameters:
bladeEventList -
XFieldLabel -
YFieldLabel -
Returns:
a two dimension array that contains the values of the given fields

getBladeDescriptor

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

Parameters:
testName -
filter -
Returns:
an one dimension array that contains the blade descriptor of the given fields