Interface DiagnosticsManager
public interface DiagnosticsManager
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic enumstatic interfacestatic interfacestatic classstatic class
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddContributor(DiagnosticsManager.Contributor contributor) Calling this fetches the most recent diagnostic bundle.newOutputStreamContributor(String filename, FragileConsumer<OutputStream, IOException> writeMethod) newStringContributor(String filename, FragileSupplier<String, IOException> supplier) Creates a bundle contributor that writes a string to a utf-8 encoded text file in the diagnostic bundle.newWriterContributor(String filename, FragileConsumer<Writer, IOException> writeMethod) voidremoveContributor(DiagnosticsManager.Contributor contributor) 
- 
Method Details- 
getDiagnosticsBundleCalling this fetches the most recent diagnostic bundle. If no diagnostic bundle exists, or the most recent diagnostic bundle is expired or faulted, a new one will be generated and returned.
- 
getBundleState- Returns:
- The state of the diagnostic bundle. Reading this does not alter the state. In other words, calling this does not request a bundle to be generated
 
- 
addContributor
- 
removeContributor
- 
newOutputStreamContributorstatic DiagnosticsManager.Contributor newOutputStreamContributor(String filename, FragileConsumer<OutputStream, IOException> writeMethod) 
- 
newWriterContributorstatic DiagnosticsManager.Contributor newWriterContributor(String filename, FragileConsumer<Writer, IOException> writeMethod) 
- 
newStringContributorstatic DiagnosticsManager.Contributor newStringContributor(String filename, FragileSupplier<String, IOException> supplier) Creates a bundle contributor that writes a string to a utf-8 encoded text file in the diagnostic bundle.
 
-