*
* @param context context of the scan
* @throws SalsaDeviceException
*/
public void pauseScan(IContext context) throws SalsaDeviceException {
DeviceProxy scanServerProxy;
String scanServerName = context.getScanServerName();
try {
scanServerProxy = getScanServerProxy(scanServerName);
scanServerProxy.command_inout("Pause");
}
catch (DevFailed e) {
invalidateScanServerProxy(scanServerName);
e.printStackTrace();
throw new SalsaDeviceException("Error : cannot pause the scan : " + e.getMessage(), e);