Search in sources :

Example 1 with TupleCollection

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();
}
Also used : TupleCollection(com.ibm.streamsx.topology.internal.tester.TupleCollection) JavaTestableGraph(com.ibm.streams.flow.javaprimitives.JavaTestableGraph)

Example 2 with TupleCollection

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();
    }
}
Also used : TupleCollection(com.ibm.streamsx.topology.internal.tester.TupleCollection) Topology(com.ibm.streamsx.topology.Topology)

Example 3 with TupleCollection

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();
    }
}
Also used : TupleCollection(com.ibm.streamsx.topology.internal.tester.TupleCollection) Topology(com.ibm.streamsx.topology.Topology)

Aggregations

TupleCollection (com.ibm.streamsx.topology.internal.tester.TupleCollection)3 Topology (com.ibm.streamsx.topology.Topology)2 JavaTestableGraph (com.ibm.streams.flow.javaprimitives.JavaTestableGraph)1