Package org.seedstack.seed.diagnostic
Interface DiagnosticManager
-
public interface DiagnosticManagerThe diagnostic manager enables to access diagnostic information or write it somewhere.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddumpDiagnosticReport(Throwable t)Dump the diagnostic information through theDiagnosticReporter.Map<String,Object>getDiagnosticInfo(Throwable t)Retrieve the diagnostic information as a Map.voidregisterDiagnosticInfoCollector(String domain, DiagnosticInfoCollector diagnosticInfoCollector)Register a diagnostic collector.voidwriteDiagnosticReport(Throwable t, Writer writer)Writer the diagnostic information to the specified writer through theDiagnosticReporter.
-
-
-
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 theDiagnosticReporter.- 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 theDiagnosticReporter.- 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.
-
-