Class LeakDetect

java.lang.Object
com.tibco.ep.testing.framework.LeakDetect

class LeakDetect extends Object

Tools to detect manage object leaks

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static final String
    Managed object leak detected during unit test
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor - determines list of classes that can be ignored
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) void
    end()
    End leak detection for this node
    (package private) void
    setVerboseClass(String verboseClass)
    Set verbose for class
    (package private) void
    Start leak detection on this node

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • LeakDetect

      LeakDetect()

      Constructor - determines list of classes that can be ignored

      Class names come from the java system property IgnoreLeaks and from the IgnoreLeaks entry in the jar manifest files

  • Method Details

    • setVerboseClass

      void setVerboseClass(String verboseClass)
      Set verbose for class
      Parameters:
      verboseClass - class
    • start

      void start()

      Start leak detection on this node

      This method can be run within or outside a transaction

    • end

      End leak detection for this node

      Any leaks detected are reported as error log messages

      This method can be run within or outside a transaction

      Throws:
      TransactionalMemoryLeakException - on leaks found