|
@@ -17,8 +17,11 @@
|
|
*/
|
|
*/
|
|
package org.apache.ambari.server.agent;
|
|
package org.apache.ambari.server.agent;
|
|
|
|
|
|
|
|
+import org.codehaus.jackson.annotate.JsonProperty;
|
|
|
|
+
|
|
|
|
|
|
public class CommandReport {
|
|
public class CommandReport {
|
|
|
|
+
|
|
String role;
|
|
String role;
|
|
String actionId;
|
|
String actionId;
|
|
String stdout;
|
|
String stdout;
|
|
@@ -27,67 +30,94 @@ public class CommandReport {
|
|
int exitCode;
|
|
int exitCode;
|
|
private String clusterName;
|
|
private String clusterName;
|
|
private String serviceName;
|
|
private String serviceName;
|
|
|
|
+ private long taskId;
|
|
|
|
+
|
|
|
|
+ @JsonProperty("taskId")
|
|
|
|
+ public long getTaskId() {
|
|
|
|
+ return taskId;
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ @JsonProperty("taskId")
|
|
|
|
+ public void setTaskId(long taskId) {
|
|
|
|
+ this.taskId = taskId;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @JsonProperty("clusterName")
|
|
public void setClusterName(String clusterName) {
|
|
public void setClusterName(String clusterName) {
|
|
this.clusterName = clusterName;
|
|
this.clusterName = clusterName;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @JsonProperty("clusterName")
|
|
public String getClusterName() {
|
|
public String getClusterName() {
|
|
return this.clusterName;
|
|
return this.clusterName;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ @JsonProperty("actionId")
|
|
public String getActionId() {
|
|
public String getActionId() {
|
|
return this.actionId;
|
|
return this.actionId;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ @JsonProperty("actionId")
|
|
public void setActionId(String actionId) {
|
|
public void setActionId(String actionId) {
|
|
this.actionId = actionId;
|
|
this.actionId = actionId;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ @JsonProperty("stderr")
|
|
public String getStdErr() {
|
|
public String getStdErr() {
|
|
return this.stderr;
|
|
return this.stderr;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ @JsonProperty("stderr")
|
|
public void setStdErr(String stderr) {
|
|
public void setStdErr(String stderr) {
|
|
this.stderr = stderr;
|
|
this.stderr = stderr;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ @JsonProperty("exitcode")
|
|
public int getExitCode() {
|
|
public int getExitCode() {
|
|
return this.exitCode;
|
|
return this.exitCode;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ @JsonProperty("exitcode")
|
|
public void setExitCode(int exitCode) {
|
|
public void setExitCode(int exitCode) {
|
|
this.exitCode = exitCode;
|
|
this.exitCode = exitCode;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ @JsonProperty("stdout")
|
|
public String getStdOut() {
|
|
public String getStdOut() {
|
|
return this.stdout;
|
|
return this.stdout;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ @JsonProperty("stdout")
|
|
public void setStdOut(String stdout) {
|
|
public void setStdOut(String stdout) {
|
|
this.stdout = stdout;
|
|
this.stdout = stdout;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @JsonProperty("role")
|
|
public String getRole() {
|
|
public String getRole() {
|
|
return role;
|
|
return role;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ @JsonProperty("role")
|
|
public void setRole(String role) {
|
|
public void setRole(String role) {
|
|
this.role = role;
|
|
this.role = role;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ @JsonProperty("status")
|
|
public String getStatus() {
|
|
public String getStatus() {
|
|
return status;
|
|
return status;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ @JsonProperty("status")
|
|
public void setStatus(String status) {
|
|
public void setStatus(String status) {
|
|
this.status = status;
|
|
this.status = status;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ @JsonProperty("serviceName")
|
|
public String getServiceName() {
|
|
public String getServiceName() {
|
|
return serviceName;
|
|
return serviceName;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ @JsonProperty("serviceName")
|
|
public void setServiceName(String serviceName) {
|
|
public void setServiceName(String serviceName) {
|
|
this.serviceName = serviceName;
|
|
this.serviceName = serviceName;
|
|
}
|
|
}
|