mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
152 lines
2.7 KiB
Java
152 lines
2.7 KiB
Java
package com.cloud.async.executor;
|
|
|
|
import java.util.Date;
|
|
|
|
import com.cloud.async.AsyncInstanceCreateStatus;
|
|
import com.cloud.serializer.Param;
|
|
import com.cloud.storage.Volume.VolumeType;
|
|
import com.cloud.storage.upload.UploadState;
|
|
|
|
public class ExtractJobResultObject {
|
|
|
|
public ExtractJobResultObject(Long accountId, String typeName, UploadState currState, int i, Long uploadId){
|
|
this.accountId = accountId;
|
|
this.name = typeName;
|
|
this.state = currState.toString();
|
|
}
|
|
|
|
public ExtractJobResultObject(){
|
|
}
|
|
|
|
@Param(name="id")
|
|
private long id;
|
|
|
|
@Param(name="name")
|
|
private String name;
|
|
|
|
@Param(name="uploadPercentage")
|
|
private int uploadPercent;
|
|
|
|
@Param(name="uploadStatus")
|
|
private String uploadStatus;
|
|
|
|
@Param(name="accountid")
|
|
long accountId;
|
|
|
|
@Param(name="result_string")
|
|
String result_string;
|
|
|
|
public int getUploadPercent() {
|
|
return uploadPercent;
|
|
}
|
|
|
|
public void setUploadPercent(int i) {
|
|
this.uploadPercent = i;
|
|
}
|
|
|
|
public String getUploadStatus() {
|
|
return uploadStatus;
|
|
}
|
|
|
|
public void setUploadStatus(String uploadStatus) {
|
|
this.uploadStatus = uploadStatus;
|
|
}
|
|
|
|
public String getResult_string() {
|
|
return result_string;
|
|
}
|
|
|
|
public void setResult_string(String resultString) {
|
|
result_string = resultString;
|
|
}
|
|
|
|
@Param(name="created")
|
|
private Date createdDate;
|
|
|
|
@Param(name="state")
|
|
private String state;
|
|
|
|
@Param(name="storagetype")
|
|
String storageType;
|
|
|
|
@Param(name="storage")
|
|
private String storage;
|
|
|
|
@Param(name="zoneid")
|
|
private Long zoneId;
|
|
|
|
public Long getZoneId() {
|
|
return zoneId;
|
|
}
|
|
|
|
public void setZoneId(Long zoneId) {
|
|
this.zoneId = zoneId;
|
|
}
|
|
|
|
public String getZoneName() {
|
|
return zoneName;
|
|
}
|
|
|
|
public void setZoneName(String zoneName) {
|
|
this.zoneName = zoneName;
|
|
}
|
|
|
|
@Param(name="zonename")
|
|
private String zoneName;
|
|
|
|
private long size;
|
|
|
|
public String getStorage() {
|
|
return storage;
|
|
}
|
|
|
|
public void setStorage(String storage) {
|
|
this.storage = storage;
|
|
}
|
|
|
|
public void setId(long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setSize(long size) {
|
|
this.size = size;
|
|
}
|
|
|
|
public void setCreatedDate(Date createdDate) {
|
|
this.createdDate = createdDate;
|
|
}
|
|
|
|
public Date getCreatedDate() {
|
|
return createdDate;
|
|
}
|
|
|
|
public void setState(String status) {
|
|
this.state = status;
|
|
}
|
|
|
|
public String getState() {
|
|
return state;
|
|
}
|
|
|
|
public void setStorageType (String storageType) {
|
|
this.storageType = storageType;
|
|
}
|
|
|
|
public String getStorageType() {
|
|
return storageType;
|
|
}
|
|
|
|
}
|