use of org.apache.gobblin.runtime.job_spec.AvroJobSpec in project incubator-gobblin by apache.
the class SimpleKafkaSpecProducer method addSpec.
@Override
public Future<?> addSpec(Spec addedSpec) {
AvroJobSpec avroJobSpec = convertToAvroJobSpec(addedSpec, SpecExecutor.Verb.ADD);
log.info("Adding Spec: " + addedSpec + " using Kafka.");
return getKafkaProducer().write(_serializer.serializeRecord(avroJobSpec), WriteCallback.EMPTY);
}
use of org.apache.gobblin.runtime.job_spec.AvroJobSpec in project incubator-gobblin by apache.
the class SimpleKafkaSpecProducer method updateSpec.
@Override
public Future<?> updateSpec(Spec updatedSpec) {
AvroJobSpec avroJobSpec = convertToAvroJobSpec(updatedSpec, SpecExecutor.Verb.UPDATE);
log.info("Updating Spec: " + updatedSpec + " using Kafka.");
return getKafkaProducer().write(_serializer.serializeRecord(avroJobSpec), WriteCallback.EMPTY);
}
Aggregations