use of com.cloud.api.response.AsyncJobResponse in project CloudStack-archive by CloudStack-extras.
the class QueryAsyncJobResultCmd method execute.
@Override
public void execute() {
AsyncJobResponse response = _responseGenerator.queryJobResult(this);
response.setResponseName(getCommandName());
this.setResponseObject(response);
}
use of com.cloud.api.response.AsyncJobResponse in project CloudStack-archive by CloudStack-extras.
the class BaseAsyncCmd method getResponse.
public ResponseObject getResponse(long jobId) {
AsyncJobResponse response = new AsyncJobResponse();
response.setJobId(jobId);
response.setResponseName(getCommandName());
return response;
}
use of com.cloud.api.response.AsyncJobResponse in project CloudStack-archive by CloudStack-extras.
the class ListAsyncJobsCmd method execute.
@Override
public void execute() {
List<? extends AsyncJob> result = _mgr.searchForAsyncJobs(this);
ListResponse<AsyncJobResponse> response = new ListResponse<AsyncJobResponse>();
List<AsyncJobResponse> jobResponses = new ArrayList<AsyncJobResponse>();
for (AsyncJob job : result) {
jobResponses.add(_responseGenerator.createAsyncJobResponse(job));
}
response.setResponses(jobResponses);
response.setResponseName(getCommandName());
this.setResponseObject(response);
}
Aggregations