Support async parameter in Job APIs.
This commit is contained in:
@@ -79,3 +79,12 @@ void CreateJobFileRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
bool CreateJobFileRequest::getAsync() const {
|
||||
return async_;
|
||||
}
|
||||
|
||||
void CreateJobFileRequest::setAsync(bool async) {
|
||||
async_ = async;
|
||||
setParameter(std::string("Async"), async ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -52,3 +52,12 @@ void DeleteJobsRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
bool DeleteJobsRequest::getAsync() const {
|
||||
return async_;
|
||||
}
|
||||
|
||||
void DeleteJobsRequest::setAsync(bool async) {
|
||||
async_ = async;
|
||||
setParameter(std::string("Async"), async ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -52,3 +52,12 @@ void RerunJobsRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
bool RerunJobsRequest::getAsync() const {
|
||||
return async_;
|
||||
}
|
||||
|
||||
void RerunJobsRequest::setAsync(bool async) {
|
||||
async_ = async;
|
||||
setParameter(std::string("Async"), async ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -52,3 +52,12 @@ void StopJobsRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
bool StopJobsRequest::getAsync() const {
|
||||
return async_;
|
||||
}
|
||||
|
||||
void StopJobsRequest::setAsync(bool async) {
|
||||
async_ = async;
|
||||
setParameter(std::string("Async"), async ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -151,6 +151,15 @@ void SubmitJobRequest::setRunasUser(const std::string &runasUser) {
|
||||
setParameter(std::string("RunasUser"), runasUser);
|
||||
}
|
||||
|
||||
int SubmitJobRequest::getCpu() const {
|
||||
return cpu_;
|
||||
}
|
||||
|
||||
void SubmitJobRequest::setCpu(int cpu) {
|
||||
cpu_ = cpu;
|
||||
setParameter(std::string("Cpu"), std::to_string(cpu));
|
||||
}
|
||||
|
||||
std::string SubmitJobRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
@@ -205,6 +214,15 @@ void SubmitJobRequest::setNode(int node) {
|
||||
setParameter(std::string("Node"), std::to_string(node));
|
||||
}
|
||||
|
||||
bool SubmitJobRequest::getAsync() const {
|
||||
return async_;
|
||||
}
|
||||
|
||||
void SubmitJobRequest::setAsync(bool async) {
|
||||
async_ = async;
|
||||
setParameter(std::string("Async"), async ? "true" : "false");
|
||||
}
|
||||
|
||||
int SubmitJobRequest::getTask() const {
|
||||
return task_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user