Search in sources :

Example 1 with DiagnosticsAnswer

use of org.apache.cloudstack.diagnostics.DiagnosticsAnswer in project cloudstack by apache.

the class VirtualRoutingResource method execute.

private Answer execute(DiagnosticsCommand cmd) {
    _eachTimeout = Duration.standardSeconds(NumbersUtil.parseInt("60", 60));
    final ExecutionResult result = _vrDeployer.executeInVR(cmd.getRouterAccessIp(), VRScripts.DIAGNOSTICS, cmd.getSrciptArguments(), _eachTimeout);
    if (!result.isSuccess()) {
        return new DiagnosticsAnswer(cmd, false, result.getDetails());
    }
    return new DiagnosticsAnswer(cmd, result.isSuccess(), result.getDetails());
}
Also used : DiagnosticsAnswer(org.apache.cloudstack.diagnostics.DiagnosticsAnswer) ExecutionResult(com.cloud.utils.ExecutionResult)

Aggregations

ExecutionResult (com.cloud.utils.ExecutionResult)1 DiagnosticsAnswer (org.apache.cloudstack.diagnostics.DiagnosticsAnswer)1