Interface DiagnosticManager


  • public interface DiagnosticManager
    The diagnostic manager enables to access diagnostic information or write it somewhere.
    • Method Detail

      • getDiagnosticInfo

        Map<String,​Object> getDiagnosticInfo​(Throwable t)
        Retrieve the diagnostic information as a Map.
        Parameters:
        t - the exception which may be the origin of this diagnostic generation. May be null.
        Returns:
        the diagnostic information.
      • dumpDiagnosticReport

        void dumpDiagnosticReport​(Throwable t)
        Dump the diagnostic information through the DiagnosticReporter.
        Parameters:
        t - the exception which may be the origin of this diagnostic generation. May be null.
      • writeDiagnosticReport

        void writeDiagnosticReport​(Throwable t,
                                   Writer writer)
        Writer the diagnostic information to the specified writer through the DiagnosticReporter.
        Parameters:
        t - the exception which may be the origin of this diagnostic generation. May be null.
        writer - the writer to output the report to.
      • registerDiagnosticInfoCollector

        void registerDiagnosticInfoCollector​(String domain,
                                             DiagnosticInfoCollector diagnosticInfoCollector)
        Register a diagnostic collector.
        Parameters:
        domain - the diagnostic collector domain which will be used root node in the diagnostic tree.
        diagnosticInfoCollector - the diagnostic collector to register.