use of com.cloud.api.response.EventResponse in project CloudStack-archive by CloudStack-extras.
the class ListEventsCmd method execute.
@Override
public void execute() {
List<? extends Event> result = _mgr.searchForEvents(this);
ListResponse<EventResponse> response = new ListResponse<EventResponse>();
List<EventResponse> eventResponses = new ArrayList<EventResponse>();
for (Event event : result) {
eventResponses.add(_responseGenerator.createEventResponse(event));
}
response.setResponses(eventResponses);
response.setResponseName(getCommandName());
this.setResponseObject(response);
}
Aggregations