// TODO: create a command to create instances of this class then pass it to Submit*Job command?
 public PSLivyRequestBase(SparkRequest jobCreationRequest)
 {
     this.Name           = jobCreationRequest?.Name;
     this.File           = jobCreationRequest?.File;
     this.ClassName      = jobCreationRequest?.ClassName;
     this.Arguments      = jobCreationRequest?.Arguments;
     this.Jars           = jobCreationRequest?.Jars;
     this.Files          = jobCreationRequest?.Files;
     this.Archives       = jobCreationRequest?.Archives;
     this.Configuration  = jobCreationRequest?.Configuration;
     this.DriverMemory   = jobCreationRequest?.DriverMemory;
     this.DriverCores    = jobCreationRequest?.DriverCores;
     this.ExecutorMemory = jobCreationRequest?.ExecutorMemory;
     this.ExecutorCores  = jobCreationRequest?.ExecutorCores;
     this.ExecutorCount  = jobCreationRequest?.ExecutorCount;
 }
 public PSLivyStateInformation(
     DateTimeOffset?notStartedAt,
     DateTimeOffset?startingAt,
     DateTimeOffset?deadAt,
     DateTimeOffset?terminatedAt,
     DateTimeOffset?recoveringAt,
     string currentState,
     SparkRequest jobCreationRequest)
 {
     this.NotStartedAt       = notStartedAt;
     this.StartingAt         = startingAt;
     this.DeadAt             = deadAt;
     this.TerminatedAt       = terminatedAt;
     this.RecoveringAt       = recoveringAt;
     this.CurrentState       = currentState;
     this.JobCreationRequest = jobCreationRequest != null ? new PSLivyRequestBase(jobCreationRequest) : null;
 }
Example #3
0
 public static SparkBatchJobState SparkBatchJobState(DateTimeOffset?notStartedAt = default, DateTimeOffset?startingAt = default, DateTimeOffset?runningAt = default, DateTimeOffset?deadAt = default, DateTimeOffset?successAt = default, DateTimeOffset?terminatedAt = default, DateTimeOffset?recoveringAt = default, string currentState = default, SparkRequest jobCreationRequest = default)
 {
     return(new SparkBatchJobState(notStartedAt, startingAt, runningAt, deadAt, successAt, terminatedAt, recoveringAt, currentState, jobCreationRequest));
 }
Example #4
0
 public static SparkSessionState SparkSessionState(DateTimeOffset?notStartedAt = default, DateTimeOffset?startingAt = default, DateTimeOffset?idleAt = default, DateTimeOffset?deadAt = default, DateTimeOffset?shuttingDownAt = default, DateTimeOffset?terminatedAt = default, DateTimeOffset?recoveringAt = default, DateTimeOffset?busyAt = default, DateTimeOffset?errorAt = default, string currentState = default, SparkRequest jobCreationRequest = default)
 {
     return(new SparkSessionState(notStartedAt, startingAt, idleAt, deadAt, shuttingDownAt, terminatedAt, recoveringAt, busyAt, errorAt, currentState, jobCreationRequest));
 }