org.senkbeil.debugger.events

EventManager

Related Doc: package events

class EventManager extends JDIHelperMethods with LogLike

Represents a manager for events coming in from a virtual machine.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EventManager
  2. JDIHelperMethods
  3. LogLike
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EventManager(_virtualMachine: VirtualMachine, loopingTaskRunner: LoopingTaskRunner, autoStart: Boolean = true, startTaskRunner: Boolean = false, onExceptionResume: Boolean = true)

    _virtualMachine

    The virtual machine whose events to manage

    loopingTaskRunner

    The runner used to process events

    autoStart

    If true, starts the event processing automatically

    startTaskRunner

    If true, will attempt to start the task runner if not already started (upon starting the event manager)

    onExceptionResume

    If true, any event handler that throws an exception will count towards resuming the event set, otherwise it will cause the event set to not resume

Type Members

  1. type EventFunction = (Event) ⇒ Boolean

    Represents an event callback, receiving the event and returning whether or not to resume.

  2. implicit class LoggerExtras extends AnyRef

    Definition Classes
    LogLike

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. val _virtualMachine: VirtualMachine

    The virtual machine whose events to manage

    The virtual machine whose events to manage

    Attributes
    protected
    Definition Classes
    EventManagerJDIHelperMethods
  5. def addEventHandler(eventType: EventType, eventFunction: EventFunction): Unit

    Adds the event function to this manager.

    Adds the event function to this manager. The return value of the handler function contributes towards whether or not to resume the event set.

    eventType

    The type of the event to add a function

    eventFunction

    The function to add

  6. def addResumingEventHandler(eventType: EventType, eventFunction: (Event) ⇒ Unit): Unit

    Adds the event function to this manager.

    Adds the event function to this manager. This event automatically counts towards resuming the event set after completion.

    eventType

    The type of the event to add a function

    eventFunction

    The function to add

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def findMainThread(virtualMachine: VirtualMachine): Option[ThreadReference]

    Determines the main executing thread of the specified virtual machine.

    Determines the main executing thread of the specified virtual machine.

    virtualMachine

    The virtual machine whose main thread to determine

    returns

    Some reference to the main thread if it can be determined, otherwise None

    Attributes
    protected
    Definition Classes
    JDIHelperMethods
  13. def findMainThread(): Option[ThreadReference]

    Determines the main executing thread of the _virtualMachine instance.

    Determines the main executing thread of the _virtualMachine instance.

    returns

    Some reference to the main thread if it can be determined, otherwise None

    Attributes
    protected
    Definition Classes
    JDIHelperMethods
  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def getEventHandlers[T <: Event](eventType: EventType): Seq[EventFunction]

    Retrieves the collection of event handler functions for the specific event class.

    Retrieves the collection of event handler functions for the specific event class.

    T

    The type associated with the class

    eventType

    The type of event whose functions to retrieve

    returns

    The collection of event functions

  16. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def isRunning: Boolean

    Indicates whether or not the event manager is processing events.

    Indicates whether or not the event manager is processing events.

    returns

    True if it is running, otherwise false

  19. val logger: Logger

    Attributes
    protected
    Definition Classes
    LogLike
  20. val loggerName: String

    Definition Classes
    LogLike
  21. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  24. def removeEventHandler[T <: Event](eventType: EventType, eventFunction: EventFunction): Unit

    Removes the event function from this manager.

    Removes the event function from this manager.

    T

    The class of the event

    eventType

    The event type whose function to remove

    eventFunction

    The function to remove

  25. def singleSourcePath(referenceType: ReferenceType): Option[String]

    Retrieves the convergent source path of the provided reference type.

    Retrieves the convergent source path of the provided reference type.

    referenceType

    The reference instance whose source path to determine

    returns

    Some source path as a string if convergent, otherwise None

    Attributes
    protected
    Definition Classes
    JDIHelperMethods
  26. def start(): Unit

    Begins the processing of events from the virtual machine.

  27. def stop(): Unit

    Ends the processing of events from the virtual machine.

  28. def suspendThreadAndExecute[T](threadReference: ThreadReference)(thunk: ⇒ T): Try[T]

    Executes the provided block of code during the state of a suspended thread.

    Executes the provided block of code during the state of a suspended thread. The thread reference is synchronized to prevent another thread suspending the same thread reference.

    T

    The type of result from the block of code

    thunk

    The block of code to execute

    returns

    The results of attempting to execute the block of code

    Attributes
    protected
    Definition Classes
    JDIHelperMethods
  29. def suspendVirtualMachineAndExecute[T](thunk: ⇒ T): Try[T]

    Executes the provided block of code during the state of a suspended virtual machine.

    Executes the provided block of code during the state of a suspended virtual machine. The virtual machine is synchronized to prevent another thread suspending the same virtual machine.

    T

    The type of result from the block of code

    thunk

    The block of code to execute

    returns

    The results of attempting to execute the block of code

    Attributes
    protected
    Definition Classes
    JDIHelperMethods
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  31. def toString(): String

    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from JDIHelperMethods

Inherited from LogLike

Inherited from AnyRef

Inherited from Any

Ungrouped