Commit d5ebc1a0 authored by liugaoling's avatar liugaoling

add params

parent 549ae5f6
......@@ -10,7 +10,7 @@ public interface CloudamURL {
String AUTH_URL_SUFFIX = "uaa/users/current";
String CREATE_JOB_URL_SUFFIX = "c3ce/cloud-bursting/job";
String CREATE_JOB_URL_SUFFIX = "c3ce/cloud-bursting/job/workflow";
String GET_JOB_URL_SUFFIX = "c3ce/cloud-bursting/job/workflow";
......
......@@ -55,8 +55,8 @@ public class CreateJobRequest extends CloudamRequest<CreateJobResponse> {
jsonObject.put("zoneId", jobDescription.getZoneId());
jsonObject.put("os", jobDescription.getAutoCluster().getOs());
jsonObject.put("slurmCommand", Base64.getEncoder().encodeToString(buildSbatchSubmit(jobDescription).getBytes()));
jsonObject.put("masterId", jobDescription.getProjectId());
System.out.println(jsonObject.toJSONString());
jsonObject.put("workflowJobId", jobDescription.getWorkflowJobId());
jsonObject.put("username", jobDescription.getUsername());
return jsonObject;
}
......
......@@ -14,6 +14,16 @@ public class JobDescription {
*/
private String name;
/**
* 作业用户名
*/
private String username;
/**
* 作业用户名
*/
private String workflowJobId;
/**
* 计算区ID
*/
......@@ -67,6 +77,22 @@ public class JobDescription {
this.name = name;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getWorkflowJobId() {
return workflowJobId;
}
public void setWorkflowJobId(String workflowJobId) {
this.workflowJobId = workflowJobId;
}
public String getZoneId() {
return zoneId;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment