use of com.cloud.agent.api.PerformanceMonitorAnswer in project cloudstack by apache.
the class CitrixPerformanceMonitorCommandWrapper method execute.
@Override
public Answer execute(final PerformanceMonitorCommand command, final CitrixResourceBase citrixResourceBase) {
final Connection conn = citrixResourceBase.getConnection();
final String perfMon = citrixResourceBase.getPerfMon(conn, command.getParams(), command.getWait());
if (perfMon == null) {
return new PerformanceMonitorAnswer(command, false, perfMon);
} else {
return new PerformanceMonitorAnswer(command, true, perfMon);
}
}
Aggregations