public synchronized boolean isRecordingStarted(final Actor actor) throws DevFailed { final Director dir = actor.getDirector(); if (dir instanceof RecordingDirector) { final String dataRecorderName = ((RecordingDirector) actor.getDirector()).getDataRecorderName(); // bug 22954 if (TangoAccess.isCurrentStateEqualStateRequired(dataRecorderName, DevState.ON)) { return false; } else { return true; } } else { return false; } }
public synchronized boolean isRecordingStarted(final String dataRecorderName) throws DevFailed { // PASSERELLE-78 /*boolean result = false; final DeviceProxy dev = ProxyFactory.getInstance().createDeviceProxy( dataRecorderName); if (dev != null) { if (TangoAccess.isCurrentStateEqualStateRequired(dataRecorderName, DevState.ON)) { result = false; } else { result = true; } } return result; */ return !TangoAccess.isCurrentStateEqualStateRequired(dataRecorderName, DevState.ON); }