private void debugPipeAssignment(long channelId, int responsePipeLineIdx) { final boolean debugPipeAssignment = false; if (debugPipeAssignment) { if (!"Telemetry Server".equals(coordinator.serviceName())) {//do not show for monitor logger.info("\nstage: {} begin channel id {} pipe line idx {} out of {} ", this.stageId, channelId, responsePipeLineIdx, output.length); } } }
private void showRequests(Pipe<NetPayloadSchema> targetPipe, long channelId, int pos, int localLen) { if (!"Telemetry Server".equals(coordinator.serviceName())) { try { //ONLY VALID FOR UTF8 logger.info("/////////////\n/////Server read for channel {} bPos{} len {} \n{}\n/////////////////////", channelId, pos, localLen, //TODO: the len here is wrong and must be both the header size plus the payload size.... Appendables.appendUTF8(new StringBuilder(), targetPipe.blobRing, pos, (int)localLen, targetPipe.blobMask)); } catch (Exception e) { //ignore we are debugging. } } }
System.out.println(); System.out.append(coordinator.serviceName()).append(" is now ready on http"); if (coordinator.isTLS) { System.out.append("s"); System.out.append(coordinator.serviceName()) .append(" max connections: ") ,coordinator.channelBitsSize).append("\n"); System.out.append(coordinator.serviceName()) .append(" max concurrent inputs: ") ,coordinator.maxConcurrentInputs).append("\n"); System.out.append(coordinator.serviceName()) .append(" concurrent tracks: ") ,coordinator.moduleParallelism()).append("\n"); System.out.append(coordinator.serviceName()) .append(" max concurrent outputs: ") ,coordinator.maxConcurrentOutputs).append("\n");
logger.warn("\n{} Unable to open {} due to {}",coordinator.serviceName(),coordinator.port(),se.getMessage()); coordinator.shutdown(); throw new RuntimeException(se);//server can not run at this point so we must have a hard stop logger.warn("\n{} Already in use {}:{}",coordinator.serviceName(),coordinator.host(), coordinator.port()); coordinator.shutdown(); throw new RuntimeException(se);//server can not run at this point so we must have a hard stop } catch (IOException e) { if (e.getMessage().contains("Unresolved address")) { logger.warn("\n{} Unresolved host address http"+(coordinator.isTLS?"s":""),coordinator.serviceName()); coordinator.shutdown(); throw new RuntimeException(e);//server can not run at this point so we must have a hard stop
if (!"Telemetry Server".equals(coordinator.serviceName())) {//do not show for monitor int lenLimit = Math.min(8192, trieReader.sourceLen); System.out.println("///////////////// DATA TO ROUTE (HEADER+) "+channel+" pos:"+trieReader.sourcePos+" len:"+lenLimit+"///////////////////");