7 using System.Collections.Generic;
19 public class GetJobRequest : KineticaData
27 public const string JOB_TAG =
"job_tag";
32 public long job_id {
get;
set; }
43 public IDictionary<string, string>
options {
get;
set; } =
new Dictionary<string, string>();
64 IDictionary<string, string>
options =
null)
73 public class GetJobResponse : KineticaData
78 public struct JobStatus
81 public const string RUNNING =
"RUNNING";
86 public const string DONE =
"DONE";
92 public const string ERROR =
"ERROR";
96 public const string CANCELLED =
"CANCELLED";
104 public struct ResponseEncoding
109 public const string BINARY =
"binary";
114 public const string JSON =
"json";
121 public struct StatusMap
133 public string endpoint {
get;
set; }
165 public bool running {
get;
set; }
217 public IDictionary<string, string>
status_map {
get;
set; } =
new Dictionary<string, string>();
220 public IDictionary<string, string>
info {
get;
set; } =
new Dictionary<string, string>();
string job_response_str
The json-encoded response of the job.
byte [] job_response
The binary-encoded response of the job.
const string RUNNING
The job is currently executing.
const string BINARY
The job result is binary-encoded.
bool running
True if the end point is still executing.
IDictionary< string, string > status_map
Map of various status strings for the executed job.
string endpoint
The endpoint which is being executed asynchronously.
GetJobRequest(long job_id, IDictionary< string, string > options=null)
Constructs a GetJobRequest object with the specified parameters.
const string JOB_TAG
Job tag returned in call to create the job
const string JSON
The job result is json-encoded.
long job_id
A unique identifier for the job whose status and result is to be fetched.
string job_status
Status of the submitted job.
bool successful
True if the job execution completed and no errors were encountered.
string response_encoding
The encoding of the job result (contained in job_response or job_response_str.
IDictionary< string, string > options
Optional parameters.
int progress
Approximate percentage of the job completed.
const string CANCELLED
Job cancellation was requested while the execution was in progress.
const string ERROR_MESSAGE
Explains what error occurred while running the job asynchronously.
IDictionary< string, string > info
Additional information.
const string DONE
The job execution has successfully completed and the response is included in the job_response or job_...
const string ERROR
The job was attempted, but an error was encountered.
GetJobRequest()
Constructs a GetJobRequest object with default parameters.