use of com.ibm.streamsx.topology.internal.tester.TupleCollection in project streamsx.topology by IBMStreams.
the class EmbeddedTester method submit.
@Override
public Future<JavaTestableGraph> submit(Topology app, Map<String, Object> config) throws Exception {
app.builder().checkSupportsEmbeddedMode();
SubmissionParameterManager.initializeEmbedded(app.builder(), config);
JavaTestableGraph tg = jot.executable(app.graph());
TupleCollection tester = (TupleCollection) app.getTester();
tester.setupEmbeddedTestHandlers(tg);
return tg.execute();
}
use of com.ibm.streamsx.topology.internal.tester.TupleCollection in project streamsx.topology by IBMStreams.
the class StandaloneTester method preInvoke.
@Override
void preInvoke(AppEntity entity, File bundle) {
Topology app = entity.app;
if (app != null && app.hasTester()) {
TupleCollection collector = (TupleCollection) app.getTester();
collector.startLocalCollector();
}
}
use of com.ibm.streamsx.topology.internal.tester.TupleCollection in project streamsx.topology by IBMStreams.
the class DistributedTester method preInvoke.
@Override
void preInvoke(AppEntity entity, File bundle) {
Topology app = entity.app;
if (app != null && app.hasTester()) {
TupleCollection collector = (TupleCollection) app.getTester();
collector.startLocalCollector();
}
}
Aggregations