Search in sources :

Example 1 with PrepareFilesAnswer

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

the class VirtualRoutingResource method execute.

private Answer execute(PrepareFilesCommand cmd) {
    String fileList = String.join(" ", cmd.getFilesToRetrieveList());
    _eachTimeout = Duration.standardSeconds(cmd.getTimeout());
    final ExecutionResult result = _vrDeployer.executeInVR(cmd.getRouterAccessIp(), VRScripts.RETRIEVE_DIAGNOSTICS, fileList, _eachTimeout);
    if (result.isSuccess()) {
        return new PrepareFilesAnswer(cmd, true, result.getDetails());
    }
    return new PrepareFilesAnswer(cmd, false, result.getDetails());
}
Also used : PrepareFilesAnswer(org.apache.cloudstack.diagnostics.PrepareFilesAnswer) ExecutionResult(com.cloud.utils.ExecutionResult)

Aggregations

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