IBM WebSphere Application ServerTM
Release 8

com.ibm.ffdc.config
Interface DataCollector


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
 java.util.Collection<? extends java.lang.Object> collect(java.lang.Throwable ex)
          Returns the collected data for the method.
 java.lang.String[] getSupportedTypeNames()
          Return the supported type and method names.
 

Method Detail

collect

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

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

  • IBM WebSphere Application ServerTM
    Release 8