/** * Log the end of a particular operation the beginning of which has been * logged using logOperationStart(), using INFO priority. * * @param operationName * @param logger */ public static void logOperationFinish(String operationName, Logger logger) { logOperationFinish(operationName, logger, LogLevel.INFO); }
/** * Log the end of a particular operation the beginning of which has been * logged using logOperationStart(), using INFO priority. * * @param operationName * @param logger */ public static void logOperationFinish(String operationName, Logger logger) { logOperationFinish(operationName, logger, Level.INFO); }
/** * Log the end of a particular operation the beginning of which has been * logged using logOperationStart(), using INFO priority. * * @param operationName * @param logger */ public static void logOperationFinish(String operationName, Logger logger) { logOperationFinish(operationName, logger, LogLevel.INFO); }
/** * Log the end of a particular operation the beginning of which has been * logged using logOperationStart(), using INFO priority. * * @param operationName * @param logger */ public static void logOperationFinish(String operationName, Logger logger) { logOperationFinish(operationName, logger, LogLevel.INFO); }
static void writeClassTaxonomyToFile(File file, Taxonomy<ElkClass> taxonomy) throws IOException, ElkInconsistentOntologyException, ElkException { if (LOGGER_.isInfoEnabled()) { LOGGER_.info("Writing taxonomy to " + file); } Statistics.logOperationStart("Writing taxonomy", LOGGER_); TaxonomyPrinter.dumpClassTaxomomyToFile(taxonomy, file.getPath(), true); Statistics.logOperationFinish("Writing taxonomy", LOGGER_); }
static void writeInstanceTaxonomyToFile(File file, InstanceTaxonomy<ElkClass, ElkNamedIndividual> taxonomy) throws IOException, ElkInconsistentOntologyException, ElkException { if (LOGGER_.isInfoEnabled()) { LOGGER_.info("Writing taxonomy with instances to " + file); } Statistics .logOperationStart("Writing taxonomy with instances", LOGGER_); TaxonomyPrinter.dumpInstanceTaxomomyToFile(taxonomy, file.getPath(), true); Statistics.logOperationFinish("Writing taxonomy with instances", LOGGER_); }
static void writeClassTaxonomyToFile(File file, Taxonomy<ElkClass> taxonomy, boolean printHash) throws IOException, ElkInconsistentOntologyException, ElkException { LOGGER_.info("Writing taxonomy to {}", file); Statistics.logOperationStart("Writing taxonomy", LOGGER_); TaxonomyPrinter.dumpTaxomomyToFile(taxonomy, file.getPath(), printHash); Statistics.logOperationFinish("Writing taxonomy", LOGGER_); }
static void writeInstanceTaxonomyToFile(File file, InstanceTaxonomy<ElkClass, ElkNamedIndividual> taxonomy, boolean printHash) throws IOException, ElkInconsistentOntologyException, ElkException { LOGGER_.info("Writing taxonomy with instances to {}", file); Statistics .logOperationStart("Writing taxonomy with instances", LOGGER_); TaxonomyPrinter.dumpInstanceTaxomomyToFile(taxonomy, file.getPath(), printHash); Statistics.logOperationFinish("Writing taxonomy with instances", LOGGER_); }
@Override public void execute(ReasonerStage stage) throws ElkException { LOGGER_.debug("{} stage:", stage); Statistics.logOperationStart(stage.getName(), LOGGER_); try { stage.preExecute(); stage.execute(); stage.printInfo(); stage.postExecute(); } catch (ElkInterruptedException e) { LOGGER_.debug("{} was interrupted.", stage); stage.printInfo(); throw e; } finally { Statistics.logOperationFinish(stage.getName(), LOGGER_); Statistics.logMemoryUsage(LOGGER_); } LOGGER_.debug("{}: done.", stage); } }
@Override public void execute(ReasonerStage stage) throws ElkException { LOGGER_.debug("{} stage:", stage); Statistics.logOperationStart(stage.getName(), LOGGER_); try { stage.preExecute(); stage.execute(); stage.printInfo(); stage.postExecute(); } catch (ElkInterruptedException e) { LOGGER_.debug("{} was interrupted.", stage); stage.printInfo(); throw e; } finally { Statistics.logOperationFinish(stage.getName(), LOGGER_); Statistics.logMemoryUsage(LOGGER_); } LOGGER_.debug("{}: done.", stage); } }
@Override public void execute(ReasonerStage stage) throws ElkException { LOGGER_.debug("{} stage:", stage); Statistics.logOperationStart(stage.getName(), LOGGER_); try { stage.preExecute(); stage.execute(); stage.printInfo(); stage.postExecute(); } catch (ElkInterruptedException e) { LOGGER_.debug("{} was interrupted.", stage); stage.printInfo(); throw e; } finally { Statistics.logOperationFinish(stage.getName(), LOGGER_); Statistics.logMemoryUsage(LOGGER_); } LOGGER_.debug("{}: done.", stage); } }