/// <summary>
 /// Constructor for injecting dependencies
 /// </summary>
 /// <param name="emrJobLogger">Instantiated object to log information about the EMR Job</param>
 /// <param name="emrJobStateChecker">Instantiated object to check the current state of the EMR Job</param>
 /// <param name="settings">Settings to replace placeholders</param>
 /// <param name="emrClient">Instantiated EMR Client to make requests to the Amazon EMR Service</param>
 /// <param name="swfClient">Instantiated SWF Client to make requests to the Amazon SWF Service</param>
 /// <param name="swfConfiguration">Instantiated object that provides configuration info for the current SWF</param>
 public SwfActivitiesRunner(IEmrJobLogger emrJobLogger, IEmrJobStateChecker emrJobStateChecker, IBuilderSettings settings, IAmazonElasticMapReduce emrClient, IAmazonSimpleWorkflow swfClient, ISwfConfiguration swfConfiguration)
 {
     this.EmrJobLogger       = emrJobLogger;
     this.EmrJobStateChecker = emrJobStateChecker;
     this.Settings           = settings;
     this.EmrClient          = emrClient;
     this.SwfClient          = swfClient;
     this.SwfConfiguration   = swfConfiguration;
 }
 /// <summary>
 /// Constructor for injecting dependencies
 /// </summary>
 /// <param name="emrJobLogger">Instantiated object to log information about the EMR Job</param>
 /// <param name="emrJobStateChecker">Instantiated object to check the current state of the EMR Job</param>
 /// <param name="emrClient">Instantiated EMR Client to make requests to the Amazon EMR Service</param>
 /// <param name="settings">Settings to replace placeholders</param>
 /// <param name="emrActivitiesEnumerator">Iterator through the job flow's activities</param>
 public EmrActivitiesRunner(IEmrJobLogger emrJobLogger, IEmrJobStateChecker emrJobStateChecker, IAmazonElasticMapReduce emrClient, IBuilderSettings settings, EmrActivitiesIteratorBase emrActivitiesEnumerator)
 {
     this.hasErrors             = false;
     this.Settings              = settings;
     this.EmrClient             = emrClient;
     this.EmrJobLogger          = emrJobLogger;
     this.EmrJobStateChecker    = emrJobStateChecker;
     this.EmrActivitiesIterator = emrActivitiesEnumerator;
 }
Esempio n. 3
0
 /// <summary>
 /// Constructor for injecting dependencies
 /// </summary>
 /// <param name="emrJobLogger">Instantiated object to log information about the EMR Job</param>
 /// <param name="swfClient">Instantiated SWF Client to make requests to the Amazon SWF Service</param>
 /// <param name="swfConfiguration">Instantiated object that provides configuration info for the current SWF</param>
 public SwfManager(IEmrJobLogger emrJobLogger, IAmazonSimpleWorkflow swfClient, ISwfConfiguration swfConfiguration)
 {
     this.EmrJobLogger     = emrJobLogger;
     this.SwfClient        = swfClient;
     this.SwfConfiguration = swfConfiguration;
 }