com.ibm.ffdc.config

Interface IncidentStream


  1. public interface IncidentStream
Ffdc incidents may capture data elements to be reported. These are printed on the incident stream provided by the ffdc provider.
See Also:
Formatter, Formattable, DataCollector

Nested Class Summary

Modifier and Type Interface and Description
  1. static interface
IncidentStream.Writer<T extends java.io.OutputStream>
Custom formatters or formattable implementations can use this interface to access the output stream used by the incident stream.

Method Summary

Modifier and Type Method and Description
  1. void
write(IncidentStream.Writer<java.io.OutputStream> writer)
Write on this stream the content provided by the writer
  1. void
write(java.lang.String label,java.lang.Object object)
Write an object with a label on the incident stream.
  1. void
write(java.lang.String label,java.lang.Object value,int depth)
Write an object with a label on the incident stream.

Method Detail

write

  1. void write(java.lang.String label,
  2. java.lang.Object object)
Write an object with a label on the incident stream. If the object is a primitive, a boxed primitive the value of it will be printed

If the object is a Class or a Logger instance the name of it will be printed.

If a formatter is registered for the object type, or the object is formattable see in the SDD the rules how the value is printed.

In all other cases the object is introspected.

Note that if an object has already been written, all subsequent writing result i printing the label followed by the classname and hash code.

Parameters:
label -
object -

write

  1. void write(java.lang.String label,
  2. java.lang.Object value,
  3. int depth)
Write an object with a label on the incident stream. The object will be introspected according to the specified depth.
Parameters:
label -
value -
depth -
See Also:

write

  1. void write(IncidentStream.Writer<java.io.OutputStream> writer)
Write on this stream the content provided by the writer
Parameters:
writer -