com.ibm.ffdc.config

Interface DataCollector


  1. public interface DataCollector
Data collectors can be provided to capture additional data based on the execution context. The data captured by data collectors is reported together with the corresponding ffdc incident.

Method Summary

Modifier and Type Method and Description
  1. java.util.Collection<? extends java.lang.Object>
collect(java.lang.Throwable ex)
Returns the collected data for the method.
  1. java.lang.String[]
getSupportedTypeNames()
Return the supported type and method names.

Method Detail

collect

  1. java.util.Collection<? extends java.lang.Object> collect( java.lang.Throwable ex)
Returns the collected data for the method. If the method is not supported return null, if the method is supported but there is no data to be collected return an empty collection.
Parameters:
ex - the encountered exception, this can be used to filter the data to be collected
Returns:
collected objects

getSupportedTypeNames

  1. java.lang.String[] getSupportedTypeNames( )
Return the supported type and method names.

  • "somepackage.A" will collect data for all methods of A
  • "somepackage.A#doSomething" will collect data for all signatures of the methods name doSomething

  • Returns:
    the supported type names this formatter can format