Search in sources :

Example 1 with PerformanceMonitorAnswer

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);
    }
}
Also used : PerformanceMonitorAnswer(com.cloud.agent.api.PerformanceMonitorAnswer) Connection(com.xensource.xenapi.Connection)

Aggregations

PerformanceMonitorAnswer (com.cloud.agent.api.PerformanceMonitorAnswer)1 Connection (com.xensource.xenapi.Connection)1