Tabnine Logo
ILogManager.saveToXML
Code IndexAdd Tabnine to your IDE (free)

How to use
saveToXML
method
in
com.norconex.jef4.log.ILogManager

Best Java code snippets using com.norconex.jef4.log.ILogManager.saveToXML (Showing top 1 results out of 315)

origin: com.norconex.jef/norconex-jef

private void writeJobSuiteIndex(JobSuiteStatusSnapshot statusTree)
    throws IOException {
  File indexFile = getSuiteIndexFile();
  StringWriter out = new StringWriter();
  out.write("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");
  out.write("<suite-index>");
  //--- Log Manager ---
  out.flush();
  getLogManager().saveToXML(out);
  //--- JobStatusSerializer ---
  out.flush();
  getJobStatusStore().saveToXML(out);
  //--- Job Status ---
  writeJobId(out, statusTree, statusTree.getRoot());
  out.write("</suite-index>");
  out.flush();
  // Using RandomAccessFile since evidence has shown it is better at
  // dealing with files/locks in a way that cause less/no errors.
  try (RandomAccessFile ras = new RandomAccessFile(indexFile, "rwd");
      FileChannel channel = ras.getChannel();
      FileLock lock = channel.lock()) {
    ras.writeUTF(out.toString());
  }
}
com.norconex.jef4.logILogManagersaveToXML

Popular methods of ILogManager

  • backup
    Backups the log for the given name space, and time stamps it with the given date. A backed-up log ca
  • createAppender
    Creates a Log4J appender for the given name space.
  • getLog
    Gets the log for the given namespace and job identifier.

Popular in Java

  • Reactive rest calls using spring rest template
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • setContentView (Activity)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Permission (java.security)
    Legacy security code; do not use.
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JFileChooser (javax.swing)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now