Class Diagnostic

java.lang.Object
com.northconcepts.datapipeline.diagnostic.Diagnostic

public class Diagnostic extends Object
Helps diagnose environmental issues by collecting properties and logging them to the console.

The properties collected are:

  • Local date and timezone
  • Location of license file (if present)
  • Location of DataReader class file
  • Number of records transfered in a single job (out of 100 million records)
  • All JVM properties

No local IP, machine, or geographic data are collected.

Usage in code: new Diagnostic().log();

Usage on command line: java -jar NorthConcepts-DataPipeline-5.1.0.jar com.northconcepts.datapipeline.diagnostic.Diagnostic

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Collects all the properties up front, which includes running a test job that transfers 100 million records.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    log()
    Prints the collected properties to standard output.
    static void
    main(String[] args)
    Collects the diagnostic properties and prints them to standard output; the arguments are ignored.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • Diagnostic

      public Diagnostic()
      Collects all the properties up front, which includes running a test job that transfers 100 million records.
  • Method Details

    • main

      public static void main(String[] args)
      Collects the diagnostic properties and prints them to standard output; the arguments are ignored.
    • log

      public void log()
      Prints the collected properties to standard output.
    • toString

      public String toString()
      Overrides:
      toString in class Object