Ejemplo n.º 1
0
 // TODO: create a command to create instances of this class then pass it to Submit*Job command?
 public PSLivyRequestBase(LivyRequestBase jobCreationRequest)
 {
     this.Name           = jobCreationRequest?.Name;
     this.File           = jobCreationRequest?.File;
     this.ClassName      = jobCreationRequest?.ClassName;
     this.Args           = jobCreationRequest?.Args;
     this.Jars           = jobCreationRequest?.Jars;
     this.Files          = jobCreationRequest?.Files;
     this.Archives       = jobCreationRequest?.Archives;
     this.Conf           = jobCreationRequest?.Conf;
     this.DriverMemory   = jobCreationRequest?.DriverMemory;
     this.DriverCores    = jobCreationRequest?.DriverCores;
     this.ExecutorMemory = jobCreationRequest?.ExecutorMemory;
     this.ExecutorCores  = jobCreationRequest?.NumExecutors;
     this.NumExecutors   = jobCreationRequest?.NumExecutors;
 }
 public PSLivyStateInformation(
     DateTimeOffset?notStartedAt,
     DateTimeOffset?startingAt,
     DateTimeOffset?deadAt,
     DateTimeOffset?killedAt,
     DateTimeOffset?recoveringAt,
     string currentState,
     LivyRequestBase jobCreationRequest)
 {
     this.NotStartedAt       = notStartedAt;
     this.StartingAt         = startingAt;
     this.DeadAt             = deadAt;
     this.KilledAt           = killedAt;
     this.RecoveringAt       = recoveringAt;
     this.CurrentState       = currentState;
     this.JobCreationRequest = jobCreationRequest != null ? new PSLivyRequestBase(jobCreationRequest) : null;
 }