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

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

public class VirtualDataProxyImpl
extends java.lang.Object
implements org.objectweb.fractal.api.control.BindingController, VirtualDataSupplier, RoutineSupplier


Field Summary
 
Fields inherited from interface org.ow2.clif.analyze.api.graph.VirtualDataSupplier
AGGREGATE_DATA_CONTROL, FILTER_DATA_CONTROL, ROUTINE_SUPPLIER, STATISTIC_DATA_CONTROL, VIRTUAL_DATA_SUPPLIER
 
Fields inherited from interface org.ow2.clif.analyze.api.graph.virtualdata.RoutineSupplier
ROUTINE_SUPPLIER
 
Constructor Summary
VirtualDataProxyImpl()
          Instantiates a new chart engine impl.
 
Method Summary
 java.util.List<BladeEvent> aggregateBladesOneSameEvent(java.util.List<java.util.List<BladeEvent>> bladeList)
          Aggregate blades on one event type.
 void bindFc(java.lang.String clientItfName, java.lang.Object serverItf)
           
 java.util.List<BladeEvent> fieldFilter(java.util.List<BladeEvent> bladeEventList, java.lang.String fieldLabel, java.lang.String fieldFilterKeyword, java.lang.String filterOperator)
          Filter with a bladeEvent list
 java.util.List<BladeEvent> fieldFilter(java.lang.String testName, java.lang.String bladeId, java.lang.String eventTypeLabel, java.lang.String fieldLabel, java.lang.String fieldFilterKeyword, java.lang.String filterOperator)
          Get a blade event list for a test, blade and event
 java.util.Map<java.lang.String,java.util.List<BladeEvent>> getBladeAllEventsValues(java.lang.String testName, java.lang.String bladeId, java.lang.String eventTypeLabel)
          Get all the events for the blade
 java.util.List<BladeEvent> getBladeAllEventsValuesFiltered(java.util.List<BladeEvent> bladeEventList, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> filter, java.lang.String linkingOp)
          Filter with many filters
 java.util.List<BladeEvent> getBladeAllEventsValuesFiltered(java.lang.String testName, java.lang.String bladeId, java.lang.String eventTypeLabel, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> filter, java.lang.String linkingOp)
          Filter the event from a blade with many filters
 java.util.List<BladeEvent> getBladeByTime(java.util.List<BladeEvent> bladeEventList, int start, int end)
          Get bladeEvent list filtered by time
 BladeEvent[] getBladeEvents(java.lang.String testName, java.lang.String bladeId, java.lang.String eventTypeLabel, EventFilter filter, long fromIndex, int count)
          Get blade event array from a test, blade and event
 java.util.List<BladeEvent> getBladeOneEventValues(java.lang.String testName, java.lang.String bladeId, java.lang.String eventTypeLabel)
          Get a blade event list
 long getCommonMaxTime(java.lang.String testName)
          Get the common maximum time for a given test(last maximum time for all blades for the given test in lifecycle)
 long getCommonMinTime(java.lang.String testName)
          Get the common minimum time for a given test(last minimum time for all blades for the given test in lifecycle)
 VirtualDataProxyImpl getInstance()
          Gets the single instance of FilterDataImpl.
 java.lang.String[] listFc()
           
 java.lang.Object lookupFc(java.lang.String clientItfName)
           
 boolean saveRoutineToXML(java.lang.String fileName, java.util.Map<java.lang.Integer,java.util.List<StatisticDataImpl>> statisticMap, java.util.Map<java.lang.String,java.lang.String> commentMap, java.util.Map<java.lang.Integer,org.jfree.chart.JFreeChart> jFreeChartMap, java.lang.String imageType, java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> pageIdAndDatasetIds, java.util.Map<java.lang.Integer,ChartData> chartDataList, java.util.Map<java.lang.Integer,DatasetOptions> datasetIdAndGraphOptions)
          Save a routine to XML format
 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

VirtualDataProxyImpl

public VirtualDataProxyImpl()
Instantiates a new chart engine impl.

Method Detail

getInstance

public VirtualDataProxyImpl getInstance()
Gets the single instance of FilterDataImpl.

Returns:
single instance of FilterDataImpl

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

getCommonMinTime

public long getCommonMinTime(java.lang.String testName)
Description copied from interface: VirtualDataSupplier
Get the common minimum time for a given test(last minimum time for all blades for the given test in lifecycle)

Specified by:
getCommonMinTime in interface VirtualDataSupplier
Parameters:
testName - the test name
Returns:
the common minimum time

getCommonMaxTime

public long getCommonMaxTime(java.lang.String testName)
Description copied from interface: VirtualDataSupplier
Get the common maximum time for a given test(last maximum time for all blades for the given test in lifecycle)

Specified by:
getCommonMaxTime in interface VirtualDataSupplier
Parameters:
testName - the test name
Returns:
the common maximum time

getBladeOneEventValues

public java.util.List<BladeEvent> getBladeOneEventValues(java.lang.String testName,
                                                         java.lang.String bladeId,
                                                         java.lang.String eventTypeLabel)
                                                  throws ClifException
Description copied from interface: VirtualDataSupplier
Get a blade event list

Specified by:
getBladeOneEventValues in interface VirtualDataSupplier
Parameters:
testName - the test name
bladeId - the blade Id
eventTypeLabel - the event Type
Returns:
a BladeEvent List
Throws:
ClifException

getBladeAllEventsValues

public java.util.Map<java.lang.String,java.util.List<BladeEvent>> getBladeAllEventsValues(java.lang.String testName,
                                                                                          java.lang.String bladeId,
                                                                                          java.lang.String eventTypeLabel)
                                                                                   throws ClifException
Description copied from interface: VirtualDataSupplier
Get all the events for the blade

Specified by:
getBladeAllEventsValues in interface VirtualDataSupplier
Returns:
a Map> blade events
Throws:
ClifException

getBladeAllEventsValuesFiltered

public java.util.List<BladeEvent> getBladeAllEventsValuesFiltered(java.lang.String testName,
                                                                  java.lang.String bladeId,
                                                                  java.lang.String eventTypeLabel,
                                                                  java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> filter,
                                                                  java.lang.String linkingOp)
Description copied from interface: VirtualDataSupplier
Filter the event from a blade with many filters

Specified by:
getBladeAllEventsValuesFiltered in interface VirtualDataSupplier
linkingOp - the linking operator
Returns:
a BladeEvent List

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: VirtualDataSupplier
Get blade event array from a test, blade and event

Specified by:
getBladeEvents in interface VirtualDataSupplier
Throws:
ClifException

fieldFilter

public java.util.List<BladeEvent> fieldFilter(java.lang.String testName,
                                              java.lang.String bladeId,
                                              java.lang.String eventTypeLabel,
                                              java.lang.String fieldLabel,
                                              java.lang.String fieldFilterKeyword,
                                              java.lang.String filterOperator)
Description copied from interface: VirtualDataSupplier
Get a blade event list for a test, blade and event

Specified by:
fieldFilter in interface VirtualDataSupplier
Returns:
bladeEvent list

fieldFilter

public java.util.List<BladeEvent> fieldFilter(java.util.List<BladeEvent> bladeEventList,
                                              java.lang.String fieldLabel,
                                              java.lang.String fieldFilterKeyword,
                                              java.lang.String filterOperator)
Description copied from interface: VirtualDataSupplier
Filter with a bladeEvent list

Specified by:
fieldFilter in interface VirtualDataSupplier
Returns:
bladeEvent list

getBladeAllEventsValuesFiltered

public java.util.List<BladeEvent> getBladeAllEventsValuesFiltered(java.util.List<BladeEvent> bladeEventList,
                                                                  java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> filter,
                                                                  java.lang.String linkingOp)
Description copied from interface: VirtualDataSupplier
Filter with many filters

Specified by:
getBladeAllEventsValuesFiltered in interface VirtualDataSupplier
Returns:
bladeEvent list

getBladeByTime

public java.util.List<BladeEvent> getBladeByTime(java.util.List<BladeEvent> bladeEventList,
                                                 int start,
                                                 int end)
Description copied from interface: VirtualDataSupplier
Get bladeEvent list filtered by time

Specified by:
getBladeByTime in interface VirtualDataSupplier
Returns:
bladeEvent list

aggregateBladesOneSameEvent

public java.util.List<BladeEvent> aggregateBladesOneSameEvent(java.util.List<java.util.List<BladeEvent>> bladeList)
Description copied from interface: VirtualDataSupplier
Aggregate blades on one event type. The blades must have same type (i.e. injectors, or probes of the same kind/class)

Specified by:
aggregateBladesOneSameEvent in interface VirtualDataSupplier
Returns:
List virtual data from an aggregation on one event of all the blades selected

saveRoutineToXML

public boolean saveRoutineToXML(java.lang.String fileName,
                                java.util.Map<java.lang.Integer,java.util.List<StatisticDataImpl>> statisticMap,
                                java.util.Map<java.lang.String,java.lang.String> commentMap,
                                java.util.Map<java.lang.Integer,org.jfree.chart.JFreeChart> jFreeChartMap,
                                java.lang.String imageType,
                                java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> pageIdAndDatasetIds,
                                java.util.Map<java.lang.Integer,ChartData> chartDataList,
                                java.util.Map<java.lang.Integer,DatasetOptions> datasetIdAndGraphOptions)
Description copied from interface: RoutineSupplier
Save a routine to XML format

Specified by:
saveRoutineToXML in interface RoutineSupplier
Specified by:
saveRoutineToXML in interface VirtualDataSupplier
Returns:
true if successful