equal
deleted
inserted
replaced
313 } |
313 } |
314 |
314 |
315 private void dumpMemoryToDestination(PlatformRecording recording) { |
315 private void dumpMemoryToDestination(PlatformRecording recording) { |
316 WriteableUserPath dest = recording.getDestination(); |
316 WriteableUserPath dest = recording.getDestination(); |
317 if (dest != null) { |
317 if (dest != null) { |
318 MetadataRepository.getInstance().setOutput(dest.getText()); |
318 MetadataRepository.getInstance().setOutput(dest.getRealPathText()); |
319 recording.clearDestination(); |
319 recording.clearDestination(); |
320 } |
320 } |
321 } |
321 } |
322 private void disableEvents() { |
322 private void disableEvents() { |
323 MetadataRepository.getInstance().disableEvents(); |
323 MetadataRepository.getInstance().disableEvents(); |
404 if (r.getState() == RecordingState.RUNNING && r.shouldWriteMetadataEvent()) { |
404 if (r.getState() == RecordingState.RUNNING && r.shouldWriteMetadataEvent()) { |
405 ActiveRecordingEvent event = new ActiveRecordingEvent(); |
405 ActiveRecordingEvent event = new ActiveRecordingEvent(); |
406 event.id = r.getId(); |
406 event.id = r.getId(); |
407 event.name = r.getName(); |
407 event.name = r.getName(); |
408 WriteableUserPath p = r.getDestination(); |
408 WriteableUserPath p = r.getDestination(); |
409 event.destination = p == null ? null : p.getText(); |
409 event.destination = p == null ? null : p.getRealPathText(); |
410 Duration d = r.getDuration(); |
410 Duration d = r.getDuration(); |
411 event.recordingDuration = d == null ? Long.MAX_VALUE : d.toMillis(); |
411 event.recordingDuration = d == null ? Long.MAX_VALUE : d.toMillis(); |
412 Duration age = r.getMaxAge(); |
412 Duration age = r.getMaxAge(); |
413 event.maxAge = age == null ? Long.MAX_VALUE : age.toMillis(); |
413 event.maxAge = age == null ? Long.MAX_VALUE : age.toMillis(); |
414 Long size = r.getMaxSize(); |
414 Long size = r.getMaxSize(); |