use of com.bakdata.conquery.models.messages.namespaces.WorkerMessage in project conquery by bakdata.
the class ForwardToWorker method react.
@Override
public void react(ShardNodeNetworkContext context) throws Exception {
Worker worker = Objects.requireNonNull(context.getWorkers().getWorker(workerId));
ConqueryMDC.setLocation(worker.toString());
WorkerMessage message = deserializeMessage(messageRaw, context.getWorkers().getBinaryMapper());
if (message instanceof SlowMessage) {
((SlowMessage) message).setProgressReporter(progressReporter);
}
message.react(worker);
}
Aggregations