EventRequests. A single
implementor of this interface exists in a particular VM and
is accessed through VirtualMachine#eventRequestManager()
EventRequest, Event, BreakpointRequest, BreakpointEvent, VirtualMachine
| Modifier and Type | Method and Description |
|---|---|
| public List | Returns: the allAccessWatchpointRequest objects.Return an unmodifiable list of the enabled and disabled access watchpoint requests. |
| public List | Returns: the list of allBreakpointRequest objects.Return an unmodifiable list of the enabled and disabled breakpoint requests. |
| public List | Returns: the allClassPrepareRequest objects.Return an unmodifiable list of the enabled and disabled class prepare requests. |
| public List | Returns: the allClassUnloadRequest objects.Return an unmodifiable list of the enabled and disabled class unload requests. |
| public AccessWatchpointRequest | Returns: the created watchpointthe field to watch field)Creates a new disabled watchpoint which watches accesses to the specified field. |
| public BreakpointRequest | Returns: the createdBreakpointRequestthe location of the new breakpoint. location)Creates a new disabled |
| public ClassPrepareRequest | Returns: the createdClassPrepareRequestCreates a new disabled |
| public ClassUnloadRequest | Returns: the createdClassUnloadRequestCreates a new disabled |
| public ExceptionRequest | Returns: the createdExceptionRequestIf non-null, specifies that exceptions which are
instances of refType will be reported. refType, boolean Note this will include instances of sub-types. If null, all instances will be reported If true, caught exceptions will be reported. notifyCaught, boolean If true, uncaught exceptions will be reported. notifyUncaught)Creates a new disabled |
| public MethodEntryRequest | Returns: the createdMethodEntryRequestCreates a new disabled |
| public MethodExitRequest | Returns: the createdMethodExitRequestCreates a new disabled |
| public ModificationWatchpointRequest | Returns: the created watchpointthe field to watch field)Creates a new disabled watchpoint which watches accesses to the specified field. |
| public MonitorContendedEnteredRequest | Returns: the createdMonitorContendedEnteredRequestCreates a new disabled |
| public MonitorContendedEnterRequest | Returns: the createdMonitorContendedEnterRequestCreates a new disabled |
| public MonitorWaitedRequest | Returns: the createdMonitorWaitedRequestCreates a new disabled |
| public MonitorWaitRequest | Returns: the createdMonitorWaitRequestCreates a new disabled |
| public StepRequest | Returns: the createdStepRequestthe thread in which to step thread, int the step size size, int the step depth depth)Creates a new disabled |
| public ThreadDeathRequest | Returns: the createdThreadDeathRequestCreates a new disabled |
| public ThreadStartRequest | Returns: the createdThreadStartRequestCreates a new disabled |
| public VMDeathRequest | |
| public void | |
| public void | |
| public void | deleteEventRequests(List<? extends EventRequest>
the list of eventRequests to remove eventRequests)Removes a list of |
| public List | Returns: the allExceptionRequest objects.Return an unmodifiable list of the enabled and disabled exception requests. |
| public List | Returns: the list of allMethodEntryRequest objects.Return an unmodifiable list of the enabled and disabled method entry requests. |
| public List | Returns: the list of allMethodExitRequest objects.Return an unmodifiable list of the enabled and disabled method exit requests. |
| public List | Returns: the allModificationWatchpointRequest objects.Return an unmodifiable list of the enabled and disabled modification watchpoint requests. |
| public List | Returns: the list of allMonitorContendedEnteredRequest objects.Return an unmodifiable list of the enabled and disabled monitor contended entered requests. |
| public List | Returns: the list of allMonitorContendedEnterRequest objects.Return an unmodifiable list of the enabled and disabled monitor contended enter requests. |
| public List | Returns: the list of allMonitorWaitedRequest objects.Return an unmodifiable list of the enabled and disabled monitor waited requests. |
| public List | Returns: the list of allMonitorWaitRequest objects.Return an unmodifiable list of the enabled and disabled monitor wait requests. |
| public List | Returns: the allStepRequest objects.Return an unmodifiable list of the enabled and disabled step requests. |
| public List | Returns: the allThreadDeathRequest objects.Return an unmodifiable list of the enabled and disabled thread death requests. |
| public List | Returns: the allThreadStartRequest objects.Return an unmodifiable list of the enabled and disabled thread start requests. |
| public List | Returns: the list of allVMDeathRequest objects.Return an unmodifiable list of the enabled and disabled VM death requests. |
| accessWatchpointRequests | back to summary |
|---|---|
| public List Return an unmodifiable list of the enabled and disabled access watchpoint requests. This list is a live view of these requests and thus changes as requests are added and deleted.
| |
| breakpointRequests | back to summary |
|---|---|
| public List Return an unmodifiable list of the enabled and disabled breakpoint requests. This list is a live view of these requests and thus changes as requests are added and deleted.
| |
| classPrepareRequests | back to summary |
|---|---|
| public List Return an unmodifiable list of the enabled and disabled class prepare requests. This list is a live view of these requests and thus changes as requests are added and deleted.
| |
| classUnloadRequests | back to summary |
|---|---|
| public List Return an unmodifiable list of the enabled and disabled class unload requests. This list is a live view of these requests and thus changes as requests are added and deleted.
| |
| createAccessWatchpointRequest | back to summary |
|---|---|
| public AccessWatchpointRequest createAccessWatchpointRequest(Field field) Creates a new disabled watchpoint which watches accesses to the
specified field. The new
watchpoint is added to the list managed by this
EventRequestManager. Multiple watchpoints on the
same field are permitted.
Use
Not all target virtual machines support this operation.
Use
| |
| createBreakpointRequest | back to summary |
|---|---|
| public BreakpointRequest createBreakpointRequest(Location location) Creates a new disabled
| |
| createClassPrepareRequest | back to summary |
|---|---|
| public ClassPrepareRequest createClassPrepareRequest() Creates a new disabled
| |
| createClassUnloadRequest | back to summary |
|---|---|
| public ClassUnloadRequest createClassUnloadRequest() Creates a new disabled
| |
| createExceptionRequest | back to summary |
|---|---|
| public ExceptionRequest createExceptionRequest(ReferenceType refType, boolean notifyCaught, boolean notifyUncaught) Creates a new disabled
A specific exception type and its subclasses can be selected
for exception events. Caught exceptions, uncaught exceptions,
or both can be selected. Note, however, that
at the time an exception is thrown, it is not always
possible to determine whether it is truly caught. See
| |
| createMethodEntryRequest | back to summary |
|---|---|
| public MethodEntryRequest createMethodEntryRequest() Creates a new disabled
| |
| createMethodExitRequest | back to summary |
|---|---|
| public MethodExitRequest createMethodExitRequest() Creates a new disabled
| |
| createModificationWatchpointRequest | back to summary |
|---|---|
| public ModificationWatchpointRequest createModificationWatchpointRequest(Field field) Creates a new disabled watchpoint which watches accesses to the
specified field. The new
watchpoint is added to the list managed by this
EventRequestManager. Multiple watchpoints on the
same field are permitted.
Use
Not all target virtual machines support this operation.
Use
| |
| createMonitorContendedEnteredRequest | back to summary |
|---|---|
| public MonitorContendedEnteredRequest createMonitorContendedEnteredRequest() Creates a new disabled
| |
| createMonitorContendedEnterRequest | back to summary |
|---|---|
| public MonitorContendedEnterRequest createMonitorContendedEnterRequest() Creates a new disabled
| |
| createMonitorWaitedRequest | back to summary |
|---|---|
| public MonitorWaitedRequest createMonitorWaitedRequest() Creates a new disabled
| |
| createMonitorWaitRequest | back to summary |
|---|---|
| public MonitorWaitRequest createMonitorWaitRequest() Creates a new disabled
| |
| createStepRequest | back to summary |
|---|---|
| public StepRequest createStepRequest(ThreadReference thread, int size, int depth) Creates a new disabled
The returned request will control stepping only in the specified
Only one pending step request is allowed per thread. Note that a typical debugger will want to cancel stepping after the first step is detected. Thus a next line method would do the following:
| |
| createThreadDeathRequest | back to summary |
|---|---|
| public ThreadDeathRequest createThreadDeathRequest() Creates a new disabled
| |
| createThreadStartRequest | back to summary |
|---|---|
| public ThreadStartRequest createThreadStartRequest() Creates a new disabled
| |
| createVMDeathRequest | back to summary |
|---|---|
| public VMDeathRequest createVMDeathRequest() Creates a new disabled
This request (if enabled) will cause a
A VMDeathRequest with a suspend policy of
Not all target virtual machines support this operation.
Use
| |
| deleteAllBreakpoints | back to summary |
|---|---|
| public void deleteAllBreakpoints() Remove all breakpoints managed by this EventRequestManager.
| |
| deleteEventRequest | back to summary |
|---|---|
| public void deleteEventRequest(EventRequest eventRequest) Removes an eventRequest. The eventRequest is disabled and
the removed from the requests managed by this
EventRequestManager. Once the eventRequest is deleted, no
operations (for example, Because this method changes the underlying lists of event requests, attempting to directly delete from a list returned by a request accessor (e.g. below):
Iterator iter = requestManager.stepRequests().iterator();
while (iter.hasNext()) {
requestManager.deleteEventRequest(iter.next());
}
may cause a java..
Instead use
deleteEventRequests(List)
or copy the list before iterating.
| |
| deleteEventRequests | back to summary |
|---|---|
| public void deleteEventRequests(List<? extends EventRequest> eventRequests) Removes a list of
| |
| exceptionRequests | back to summary |
|---|---|
| public List Return an unmodifiable list of the enabled and disabled exception requests. This list is a live view of these requests and thus changes as requests are added and deleted.
| |
| methodEntryRequests | back to summary |
|---|---|
| public List Return an unmodifiable list of the enabled and disabled method entry requests. This list is a live view of these requests and thus changes as requests are added and deleted.
| |
| methodExitRequests | back to summary |
|---|---|
| public List Return an unmodifiable list of the enabled and disabled method exit requests. This list is a live view of these requests and thus changes as requests are added and deleted.
| |
| modificationWatchpointRequests | back to summary |
|---|---|
| public List Return an unmodifiable list of the enabled and disabled modification watchpoint requests. This list is a live view of these requests and thus changes as requests are added and deleted.
| |
| monitorContendedEnteredRequests | back to summary |
|---|---|
| public List Return an unmodifiable list of the enabled and disabled monitor contended entered requests. This list is a live view of these requests and thus changes as requests are added and deleted.
| |
| monitorContendedEnterRequests | back to summary |
|---|---|
| public List Return an unmodifiable list of the enabled and disabled monitor contended enter requests. This list is a live view of these requests and thus changes as requests are added and deleted.
| |
| monitorWaitedRequests | back to summary |
|---|---|
| public List Return an unmodifiable list of the enabled and disabled monitor waited requests. This list is a live view of these requests and thus changes as requests are added and deleted.
| |
| monitorWaitRequests | back to summary |
|---|---|
| public List Return an unmodifiable list of the enabled and disabled monitor wait requests. This list is a live view of these requests and thus changes as requests are added and deleted.
| |
| stepRequests | back to summary |
|---|---|
| public List Return an unmodifiable list of the enabled and disabled step requests. This list is a live view of these requests and thus changes as requests are added and deleted.
| |
| threadDeathRequests | back to summary |
|---|---|
| public List Return an unmodifiable list of the enabled and disabled thread death requests. This list is a live view of these requests and thus changes as requests are added and deleted.
| |
| threadStartRequests | back to summary |
|---|---|
| public List Return an unmodifiable list of the enabled and disabled thread start requests. This list is a live view of these requests and thus changes as requests are added and deleted.
| |
| vmDeathRequests | back to summary |
|---|---|
| public List Return an unmodifiable list of the enabled and disabled VM death requests. This list is a live view of these requests and thus changes as requests are added and deleted. Note the unsolicited VMDeathEvent does not have a corresponding request.
| |