public class AnalyzerImpl extends java.lang.Object implements org.objectweb.fractal.api.control.BindingController, AnalyzerExternalAccess
ANALYZER_EXTERNAL_ACCESS
Constructor and Description |
---|
AnalyzerImpl()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
bindFc(java.lang.String clientItfName,
java.lang.Object serverItf) |
void |
closeEventIterator(java.io.Serializable iteratorKey)
Discards the iterator associated to the given key, possibly releasing resources.
|
long |
countEvents(java.lang.String testName,
java.lang.String bladeId,
java.lang.String eventTypeLabel,
EventFilter filter)
Counts the number of available events matching a given filter.
|
java.util.Properties |
getBladeProperties(java.lang.String testName,
java.lang.String bladeId)
Gets the java system properties for the given blade from the given test run
|
java.lang.String[] |
getEventFieldLabels(java.lang.String testName,
java.lang.String bladeId,
java.lang.String eventTypeLabel)
Gets the labels of fields hold by a given event type.
|
java.io.Serializable |
getEventIterator(java.lang.String testName,
java.lang.String bladeId,
java.lang.String eventTypeLabel,
EventFilter filter)
Creates an event iterator.
|
BladeEvent[] |
getNextEvents(java.io.Serializable iteratorKey,
int count)
Gets next events from the given event iterator.
|
BladeDescriptor[] |
getTestPlan(java.lang.String testName,
BladeFilter filter)
Gets the test plan definition for a given test run name.
|
TestDescriptor[] |
getTests(TestFilter filter)
Gets a list of test runs matching a given filter.
|
java.lang.String[] |
listFc() |
java.lang.Object |
lookupFc(java.lang.String clientItfName) |
void |
unbindFc(java.lang.String clientItfName) |
public java.lang.Object lookupFc(java.lang.String clientItfName)
lookupFc
in interface org.objectweb.fractal.api.control.BindingController
public void bindFc(java.lang.String clientItfName, java.lang.Object serverItf)
bindFc
in interface org.objectweb.fractal.api.control.BindingController
public void unbindFc(java.lang.String clientItfName)
unbindFc
in interface org.objectweb.fractal.api.control.BindingController
public java.lang.String[] listFc()
listFc
in interface org.objectweb.fractal.api.control.BindingController
public TestDescriptor[] getTests(TestFilter filter) throws ClifException
getTests
in interface AnalyzerExternalAccess
filter
- the test run filter. If null, all available test runs are returned.ClifException
- the clif exceptionpublic java.util.Properties getBladeProperties(java.lang.String testName, java.lang.String bladeId) throws ClifException
getBladeProperties
in interface AnalyzerExternalAccess
testName
- the test run namebladeId
- the blade identifierClifException
- the clif exceptionTestDescriptor.getName()
,
BladeDescriptor.getId()
public java.lang.String[] getEventFieldLabels(java.lang.String testName, java.lang.String bladeId, java.lang.String eventTypeLabel)
getEventFieldLabels
in interface AnalyzerExternalAccess
testName
- the test run namebladeId
- the blade identifier from the given test runeventTypeLabel
- the label of the event typepublic java.io.Serializable getEventIterator(java.lang.String testName, java.lang.String bladeId, java.lang.String eventTypeLabel, EventFilter filter) throws ClifException
getEventIterator
in interface AnalyzerExternalAccess
testName
- the test name to retrieve events frombladeId
- the blade identifier in this test to retrieve events fromeventTypeLabel
- the type label of the retrieved eventsfilter
- the filter object to be used for event selection. If null, the iterator
will return all events. The filter object may throw a NoMoreEvent exception, in which
case current iterator step stops and currently selected events are returned.ClifException
- the given test, blade, or event type could not be foundgetNextEvents(Serializable, int)
,
closeEventIterator(Serializable)
public BladeEvent[] getNextEvents(java.io.Serializable iteratorKey, int count) throws ClifException
getNextEvents
in interface AnalyzerExternalAccess
iteratorKey
- the key for the target event iteratorcount
- the number of event to get (at most)ClifException
getEventIterator(String, String, String, EventFilter)
,
closeEventIterator(Serializable)
public void closeEventIterator(java.io.Serializable iteratorKey)
closeEventIterator
in interface AnalyzerExternalAccess
iteratorKey
- the key for the target event iteratorpublic long countEvents(java.lang.String testName, java.lang.String bladeId, java.lang.String eventTypeLabel, EventFilter filter) throws ClifException
countEvents
in interface AnalyzerExternalAccess
testName
- the test name to retrieve events frombladeId
- the blade identifier in this test to retrieve events fromeventTypeLabel
- the type label of the retrieved eventsfilter
- the filter object to be used for event selection. If null, all events
are counted. Counting stops before completion if the filter object throws a NoMoreEvent
exception, in which case count value before exception is returned.ClifException
- the clif exceptionpublic BladeDescriptor[] getTestPlan(java.lang.String testName, BladeFilter filter) throws ClifException
AnalyzerExternalAccess
getTestPlan
in interface AnalyzerExternalAccess
testName
- the test run namefilter
- retains only blades (injectors, probes) accepted by this
filter. If null, all blades are retained.ClifException
- the clif exception