/** * Copy constructor. * * @param cfg Configuration to copy. */ public HadoopConfiguration(HadoopConfiguration cfg) { // Preserve alphabetic order. // TODO: IGNITE-404: Uncomment when fixed. //extExecution = cfg.isExternalExecution(); finishedJobInfoTtl = cfg.getFinishedJobInfoTtl(); planner = cfg.getMapReducePlanner(); maxParallelTasks = cfg.getMaxParallelTasks(); maxTaskQueueSize = cfg.getMaxTaskQueueSize(); libNames = cfg.getNativeLibraryNames(); }
/** * Create data transfer object for hadoop configuration. * * @param src Hadoop configuration. */ public VisorHadoopConfiguration(HadoopConfiguration src) { planner = compactClass(src.getMapReducePlanner()); // TODO: IGNITE-404: Uncomment when fixed. //extExecution = cfg.isExternalExecution(); finishedJobInfoTtl = src.getFinishedJobInfoTtl(); maxParallelTasks = src.getMaxParallelTasks(); maxTaskQueueSize = src.getMaxTaskQueueSize(); libNames = U.sealList(src.getNativeLibraryNames()); }
if (ctx.configuration().getFinishedJobInfoTtl() > 0) { ExpiryPolicy finishedJobPlc = new ModifiedExpiryPolicy( new Duration(MILLISECONDS, ctx.configuration().getFinishedJobInfoTtl()));
/** * Copy constructor. * * @param cfg Configuration to copy. */ public HadoopConfiguration(HadoopConfiguration cfg) { // Preserve alphabetic order. // TODO: IGNITE-404: Uncomment when fixed. //extExecution = cfg.isExternalExecution(); finishedJobInfoTtl = cfg.getFinishedJobInfoTtl(); planner = cfg.getMapReducePlanner(); maxParallelTasks = cfg.getMaxParallelTasks(); maxTaskQueueSize = cfg.getMaxTaskQueueSize(); libNames = cfg.getNativeLibraryNames(); }
/** * Create data transfer object for hadoop configuration. * * @param src Hadoop configuration. */ public VisorHadoopConfiguration(HadoopConfiguration src) { planner = compactClass(src.getMapReducePlanner()); // TODO: IGNITE-404: Uncomment when fixed. //extExecution = cfg.isExternalExecution(); finishedJobInfoTtl = src.getFinishedJobInfoTtl(); maxParallelTasks = src.getMaxParallelTasks(); maxTaskQueueSize = src.getMaxTaskQueueSize(); libNames = U.sealList(src.getNativeLibraryNames()); }