public void writeTracePlan( String registryName, String fileName, FlowStepGraph stepGraph ) { Path path = getPlanTracePath(); if( path == null ) return; if( stepGraph == null ) { processLogger.logInfo( "cannot write step plan, stepGraph is null" ); return; } if( registryName != null ) path = path.resolve( registryName ); Path filePath = path.resolve( String.format( "%s.dot", fileName ) ); File file = filePath.toFile(); processLogger.logInfo( "writing trace step plan: {}", file ); stepGraph.writeDOT( file.toString() ); }
public void writeFinal( String fileName, RuleResult ruleResult ) { Path path = getPlanTracePath(); if( path == null ) return; Path filePath = path.resolve( String.format( "%s-%s.txt", fileName, ruleResult.getRegistry().getName() ) ); File file = filePath.toFile(); processLogger.logInfo( "writing final registry: {}", file ); try( PrintWriter writer = new PrintWriter( file ) ) { writer.println( "filename names winning rule registry" ); } catch( IOException exception ) { processLogger.logError( "could not write final registry", exception ); } }
public void writeTracePlan( String registryName, String fileName, ElementGraph elementGraph ) { Path path = getPlanTracePath(); if( path == null ) return; if( elementGraph == null ) { processLogger.logInfo( "cannot write trace element plan, elementGraph is null" ); return; } if( registryName != null ) path = path.resolve( registryName ); Path filePath = path.resolve( String.format( "%s-%s.dot", fileName, canonicalHash( elementGraph ) ) ); File file = filePath.toFile(); processLogger.logInfo( "writing trace element plan: {}", file ); String filename = file.toString(); elementGraph.writeDOT( filename ); }
private void writePlan( FlowStep flowStep, String directoryName ) Path path = getPlanTracePath();