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

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

public class AnalyzerStorageProxyImpl
extends java.lang.Object
implements org.objectweb.fractal.api.control.BindingController, RawDataRead

The Class AnalyzerStorageProxyImpl.


Field Summary
 
Fields inherited from interface org.ow2.clif.analyze.api.graph.datasource.RawDataRead
RAW_DATA_READ
 
Constructor Summary
AnalyzerStorageProxyImpl()
          Instantiates a new analyzer storage proxy impl.
 
Method Summary
 void bindFc(java.lang.String clientItfName, java.lang.Object serverItf)
           
 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.
 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

AnalyzerStorageProxyImpl

public AnalyzerStorageProxyImpl()
Instantiates a new analyzer storage proxy 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)
Specified by:
lookupFc in interface org.objectweb.fractal.api.control.BindingController

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

countValues

public long countValues(java.lang.String testName,
                        java.lang.String bladeId,
                        java.lang.String eventTypeLabel,
                        java.lang.String YFieldLabel)
Description copied from interface: RawDataRead
Count values for the giving field label.

Specified by:
countValues in interface RawDataRead
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

getBladesIds

public java.lang.String[] getBladesIds(java.lang.String testName)
Description copied from interface: RawDataRead
Get the baldes' ids.

Specified by:
getBladesIds in interface RawDataRead
Parameters:
testName - the test run name
Returns:
an array that contains the blades ids of the given test

getEventFieldLabels

public java.lang.String[] getEventFieldLabels(java.lang.String testName,
                                              java.lang.String bladeId,
                                              java.lang.String eventTypeLabel)
Description copied from interface: RawDataRead
Get the events fields labels.

Specified by:
getEventFieldLabels in interface RawDataRead
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

getEventsTypeLabels

public java.lang.String[] getEventsTypeLabels(java.lang.String testName,
                                              java.lang.String bladeId)
Description copied from interface: RawDataRead
Get the events labels.

Specified by:
getEventsTypeLabels in interface RawDataRead
Parameters:
testName - the test run name
bladeId - the blade identifier
Returns:
an array that contains the events label of the given blade

getFieldsValues

public 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)
Description copied from interface: RawDataRead
Get the values for the X and Y fields.

Specified by:
getFieldsValues in interface RawDataRead
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

getTestsNames

public java.lang.String[] getTestsNames()
Description copied from interface: RawDataRead
Get the tests' names.

Specified by:
getTestsNames in interface RawDataRead
Returns:
an array that contains the tests' names

getMaxTimeFor

public long getMaxTimeFor(java.lang.String testName,
                          java.lang.String bladeId)
Description copied from interface: RawDataRead
Gets the max time for.

Specified by:
getMaxTimeFor in interface RawDataRead
Parameters:
testName - the test name
bladeId - the blade id
Returns:
the max time for

getTestPlan

public BladeDescriptor[] getTestPlan(java.lang.String testName,
                                     BladeFilter filter)
                              throws ClifException
Description copied from interface: RawDataRead
Get the tests' names.

Specified by:
getTestPlan in interface RawDataRead
Returns:
an array that contains the tests' names
Throws:
ClifException

getAllFieldsValues

public 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)
Description copied from interface: RawDataRead
Get the values for the X and Y fields.

Specified by:
getAllFieldsValues in interface RawDataRead
Returns:
a two dimension array that contains the values of the given fields

getLifecycleRunning

public long getLifecycleRunning(java.lang.String testName,
                                java.lang.String bladeId)
Description copied from interface: RawDataRead
Life-cycle Running

Specified by:
getLifecycleRunning in interface RawDataRead
Parameters:
testName - a test name
bladeId - a blade ID
Returns:
the life-cycle running time

getLifecycleCompleted

public long getLifecycleCompleted(java.lang.String testName,
                                  java.lang.String bladeId)
Description copied from interface: RawDataRead
Life-cycle Completed

Specified by:
getLifecycleCompleted in interface RawDataRead
Parameters:
testName - a test name
bladeId - a blade ID
Returns:
the life-cycle running time

getBladeEvents

public BladeEvent[] getBladeEvents(java.lang.String testName,
                                   java.lang.String bladeId,
                                   java.lang.String eventTypeLabel,
                                   EventFilter filter,
                                   long fromIndex,
                                   int count)
                            throws ClifException
Description copied from interface: RawDataRead
Get the blade events

Specified by:
getBladeEvents in interface RawDataRead
Returns:
an array that contains the blade event
Throws:
ClifException

getBladeEventsValues

public java.lang.Object[][] getBladeEventsValues(BladeEvent[] bladeEventList,
                                                 java.lang.String XFieldLabel,
                                                 java.lang.String YFieldLabel)
Description copied from interface: RawDataRead
Get the values for the X and Y fields.

Specified by:
getBladeEventsValues in interface RawDataRead
Returns:
a two dimension array that contains the values of the given fields

getBladeDescriptor

public BladeDescriptor[] getBladeDescriptor(java.lang.String testName,
                                            BladeFilter filter)
Description copied from interface: RawDataRead
Get the blade descriptor from a test and a blade filter

Specified by:
getBladeDescriptor in interface RawDataRead
Returns:
an one dimension array that contains the blade descriptor of the given fields