/// <summary> /// Runs HelloREEF using the IREEFClient passed into the constructor. /// </summary> private void Run() { // The driver configuration contains all the needed bindings. var helloDriverConfiguration = DriverConfiguration.ConfigurationModule .Set(DriverConfiguration.OnEvaluatorAllocated, GenericType <HelloDriver> .Class) .Set(DriverConfiguration.OnDriverStarted, GenericType <HelloDriver> .Class) .Build(); // The JobSubmission contains the Driver configuration as well as the files needed on the Driver. var helloJobSubmission = _jobSubmissionBuilderFactory.GetJobSubmissionBuilder() .AddDriverConfiguration(helloDriverConfiguration) .AddGlobalAssemblyForType(typeof(HelloDriver)) .SetJobIdentifier("HelloREEF") .Build(); _reefClient.Submit(helloJobSubmission); }
/// <summary> /// Runs HelloREEF using the IREEFClient passed into the constructor. /// </summary> private void Run() { // The driver configuration contains all the needed bindings. var helloDriverConfiguration = DriverConfiguration.ConfigurationModule .Set(DriverConfiguration.OnEvaluatorAllocated, GenericType <Driver> .Class) .Set(DriverConfiguration.OnDriverStarted, GenericType <Driver> .Class) .Set(DriverConfiguration.OnEvaluatorFailed, GenericType <Driver> .Class) .Set(DriverConfiguration.OnTaskFailed, GenericType <Driver> .Class) .Build(); // The JobSubmission contains the Driver configuration as well as the files needed on the Driver. var helloJobRequest = _jobRequestBuilder .AddDriverConfiguration(helloDriverConfiguration) .AddGlobalAssemblyForType(typeof(Driver)) .AddGlobalFile(Common.GlobalConfigFileName) .SetJobIdentifier(Utils.ReadStringArgumentFromConf(Common.GlobalConfigTaskName)) .Build(); _reefClient.Submit(helloJobRequest); }