@Override public void init(@Nonnull Context context) throws Exception { wrapped.init(context); }
/** * Wraps the provided {@code ProcessorMetaSupplier} with a {@code * Supplier<Processor>} that returns processors obtained from it. */ public static Supplier<Processor> supplierFrom(ProcessorMetaSupplier supplier, ProcessorSupplier.Context context) { try { supplier.init(context); } catch (Exception e) { throw sneakyThrow(e); } return supplierFrom(supplier.get(singletonList(LOCAL_ADDRESS)).apply(LOCAL_ADDRESS), context); }
metaSupplierContext.setJetInstance(jetInstance); metaSupplier.init(metaSupplierContext); supplier = metaSupplier.get(singletonList(LOCAL_ADDRESS)).apply(LOCAL_ADDRESS); TestProcessorSupplierContext supplierContext = new TestProcessorSupplierContext();
metaSupplier.getClass().getName(), vertex.getName())); try { metaSupplier.init(new MetaSupplierCtx(instance, jobId, executionId, jobConfig, logger, vertex.getName(), localParallelism, totalParallelism, clusterSize)); } catch (Exception e) {