Package org.ow2.clif.datacollector.lib
Class AbstractDataCollector
- java.lang.Object
-
- org.ow2.clif.datacollector.lib.AbstractDataCollector
-
- All Implemented Interfaces:
org.objectweb.fractal.api.control.BindingController,DataCollectorAdmin,DataCollectorWrite
- Direct Known Subclasses:
AbstractProbeDataCollector,InjectorDataCollector
public abstract class AbstractDataCollector extends java.lang.Object implements DataCollectorWrite, DataCollectorAdmin, org.objectweb.fractal.api.control.BindingController
Abstract implementation of a Data Collector component.- Author:
- Bruno Dillenseger
-
-
Field Summary
Fields Modifier and Type Field Description protected StorageWritesws-
Fields inherited from interface org.ow2.clif.datacollector.api.DataCollectorAdmin
DATA_COLLECTOR_ADMIN
-
Fields inherited from interface org.ow2.clif.datacollector.api.DataCollectorWrite
DATA_COLLECTOR_WRITE
-
-
Constructor Summary
Constructors Constructor Description AbstractDataCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(ActionEvent action)Add a new measure - simply transmit it to the Storage Proxy component unless it is rejected by current DataCollectorFilter.voidadd(AlarmEvent alarm)Add a new alarm - simply transmit it to the Storage Proxy component unless it is rejected by current DataCollectorFilter.voidadd(LifeCycleEvent event)Add a new lifecycle event - simply forwards it to the Storage Proxy component unless it is rejected by current DataCollectorFilter.voidadd(ProbeEvent measure)Add a new measure - simply transmit it to the Storage Proxy component unless it is null or it is rejected by current DataCollectorFilter.voidbindFc(java.lang.String clientItfName, java.lang.Object serverItf)voidinit(java.io.Serializable testId, java.lang.String bladeId)Does nothing.java.lang.String[]listFc()java.lang.ObjectlookupFc(java.lang.String clientItfName)voidsetFilter(DataCollectorFilter filter)Sets a filter selecting generated events forwarded to Storagevoidterminate()Does nothing.voidunbindFc(java.lang.String clientItfName)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ow2.clif.datacollector.api.DataCollectorAdmin
getLabels, getStat
-
-
-
-
Field Detail
-
sws
protected StorageWrite sws
-
-
Method Detail
-
lookupFc
public java.lang.Object lookupFc(java.lang.String clientItfName)
- Specified by:
lookupFcin interfaceorg.objectweb.fractal.api.control.BindingController
-
bindFc
public void bindFc(java.lang.String clientItfName, java.lang.Object serverItf)- Specified by:
bindFcin interfaceorg.objectweb.fractal.api.control.BindingController
-
unbindFc
public void unbindFc(java.lang.String clientItfName)
- Specified by:
unbindFcin interfaceorg.objectweb.fractal.api.control.BindingController
-
listFc
public java.lang.String[] listFc()
- Specified by:
listFcin interfaceorg.objectweb.fractal.api.control.BindingController
-
init
public void init(java.io.Serializable testId, java.lang.String bladeId)Does nothing.- Specified by:
initin interfaceDataCollectorWrite- Parameters:
testId- test identifierbladeId- blade identifier
-
terminate
public void terminate()
Does nothing.- Specified by:
terminatein interfaceDataCollectorWrite
-
add
public void add(LifeCycleEvent event)
Add a new lifecycle event - simply forwards it to the Storage Proxy component unless it is rejected by current DataCollectorFilter.- Specified by:
addin interfaceDataCollectorWrite- Parameters:
event- new lifecycle event
-
add
public void add(ActionEvent action)
Add a new measure - simply transmit it to the Storage Proxy component unless it is rejected by current DataCollectorFilter.- Specified by:
addin interfaceDataCollectorWrite- Parameters:
action- the new action event
-
add
public void add(AlarmEvent alarm)
Add a new alarm - simply transmit it to the Storage Proxy component unless it is rejected by current DataCollectorFilter.- Specified by:
addin interfaceDataCollectorWrite- Parameters:
alarm- new alarm event
-
add
public void add(ProbeEvent measure)
Add a new measure - simply transmit it to the Storage Proxy component unless it is null or it is rejected by current DataCollectorFilter.- Specified by:
addin interfaceDataCollectorWrite- Parameters:
measure- the new measure
-
setFilter
public void setFilter(DataCollectorFilter filter)
Description copied from interface:DataCollectorWriteSets a filter selecting generated events forwarded to Storage- Specified by:
setFilterin interfaceDataCollectorWrite- Parameters:
filter- event filter; a null filter forwards all events to Storage
-
-