use of com.hazelcast.jet.impl.execution.init.Contexts.ProcSupplierCtx in project hazelcast-jet by hazelcast.
the class ExecutionPlan method initProcSuppliers.
// End implementation of IdentifiedDataSerializable
private void initProcSuppliers() {
JetService service = nodeEngine.getService(JetService.SERVICE_NAME);
for (VertexDef vertex : vertices) {
ProcessorSupplier supplier = vertex.processorSupplier();
ILogger logger = nodeEngine.getLogger(supplier.getClass().getName() + '.' + vertex.name() + "#ProcessorSupplier");
supplier.init(new ProcSupplierCtx(service.getJetInstance(), logger, vertex.name(), vertex.localParallelism(), vertex.totalParallelism()));
}
}
use of com.hazelcast.jet.impl.execution.init.Contexts.ProcSupplierCtx in project hazelcast by hazelcast.
the class ExecutionPlan method initProcSuppliers.
// End implementation of IdentifiedDataSerializable
private void initProcSuppliers(long jobId, ConcurrentHashMap<String, File> tempDirectories, InternalSerializationService jobSerializationService) {
for (VertexDef vertex : vertices) {
ClassLoader processorClassLoader = isLightJob ? null : jobClassLoaderService.getProcessorClassLoader(jobId, vertex.name());
ProcessorSupplier supplier = vertex.processorSupplier();
String prefix = prefix(jobConfig.getName(), jobId, vertex.name(), "#PS");
ILogger logger = prefixedLogger(nodeEngine.getLogger(supplier.getClass()), prefix);
doWithClassLoader(processorClassLoader, () -> supplier.init(new ProcSupplierCtx(nodeEngine, jobId, executionId, jobConfig, logger, vertex.name(), vertex.localParallelism(), vertex.localParallelism() * memberCount, memberIndex, memberCount, isLightJob, partitionAssignment, tempDirectories, jobSerializationService, subject, processorClassLoader)));
}
}
Aggregations