/** * Incoming parser errors */ @Override public void incomingError(WebSocketException e) { MuxDropChannel.Reason reason = MuxDropChannel.Reason.PHYSICAL_CONNECTION_FAILED; String phrase = String.format("%s: %s", e.getClass().getName(), e.getMessage()); mustFailPhysicalConnection(new MuxPhysicalConnectionException(reason,phrase)); }
/** * Incoming parser errors */ @Override public void incomingError(WebSocketException e) { MuxDropChannel.Reason reason = MuxDropChannel.Reason.PHYSICAL_CONNECTION_FAILED; String phrase = String.format("%s: %s", e.getClass().getName(), e.getMessage()); mustFailPhysicalConnection(new MuxPhysicalConnectionException(reason,phrase)); }
@FailedTest public static void retrieveGstreamerDots() { if (kurentoClient != null) { try { List<MediaPipeline> pipelines = kurentoClient.getServerManager().getPipelines(); log.debug("Retrieving GStreamerDots for all pipelines in KMS ({})", pipelines.size()); for (MediaPipeline pipeline : pipelines) { String pipelineName = pipeline.getName(); log.debug("Saving GstreamerDot for pipeline {}", pipelineName); String gstreamerDotFile = KurentoTest.getDefaultOutputFile("-" + pipelineName); try { FileUtils.writeStringToFile(new File(gstreamerDotFile), pipeline.getGstreamerDot()); } catch (IOException ioe) { log.error("Exception writing GstreamerDot file", ioe); } } } catch (WebSocketException e) { log.warn("WebSocket exception while reading existing pipelines. Maybe KMS is closed: {}:{}", e.getClass().getName(), e.getMessage()); } } }
@FailedTest public static void retrieveGstreamerDots() { if (kurentoClient != null) { try { List<MediaPipeline> pipelines = kurentoClient.getServerManager().getPipelines(); log.debug("Retrieving GStreamerDots for all pipelines in KMS ({})", pipelines.size()); for (MediaPipeline pipeline : pipelines) { String pipelineName = pipeline.getName(); log.debug("Saving GstreamerDot for pipeline {}", pipelineName); String gstreamerDotFile = KurentoTest.getDefaultOutputFile("-" + pipelineName); try { FileUtils.writeStringToFile(new File(gstreamerDotFile), pipeline.getGstreamerDot()); } catch (IOException ioe) { log.error("Exception writing GstreamerDot file", ioe); } } } catch (WebSocketException e) { log.warn("WebSocket exception while reading existing pipelines. Maybe KMS is closed: {}:{}", e.getClass().getName(), e.getMessage()); } } }