com.ibm.streamsx.topology.spi.builder

Interface SourceInfo



  • public interface SourceInfo
    Add the ability to add source location information to an operator invocation.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String SOURCE_LOCATIONS 
    • Method Detail

      • addSourceInfo

        static void addSourceInfo(com.google.gson.JsonObject invokeInfo,
                                  java.lang.Class<?> calledClass)
        Add source level information to invokeInfo as the property "sourcelocation". The current stack is "walked" upwards to find the last instance of calledClass. The frame including called class is taken as the 'api.method' while the caller is taken as user code.
        Parameters:
        invokeInfo - Object holding operator invoke information.
        calledClass - API implementation class being called.
streamsx.topology 2.1 @ IBMStreams GitHub