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());
}
Aggregations