@Inject private FlatTopology(@Parameter(GroupCommSenderStage.class) final EStage<GroupCommunicationMessage> senderStage, @Parameter(CommGroupNameClass.class) final Class<? extends Name<String>> groupName, @Parameter(OperatorNameClass.class) final Class<? extends Name<String>> operatorName, @Parameter(DriverIdentifier.class) final String driverId) { this.senderStage = senderStage; this.groupName = groupName; this.operName = operatorName; this.driverId = driverId; }
@Inject public ValidateConfiguration( @Parameter(Target.class) final String injectedClass, @Parameter(ClassHierarchyIn.class) final File ch, @Parameter(ConfigurationIn.class) final File inConfig, @Parameter(ConfigurationOut.class) final File outConfig) { this.target = injectedClass; this.ch = ch; this.inConfig = inConfig; this.outConfig = outConfig; }
@Inject LocalDriverConfigurationProviderImpl(@Parameter(MaxNumberOfEvaluators.class) final int maxEvaluators, @Parameter(JVMHeapSlack.class) final double jvmHeapSlack, @Parameter(RackNames.class) final Set<String> rackNames) { this.maxEvaluators = maxEvaluators; this.jvmHeapSlack = jvmHeapSlack; this.rackNames = rackNames; }
@Inject SingleDataCenterEvaluatorToPartitionStrategy( @Parameter(JobConfExternalConstructor.InputFormatClass.class) final String inputFormatClassName, @Parameter(DistributedDataSetPartitionSerializer.DistributedDataSetPartitions.class) final Set<String> serializedDataPartitions) { super(inputFormatClassName, serializedDataPartitions); }
@Inject MultiDataCenterEvaluatorToPartitionStrategy( @Parameter(JobConfExternalConstructor.InputFormatClass.class) final String inputFormatClassName, @Parameter(DistributedDataSetPartitionSerializer.DistributedDataSetPartitions.class) final Set<String> serializedDataPartitions) { super(inputFormatClassName, serializedDataPartitions); }
@Inject public InputFormatLoadingService( final EvaluatorToPartitionStrategy<InputSplit> evaluatorToPartitionStrategy, @Parameter(DataLoadingRequestBuilder.LoadDataIntoMemory.class) final boolean inMemory, @Parameter(JobConfExternalConstructor.InputFormatClass.class) final String inputFormatClass) { this.inMemory = inMemory; this.inputFormatClass = inputFormatClass; this.evaluatorToPartitionStrategy = evaluatorToPartitionStrategy; }
@Inject REEFErrorHandler( @Parameter(ErrorHandlerRID.class) final String errorHandlerRID, @Parameter(LaunchID.class) final String launchID, final InjectionFuture<RemoteManager> remoteManager, final ExceptionCodec exceptionCodec) { this.errorHandlerRID = errorHandlerRID; this.remoteManager = remoteManager; this.launchID = launchID; this.exceptionCodec = exceptionCodec; }
@Inject TaskStatus(@Parameter(TaskConfigurationOptions.Identifier.class) final String taskId, @Parameter(ContextIdentifier.class) final String contextId, @Parameter(TaskConfigurationOptions.TaskMessageSources.class) final Set<TaskMessageSource> evaluatorMessageSources, final HeartBeatManager heartBeatManager, final ExceptionCodec exceptionCodec) { this.taskId = taskId; this.contextId = contextId; this.heartBeatManager = heartBeatManager; this.evaluatorMessageSources = evaluatorMessageSources; this.exceptionCodec = exceptionCodec; }
@Inject TaskLifeCycleHandlers(@Parameter(TaskConfigurationOptions.StopHandlers.class) final Set<EventHandler<TaskStop>> taskStopHandlers, @Parameter(TaskConfigurationOptions.StartHandlers.class) final Set<EventHandler<TaskStart>> taskStartHandlers, final TaskStartImpl taskStart, final TaskStopImpl taskStop) { this.taskStopHandlers = taskStopHandlers; this.taskStartHandlers = taskStartHandlers; this.taskStart = taskStart; this.taskStop = taskStop; }
@Inject ContextLifeCycle(@Parameter(ContextIdentifier.class) final String identifier, @Parameter(ContextMessageHandlers.class) final Set<EventHandler<byte[]>> contextMessageHandlers, @Parameter(ContextStartHandlers.class) final Set<EventHandler<ContextStart>> contextStartHandlers, @Parameter(ContextStopHandlers.class) final Set<EventHandler<ContextStop>> contextStopHandlers, @Parameter(ContextMessageSources.class) final Set<ContextMessageSource> contextMessageSources) { this.identifier = identifier; this.contextStartHandlers = contextStartHandlers; this.contextStopHandlers = contextStopHandlers; this.contextMessageSources = contextMessageSources; this.contextMessageHandler = new BroadCastEventHandler<>(contextMessageHandlers); }
@Inject public ClientConnection( @Parameter(JobIdentifier.class) final String jobIdentifier, final JobStatusHandler jobStatusHandler) { this.jobIdentifier = jobIdentifier; this.jobStatusHandler = jobStatusHandler; }
@Inject private LocalMessageEnvironment(@Parameter(MessageParameters.SenderId.class) final String currentNodeId, final LocalMessageDispatcher dispatcher) { this.currentNodeId = currentNodeId; this.dispatcher = dispatcher; }
@Inject ClientWireUp(@Parameter(ClientPresent.class) final String clientPresent, final RuntimeErrorProtoHandler runtimeErrorProtoHandler, final JobStatusMessageHandler jobStatusMessageHandler) { this(null, clientPresent, runtimeErrorProtoHandler, jobStatusMessageHandler); }
@Inject JobJarMaker(final ConfigurationSerializer configurationSerializer, final REEFFileNames fileNames, @Parameter(DeleteTempFiles.class) final boolean deleteTempFilesOnExit) { this.configurationSerializer = configurationSerializer; this.fileNames = fileNames; this.deleteTempFilesOnExit = deleteTempFilesOnExit; }
/** * @param resourceStatusHandler the event handler to inform of resource changes. */ @Inject public ReefRunnableProcessObserver(@Parameter(RuntimeParameters.ResourceStatusHandler.class) final EventHandler<ResourceStatusEvent> resourceStatusHandler, final InjectionFuture<ResourceManager> resourceManager) { this.resourceStatusHandler = resourceStatusHandler; this.resourceManager = resourceManager; }
@Inject JobSubmissionDirectoryProviderImpl(@Parameter(JobSubmissionDirectoryPrefix.class) final String jobSubmissionDirectoryPrefix, final REEFFileNames fileNames) { this.jobSubmissionDirectory = jobSubmissionDirectoryPrefix; this.fileNames = fileNames; }
/** * Constructor - instantiated via TANG. * * @param outputPath path of the output directory on the local disk to write outputs. */ @Inject private TaskOutputStreamProviderLocal( @Parameter(TaskOutputService.OutputPath.class) final String outputPath) { this.outputPath = outputPath; }