class StandardEventManager extends EventManager with Logging
Represents a manager for events coming in from a virtual machine.
- Alphabetic
- By Inheritance
- StandardEventManager
- Logging
- EventManager
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
StandardEventManager(eventQueue: EventQueue, loopingTaskRunner: LoopingTaskRunner, autoStart: Boolean = true, onExceptionResume: Boolean = true)
- eventQueue
The event queue whose events to pull off and process
- loopingTaskRunner
The runner used to process events
- autoStart
If true, starts the event processing automatically
- 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
-
type
EventAndData = (Event, Seq[JDIEventDataResult])
Represents a JDI event and any associated data retrieved from it.
Represents a JDI event and any associated data retrieved from it.
- Definition Classes
- EventManager
-
type
EventHandler = (Event, Seq[JDIEventDataResult]) ⇒ Boolean
Represents an event callback, receiving the event and returning whether or not to resume.
Represents an event callback, receiving the event and returning whether or not to resume.
- Definition Classes
- EventManager
-
implicit
class
LoggerExtras
extends AnyRef
- Definition Classes
- Logging
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addEventDataStream(eventType: EventType, eventArguments: JDIEventArgument*): IdentityPipeline[EventAndData]
Adds a new event data stream that tracks incoming JDI events and data collected from those events.
Adds a new event data stream that tracks incoming JDI events and data collected from those events.
- eventType
The type of JDI event to stream
- eventArguments
The arguments used when determining whether or not to send the event down the stream
- returns
The resulting event stream in the form of a pipeline of events and collected data
- Definition Classes
- EventManager
-
def
addEventDataStreamWithId(eventHandlerId: String, eventType: EventType, eventArguments: JDIEventArgument*): IdentityPipeline[EventAndData]
Adds a new event data stream that tracks incoming JDI events and data collected from those events.
Adds a new event data stream that tracks incoming JDI events and data collected from those events.
- eventHandlerId
The id to associate with the event handler
- eventType
The type of JDI event to stream
- eventArguments
The arguments used when determining whether or not to send the event down the stream
- returns
The resulting event stream in the form of a pipeline of events and collected data
- Definition Classes
- EventManager
-
def
addEventHandler(eventType: EventType, eventHandler: (Event) ⇒ Boolean, eventArguments: JDIEventArgument*): String
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
- eventHandler
The function to add, taking the occurring event
- eventArguments
The arguments used when determining whether or not to invoke the event handler
- returns
The id associated with the event handler
- Definition Classes
- EventManager
-
def
addEventHandler(eventType: EventType, eventHandler: EventHandler, eventArguments: JDIEventArgument*): String
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
- eventHandler
The function to add, taking the occurring event and a collection of retrieved data from the event
- eventArguments
The arguments used when determining whether or not to invoke the event handler
- returns
The id associated with the event handler
- Definition Classes
- EventManager
-
def
addEventHandlerFromInfo(eventHandlerInfo: EventHandlerInfo): String
Adds an event handler based on the specified information.
Adds an event handler based on the specified information.
- eventHandlerInfo
The information used to add the event hander
- returns
The id associated with the event handler
- Definition Classes
- EventManager
-
def
addEventHandlerWithId(eventHandlerId: String, eventType: EventType, eventHandler: EventHandler, eventArguments: JDIEventArgument*): String
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.
- eventHandlerId
The id to associate with the event handler
- eventType
The type of the event to add a function
- eventHandler
The function to add, taking the occurring event and a collection of retrieved data from the event
- eventArguments
The arguments used when determining whether or not to invoke the event handler
- returns
The id associated with the event handler
- Definition Classes
- StandardEventManager → EventManager
-
def
addEventHandlerWithId(eventHandlerId: String, eventType: EventType, eventHandler: (Event) ⇒ Boolean, eventArguments: JDIEventArgument*): String
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.
- eventHandlerId
The id to associate with the event handler
- eventType
The type of the event to add a function
- eventHandler
The function to add, taking the occurring event
- eventArguments
The arguments used when determining whether or not to invoke the event handler
- returns
The id associated with the event handler
- Definition Classes
- EventManager
-
def
addEventStream(eventType: EventType, eventArguments: JDIEventArgument*): IdentityPipeline[Event]
Adds a new event stream that tracks incoming JDI events.
Adds a new event stream that tracks incoming JDI events.
- eventType
The type of JDI event to stream
- eventArguments
The arguments used when determining whether or not to send the event down the stream
- returns
The resulting event stream in the form of a pipeline of events
- Definition Classes
- EventManager
-
def
addEventStreamWithId(eventHandlerId: String, eventType: EventType, eventArguments: JDIEventArgument*): IdentityPipeline[Event]
Adds a new event stream that tracks incoming JDI events.
Adds a new event stream that tracks incoming JDI events.
- eventHandlerId
The id to associate with the event handler
- eventType
The type of JDI event to stream
- eventArguments
The arguments used when determining whether or not to send the event down the stream
- returns
The resulting event stream in the form of a pipeline of events
- Definition Classes
- EventManager
-
def
addResumingEventHandler(eventType: EventType, eventHandler: (Event) ⇒ Unit, eventArguments: JDIEventArgument*): String
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
- eventHandler
The function to add, taking the occurring event
- eventArguments
The arguments used when determining whether or not to invoke the event handler
- returns
The id associated with the event handler
- Definition Classes
- EventManager
-
def
addResumingEventHandler(eventType: EventType, eventHandler: (Event, Seq[JDIEventDataResult]) ⇒ Unit, eventArguments: JDIEventArgument*): String
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
- eventHandler
The function to add, taking the occurring event and a collection of retrieved data from the event
- eventArguments
The arguments used when determining whether or not to invoke the event handler
- returns
The id associated with the event handler
- Definition Classes
- EventManager
-
def
addResumingEventHandlerWithId(eventHandlerId: String, eventType: EventType, eventHandler: (Event) ⇒ Unit, eventArguments: JDIEventArgument*): String
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.
- eventHandlerId
The id to associate with the event handler
- eventType
The type of the event to add a function
- eventHandler
The function to add, taking the occurring event
- eventArguments
The arguments used when determining whether or not to invoke the event handler
- returns
The id associated with the event handler
- Definition Classes
- EventManager
-
def
addResumingEventHandlerWithId(eventHandlerId: String, eventType: EventType, eventHandler: (Event, Seq[JDIEventDataResult]) ⇒ Unit, eventArguments: JDIEventArgument*): String
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.
- eventHandlerId
The id to associate with the event handler
- eventType
The type of the event to add a function
- eventHandler
The function to add, taking the occurring event and a collection of retrieved data from the event
- eventArguments
The arguments used when determining whether or not to invoke the event handler
- returns
The id associated with the event handler
- Definition Classes
- EventManager
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
eventHandlerTask(): Unit
Represents the task to be added per event handler.
Represents the task to be added per event handler. Can be overridden to perform different tasks.
- Attributes
- protected
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
getAllEventHandlerInfo: Seq[EventHandlerInfo]
Retrieves information on all event handlers.
Retrieves information on all event handlers.
- returns
The collection of information on all event handlers
- Definition Classes
- StandardEventManager → EventManager
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getEventHandler(id: String): Option[EventHandler]
Retrieves the handler with the specified id.
Retrieves the handler with the specified id.
- id
The id of the handler to retrieve
- returns
Some event handler if found, otherwise None
- Definition Classes
- StandardEventManager → EventManager
-
def
getHandlerIdsForEventType(eventType: EventType): Seq[String]
Retrieves the collection of event handler functions for the specific event class.
Retrieves the collection of event handler functions for the specific event class.
- eventType
The type of event whose functions to retrieve
- returns
The collection of event functions
- Definition Classes
- StandardEventManager → EventManager
-
def
getHandlersForEventType(eventType: EventType): Seq[EventHandler]
Retrieves the collection of event handler functions for the specific event class.
Retrieves the collection of event handler functions for the specific event class.
- eventType
The type of event whose functions to retrieve
- returns
The collection of event functions
- Definition Classes
- StandardEventManager → EventManager
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
- Definition Classes
- StandardEventManager → EventManager
-
val
logger: Logger
- Attributes
- protected
- Definition Classes
- Logging
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newEventId(): String
Generates an id for a new event handler.
Generates an id for a new event handler.
- returns
The id as a string
- Attributes
- protected
- Definition Classes
- EventManager
-
def
newEventSetProcessor(eventSet: EventSet): EventSetProcessor
Creates a new event set processor.
Creates a new event set processor. Can be overridden.
- eventSet
The event set to process
- returns
The new event set processor instance
- Attributes
- protected
-
def
newWrapperEventHandler(eventHandler: EventHandler, eventArguments: Seq[JDIEventArgument]): EventHandler
Generates a wrapper function around the event handler, using an argument processor to evaluate the provided arguments to determine whether or not to invoke the event handler as well as retrieve any requested data.
Generates a wrapper function around the event handler, using an argument processor to evaluate the provided arguments to determine whether or not to invoke the event handler as well as retrieve any requested data.
- eventHandler
The event handler to wrap
- eventArguments
The arguments to use when determining if the event handler should be invoked and what data to be retrieved
- returns
The wrapper around the event handler
- Attributes
- protected
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
removeEventHandler(id: String): Option[EventHandler]
Removes the event function from this manager.
Removes the event function from this manager.
- id
The id of the event handler to remove
- returns
Some event handler if removed, otherwise None
- Definition Classes
- StandardEventManager → EventManager
-
def
start(): Unit
Begins the processing of events from the virtual machine.
Begins the processing of events from the virtual machine.
- Definition Classes
- StandardEventManager → EventManager
-
def
stop(): Unit
Ends the processing of events from the virtual machine.
Ends the processing of events from the virtual machine.
- Definition Classes
- StandardEventManager → EventManager
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
wrapAndAddEventHandler(eventHandlerId: String, eventType: EventType, eventHandler: EventHandler, eventArguments: JDIEventArgument*): String
Wraps the provided event handler and adds it to the internal collection.
Wraps the provided event handler and adds it to the internal collection.
- eventHandlerId
The id to associate with the event handler
- eventType
The type of the event to match against the handler
- eventHandler
The event handler function to be wrapped
- eventArguments
The arguments used when determining whether or not to invoke the event handler
- returns
The id associated with the wrapped event handler
- Attributes
- protected