Search in sources :

Example 1 with MemoryOffsetBackingStore

use of org.apache.kafka.connect.storage.MemoryOffsetBackingStore in project ignite by apache.

the class IgniteSourceConnectorTest method beforeTest.

/** {@inheritDoc} */
@Override
protected void beforeTest() throws Exception {
    kafkaBroker = new TestKafkaBroker();
    WorkerConfig workerCfg = new StandaloneConfig(makeWorkerProps());
    MemoryOffsetBackingStore offBackingStore = new MemoryOffsetBackingStore();
    offBackingStore.configure(workerCfg);
    worker = new Worker(WORKER_ID, new SystemTime(), workerCfg, offBackingStore);
    worker.start();
    herder = new StandaloneHerder(worker);
    herder.start();
}
Also used : StandaloneHerder(org.apache.kafka.connect.runtime.standalone.StandaloneHerder) WorkerConfig(org.apache.kafka.connect.runtime.WorkerConfig) Worker(org.apache.kafka.connect.runtime.Worker) TestKafkaBroker(org.apache.ignite.stream.kafka.TestKafkaBroker) StandaloneConfig(org.apache.kafka.connect.runtime.standalone.StandaloneConfig) MemoryOffsetBackingStore(org.apache.kafka.connect.storage.MemoryOffsetBackingStore) SystemTime(org.apache.kafka.common.utils.SystemTime)

Aggregations

TestKafkaBroker (org.apache.ignite.stream.kafka.TestKafkaBroker)1 SystemTime (org.apache.kafka.common.utils.SystemTime)1 Worker (org.apache.kafka.connect.runtime.Worker)1 WorkerConfig (org.apache.kafka.connect.runtime.WorkerConfig)1 StandaloneConfig (org.apache.kafka.connect.runtime.standalone.StandaloneConfig)1 StandaloneHerder (org.apache.kafka.connect.runtime.standalone.StandaloneHerder)1 MemoryOffsetBackingStore (org.apache.kafka.connect.storage.MemoryOffsetBackingStore)1