private static boolean testForMatchingFROMs(String templateFile, FieldReferenceOffsetManager encodedFrom, Appendable target) throws ParserConfigurationException, SAXException, IOException { boolean result = true; FieldReferenceOffsetManager expectedFrom = TemplateHandler.loadFrom(templateFile); if (null==expectedFrom) { logger.error("Unable to find: "+templateFile); result = false; } else if (null==encodedFrom || !expectedFrom.equals(encodedFrom)) { logger.error("Encoded source:"+expectedFrom); if (null!=encodedFrom) { logger.error("Template file:"+encodedFrom); } logger.error("//replacement source"); String nameOfFROM = templateFile.substring(1+templateFile.lastIndexOf('/') ); FieldReferenceOffsetManager.buildFROMConstructionSource(target, expectedFrom, "FROM", nameOfFROM); result = false; } return result; }
private static boolean testForMatchingFROMs(String templateFile, FieldReferenceOffsetManager encodedFrom, Appendable target) throws ParserConfigurationException, SAXException, IOException { boolean result = true; FieldReferenceOffsetManager expectedFrom = TemplateHandler.loadFrom(templateFile); if (null==expectedFrom) { logger.error("Unable to find: "+templateFile); result = false; } else if (null==encodedFrom || !expectedFrom.equals(encodedFrom)) { logger.error("Encoded source:"+expectedFrom); if (null!=encodedFrom) { logger.error("Template file:"+encodedFrom); } logger.error("//replacement source"); String nameOfFROM = templateFile.substring(1+templateFile.lastIndexOf('/') ); FieldReferenceOffsetManager.buildFROMConstructionSource(target, expectedFrom, "FROM", nameOfFROM); result = false; } return result; }
private static boolean testForMatchingFROMs(String templateFile, FieldReferenceOffsetManager encodedFrom, Appendable target) throws ParserConfigurationException, SAXException, IOException { boolean result = true; FieldReferenceOffsetManager expectedFrom = TemplateHandler.loadFrom(templateFile); if (null==expectedFrom) { logger.error("Unable to find: "+templateFile); result = false; } else if (null==encodedFrom || !expectedFrom.equals(encodedFrom)) { logger.error("Encoded source:"+expectedFrom); if (null!=encodedFrom) { logger.error("Template file:"+encodedFrom); } logger.error("//replacement source"); String nameOfFROM = templateFile.substring(1+templateFile.lastIndexOf('/') ); FieldReferenceOffsetManager.buildFROMConstructionSource(target, expectedFrom, "FROM", nameOfFROM); result = false; } return result; }
if (null==encodedFrom || !expectedFrom.equals(encodedFrom)) { logger.error("Encoded source:"+expectedFrom); if (null!=encodedFrom) {
if (null==encodedFrom || !expectedFrom.equals(encodedFrom)) { logger.error("Encoded source:"+expectedFrom); if (null!=encodedFrom) {
if (null==encodedFrom || !expectedFrom.equals(encodedFrom)) { logger.error("Encoded source:"+expectedFrom); if (null!=encodedFrom) {
/** * * @param graphManager * @param input _in_ MQTT IDs ranges that should be generated * @param control _in_ Fine-tunes generation * @param output _out_ Outputs the IDs */ public IdGenStage(GraphManager graphManager, Pipe<MQTTIdRangeSchema> input, Pipe<MQTTIdRangeControllerSchema> control, Pipe<MQTTIdRangeSchema> output) { super(graphManager, join(input, control), output); this.inputs = new Pipe[]{input}; this.outputs = new Pipe[]{output}; this.control = control; assert(Pipe.from(input).equals(Pipe.from(output))) : "Both must have same message types "; this.sizeOfFragment = Pipe.from(input).fragDataSize[theOneMsg]; //must be set so this stage will get shut down and ignore the fact that is has un-consumed messages coming in GraphManager.addNota(graphManager,GraphManager.PRODUCER, GraphManager.PRODUCER, this); }