Class Timeout

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

class Timeout extends Object

Tools to abort long running test and call a node snapshot

  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) void
    end()
    Cancel the timeout for the test case
    (package private) void
    Take a node snapshot
    (package private) void
    Override the default behavior to create node snapshot and exit the jvm
    (package private) void
    setTimoutSeconds(long timeoutSeconds)
    Override the default timeout
    (package private) void
    start(long timeoutSeconds)
    Start timeout for this test case
    (package private) void
    Wait for snapshot command to complete

    Methods inherited from class java.lang.Object

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

    • Timeout

      Timeout()
      Constructor
  • Method Details

    • start

      void start(long timeoutSeconds)

      Start timeout for this test case

      This method can be run within or outside a transaction

      Parameters:
      timeoutSeconds - timeout in seconds
    • end

      void end()

      Cancel the timeout for the test case

      This method can be run within or outside a transaction

    • setTimeoutBehavior

      void setTimeoutBehavior(Runnable runnable)

      Override the default behavior to create node snapshot and exit the jvm

      Parameters:
      runnable - code to execute on timeout
    • setTimoutSeconds

      void setTimoutSeconds(long timeoutSeconds)

      Override the default timeout

      Parameters:
      timeoutSeconds - Timeout in seconds - most be greater than zero
    • runSnapshot

      void runSnapshot()
      Take a node snapshot

      N.B. - package private to support unit testing

    • waitForCompletion

      void waitForCompletion()
      Wait for snapshot command to complete

      N.B. - used for unit testing only