@Inject TaskStatus(final @Parameter(TaskConfigurationOptions.Identifier.class) String taskId, final @Parameter(ContextIdentifier.class) String contextId, final @Parameter(TaskConfigurationOptions.TaskMessageSources.class) 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 REEFEventHandlers(final @Parameter(RuntimeParameters.NodeDescriptorHandler.class) EventHandler<DriverRuntimeProtocol.NodeDescriptorProto> nodeDescriptorProtoEventHandler, final @Parameter(RuntimeParameters.RuntimeStatusHandler.class) EventHandler<DriverRuntimeProtocol.RuntimeStatusProto> runtimeStatusProtoEventHandler, final @Parameter(RuntimeParameters.ResourceAllocationHandler.class) EventHandler<DriverRuntimeProtocol.ResourceAllocationProto> resourceAllocationHandler, final @Parameter(RuntimeParameters.ResourceStatusHandler.class) EventHandler<DriverRuntimeProtocol.ResourceStatusProto> resourceStatusHandler) { this.resourceAllocationHandler = resourceAllocationHandler; this.resourceStatusHandler = resourceStatusHandler; this.runtimeStatusHandler = runtimeStatusProtoEventHandler; this.nodeDescriptorProtoEventHandler = nodeDescriptorProtoEventHandler; }
@Inject TaskLifeCycleHandlers(final @Parameter(TaskConfigurationOptions.StopHandlers.class) Set<EventHandler<TaskStop>> taskStopHandlers, final @Parameter(TaskConfigurationOptions.StartHandlers.class) Set<EventHandler<TaskStart>> taskStartHandlers, final TaskStartImpl taskStart, final TaskStopImpl taskStop) { this.taskStopHandlers = taskStopHandlers; this.taskStartHandlers = taskStartHandlers; this.taskStart = taskStart; this.taskStop = taskStop; }
@Inject REEFErrorHandler(final InjectionFuture<RemoteManager> remoteManager, final @Parameter(ErrorHandlerRID.class) String errorHandlerRID, final @Parameter(LaunchID.class) String launchID, final ExceptionCodec exceptionCodec) { this.errorHandlerRID = errorHandlerRID; this.remoteManager = remoteManager; this.launchID = launchID; this.exceptionCodec = exceptionCodec; }
@Inject ContextLifeCycle(final @Parameter(ContextIdentifier.class) String identifier, final @Parameter(ContextMessageHandlers.class) Set<EventHandler<byte[]>> contextMessageHandlers, final @Parameter(ContextStartHandlers.class) Set<EventHandler<ContextStart>> contextStartHandlers, final @Parameter(ContextStopHandlers.class) Set<EventHandler<ContextStop>> contextStopHandlers, final @Parameter(ContextMessageSources.class) Set<ContextMessageSource> contextMessageSources) { this.identifier = identifier; this.contextStartHandlers = contextStartHandlers; this.contextStopHandlers = contextStopHandlers; this.contextMessageSources = contextMessageSources; this.contextMessageHandler = new BroadCastEventHandler<>(contextMessageHandlers); }
@Inject ClientWireUp(final @Parameter(ClientPresent.class) String clientPresent, final RuntimeErrorProtoHandler runtimeErrorProtoHandler, final JobStatusMessageHandler jobStatusMessageHandler) { this(null, clientPresent, runtimeErrorProtoHandler, jobStatusMessageHandler); }
@Inject public UnbindNSFromTask( final NetworkService<?> ns, final @Parameter(NetworkServiceParameters.NetworkServiceIdentifierFactory.class) IdentifierFactory idFac) { this.ns = ns; this.idFac = idFac; }
@Inject DriverIdleManager(final @Parameter(DriverIdleSources.class) Set<DriverIdlenessSource> idlenessSources, final InjectionFuture<DriverStatusManager> driverStatusManager) { this.idlenessSources = idlenessSources; this.driverStatusManager = driverStatusManager; }
@Inject public HttpServerReefEventHandler( final ReefEventStateManager reefStateManager, final @Parameter(ClientCloseHandlers.class) Set<EventHandler<Void>> clientCloseHandlers) { this.reefStateManager = reefStateManager; this.clientCloseHandlers = clientCloseHandlers; }
/** * @param resourceStatusHandler the event handler to inform of resource changes. */ @Inject public ReefRunnableProcessObserver(final @Parameter(RuntimeParameters.ResourceStatusHandler.class) EventHandler<DriverRuntimeProtocol.ResourceStatusProto> resourceStatusHandler, final InjectionFuture<ResourceManager> resourceManager) { this.resourceStatusHandler = resourceStatusHandler; this.resourceManager = resourceManager; }
@Inject DefaultContextMessageHandler(final @Parameter(ContextIdentifier.class) String contextID) { this.contextID = contextID; }
@Inject JobJarMaker(final ConfigurationSerializer configurationSerializer, final REEFFileNames fileNames, final @Parameter(DeleteTempFiles.class) boolean deleteTempFilesOnExit) { this.configurationSerializer = configurationSerializer; this.fileNames = fileNames; this.deleteTempFilesOnExit = deleteTempFilesOnExit; }
@Inject public BindNSToTask( final NetworkService<?> ns, final @Parameter(NetworkServiceParameters.NetworkServiceIdentifierFactory.class) IdentifierFactory idFac) { this.ns = ns; this.idFac = idFac; }
@Inject public ProfilingStopHandler(final @Parameter(LaunchID.class) String launchID) { this.launchID = launchID; }
@Inject TaskStopImpl(final @Parameter(TaskConfigurationOptions.Identifier.class) String id) { this.id = id; }
@Inject TaskStartImpl(final @Parameter(TaskConfigurationOptions.Identifier.class) String id) { this.id = id; }
@Inject HDInsightJobSubmissionHandler(final AzureUploader uploader, final JobJarMaker jobJarMaker, final HDInsightInstance hdInsightInstance, final ConfigurationSerializer configurationSerializer, final REEFFileNames filenames, final ClasspathProvider classpath, final @Parameter(JVMHeapSlack.class) double jvmHeapSlack) { this.uploader = uploader; this.jobJarMaker = jobJarMaker; this.hdInsightInstance = hdInsightInstance; this.configurationSerializer = configurationSerializer; this.filenames = filenames; this.classpath = classpath; this.jvmHeapSlack = jvmHeapSlack; }