jdk/src/jdk.jdi/share/classes/com/sun/jdi/request/EventRequestManager.java
author clanger
Fri, 16 Jun 2017 14:09:31 +0200
changeset 45564 0149773a140c
parent 34894 3248b89d1921
permissions -rw-r--r--
8181417: Code cleanups in com.sun.jdi Reviewed-by: alanb, stuefe, sspitsyn
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
45564
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
     2
 * Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package com.sun.jdi.request;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
45564
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    28
import java.util.List;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
45564
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    30
import com.sun.jdi.Field;
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    31
import com.sun.jdi.Location;
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    32
import com.sun.jdi.Mirror;
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    33
import com.sun.jdi.NativeMethodException;
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    34
import com.sun.jdi.ReferenceType;
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    35
import com.sun.jdi.ThreadReference;
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    36
import com.sun.jdi.VirtualMachine;
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    37
import com.sun.jdi.event.BreakpointEvent;
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    38
import com.sun.jdi.event.Event;
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    39
import com.sun.jdi.event.EventSet;
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    40
import com.sun.jdi.event.ExceptionEvent;
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    41
import com.sun.jdi.event.VMDeathEvent;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 * Manages the creation and deletion of {@link EventRequest}s. A single
45564
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    45
 * implementor of this interface exists in a particular VM and
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 * is accessed through {@link VirtualMachine#eventRequestManager()}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 * @see EventRequest
45564
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    49
 * @see Event
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
 * @see BreakpointRequest
45564
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
    51
 * @see BreakpointEvent
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
 * @see VirtualMachine
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
 * @author Robert Field
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
 * @since  1.3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
public interface EventRequestManager extends Mirror {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
     * Creates a new disabled {@link ClassPrepareRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
     * The new event request is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
     * EventRequestManager. Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
     * @return the created {@link ClassPrepareRequest}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
    ClassPrepareRequest createClassPrepareRequest();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
     * Creates a new disabled {@link ClassUnloadRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
     * The new event request is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
     * EventRequestManager. Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
     * @return the created {@link ClassUnloadRequest}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
    ClassUnloadRequest createClassUnloadRequest();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
     * Creates a new disabled {@link ThreadStartRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
     * The new event request is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
     * EventRequestManager. Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
     * @return the created {@link ThreadStartRequest}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
    ThreadStartRequest createThreadStartRequest();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
     * Creates a new disabled {@link ThreadDeathRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
     * The new event request is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
     * EventRequestManager. Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
     * @return the created {@link ThreadDeathRequest}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
    ThreadDeathRequest createThreadDeathRequest();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
     * Creates a new disabled {@link ExceptionRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
     * The new event request is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
     * EventRequestManager. Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
     * A specific exception type and its subclasses can be selected
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
     * for exception events. Caught exceptions,  uncaught exceptions,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
     * or both can be selected. Note, however, that
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
     * at the time an exception is thrown, it is not always
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
     * possible to determine whether it is truly caught. See
45564
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
   111
     * {@link ExceptionEvent#catchLocation} for
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
     * details.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
     * @param refType If non-null, specifies that exceptions which are
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
     *                instances of refType will be reported. Note: this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
     *                will include instances of sub-types.  If null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
     *                all instances will be reported
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
     * @param notifyCaught If true, caught exceptions will be reported.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
     * @param notifyUncaught If true, uncaught exceptions will be reported.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
     * @return the created {@link ExceptionRequest}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
    ExceptionRequest createExceptionRequest(ReferenceType refType,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
                                            boolean notifyCaught,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
                                            boolean notifyUncaught);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
     * Creates a new disabled {@link MethodEntryRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
     * The new event request is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
     * EventRequestManager. Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
     * @return the created {@link MethodEntryRequest}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
    MethodEntryRequest createMethodEntryRequest();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
     * Creates a new disabled {@link MethodExitRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
     * The new event request is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
     * EventRequestManager. Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
     * @return the created {@link MethodExitRequest}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
    MethodExitRequest createMethodExitRequest();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
     /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
     * Creates a new disabled {@link MonitorContendedEnterRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
     * The new event request is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
     * EventRequestManager. Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
     * Not all target virtual machines support this operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
     * Use {@link VirtualMachine#canRequestMonitorEvents()}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
     * to determine if the operation is supported.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
     * @return the created {@link MonitorContendedEnterRequest}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
     * @throws java.lang.UnsupportedOperationException if
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
     * the target VM does not support this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
     * operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
    MonitorContendedEnterRequest createMonitorContendedEnterRequest();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
     * Creates a new disabled {@link MonitorContendedEnteredRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
     * The new event request is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
     * EventRequestManager. Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
     * Not all target virtual machines support this operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
     * Use {@link VirtualMachine#canRequestMonitorEvents()}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
     * to determine if the operation is supported.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
     * @return the created {@link MonitorContendedEnteredRequest}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
     * @throws java.lang.UnsupportedOperationException if
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
     * the target VM does not support this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
     * operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
    MonitorContendedEnteredRequest createMonitorContendedEnteredRequest();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
     * Creates a new disabled {@link MonitorWaitRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
     * The new event request is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
     * EventRequestManager. Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
     * Not all target virtual machines support this operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
     * Use {@link VirtualMachine#canRequestMonitorEvents()}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
     * to determine if the operation is supported.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
     * @return the created {@link MonitorWaitRequest}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
     * @throws java.lang.UnsupportedOperationException if
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
     * the target VM does not support this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
     * operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
    MonitorWaitRequest createMonitorWaitRequest();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
     * Creates a new disabled {@link MonitorWaitedRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
     * The new event request is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
     * EventRequestManager. Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
     * Not all target virtual machines support this operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
     * Use {@link VirtualMachine#canRequestMonitorEvents()}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
     * to determine if the operation is supported.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
     * @return the created {@link MonitorWaitedRequest}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
     * @throws java.lang.UnsupportedOperationException if
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
     * the target VM does not support this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
     * operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
    MonitorWaitedRequest createMonitorWaitedRequest();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
     * Creates a new disabled {@link StepRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
     * The new event request is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
     * EventRequestManager. Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
     * The returned request will control stepping only in the specified
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
   230
     * {@code thread}; all other threads will be unaffected.
45564
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
   231
     * A {@code size} value of {@link StepRequest#STEP_MIN} will generate a
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
     * step event each time the code index changes. It represents the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
     * smallest step size available and often maps to the instruction
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
     * level.
45564
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
   235
     * A {@code size} value of {@link StepRequest#STEP_LINE} will generate a
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
     * step event each time the source line changes unless line number information is not available,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
     * in which case a STEP_MIN will be done instead.  For example, no line number information is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
     * available during the execution of a method that has been rendered obsolete by
45564
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
   239
     * by a {@link VirtualMachine#redefineClasses} operation.
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
   240
     * A {@code depth} value of {@link StepRequest#STEP_INTO} will generate
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
   241
     * step events in any called methods.  A {@code depth} value
45564
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
   242
     * of {@link StepRequest#STEP_OVER} restricts step events to the current frame
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
   243
     * or caller frames. A {@code depth} value of {@link StepRequest#STEP_OUT}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
     * restricts step events to caller frames only. All depth
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
     * restrictions are relative to the call stack immediately before the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
     * step takes place.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
     * Only one pending step request is allowed per thread.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
     * Note that a typical debugger will want to cancel stepping
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
     * after the first step is detected.  Thus a next line method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
     * would do the following:
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
   253
     * <pre>{@code
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
     *     EventRequestManager mgr = myVM.{@link VirtualMachine#eventRequestManager eventRequestManager}();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
     *     StepRequest request = mgr.createStepRequest(myThread,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
     *                                                 StepRequest.{@link StepRequest#STEP_LINE STEP_LINE},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
     *                                                 StepRequest.{@link StepRequest#STEP_OVER STEP_OVER});
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
     *     request.{@link EventRequest#addCountFilter addCountFilter}(1);  // next step only
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
     *     request.enable();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
     *     myVM.{@link VirtualMachine#resume resume}();
30037
3e785fad2c3b 8078622: remove tidy warnings from JPDA docs
avstepan
parents: 25859
diff changeset
   261
     * }</pre>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
     * @param thread the thread in which to step
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
     * @param depth the step depth
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
     * @param size the step size
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
     * @return the created {@link StepRequest}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
     * @throws DuplicateRequestException if there is already a pending
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
     * step request for the specified thread.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
     * @throws IllegalArgumentException if the size or depth arguments
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
     * contain illegal values.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
    StepRequest createStepRequest(ThreadReference thread,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
                                  int size,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
                                  int depth);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
     * Creates a new disabled {@link BreakpointRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
     * The given {@link Location} must have a valid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
     * (that is, non-negative) code index. The new
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
     * breakpoint is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
     * EventRequestManager. Multiple breakpoints at the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
     * same location are permitted. Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
     * @param location the location of the new breakpoint.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
     * @return the created {@link BreakpointRequest}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
     * @throws NativeMethodException if location is within a native method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
    BreakpointRequest createBreakpointRequest(Location location);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
     * Creates a new disabled watchpoint which watches accesses to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
     * specified field. The new
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
     * watchpoint is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
     * EventRequestManager. Multiple watchpoints on the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
     * same field are permitted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
     * Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
     * Not all target virtual machines support this operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
     * Use {@link VirtualMachine#canWatchFieldAccess()}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
     * to determine if the operation is supported.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
     * @param field the field to watch
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
     * @return the created watchpoint
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
     * @throws java.lang.UnsupportedOperationException if
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
     * the target virtual machine does not support this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
     * operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
    AccessWatchpointRequest createAccessWatchpointRequest(Field field);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
     * Creates a new disabled watchpoint which watches accesses to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
     * specified field. The new
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
     * watchpoint is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
     * EventRequestManager. Multiple watchpoints on the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
     * same field are permitted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
     * Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
     * Not all target virtual machines support this operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
     * Use {@link VirtualMachine#canWatchFieldModification()}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
     * to determine if the operation is supported.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
     * @param field the field to watch
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
     * @return the created watchpoint
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
     * @throws java.lang.UnsupportedOperationException if
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
     * the target virtual machine does not support this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
     * operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
    ModificationWatchpointRequest createModificationWatchpointRequest(Field field);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
     * Creates a new disabled {@link VMDeathRequest}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
     * The new request is added to the list managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
     * EventRequestManager.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
     * Use {@link EventRequest#enable()} to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
     * activate this event request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
     * This request (if enabled) will cause a
45564
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
   341
     * {@link VMDeathEvent}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
     * to be sent on termination of the target VM.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
     * A VMDeathRequest with a suspend policy of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
     * {@link EventRequest#SUSPEND_ALL SUSPEND_ALL}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
     * can be used to assure processing of incoming
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
     * {@link EventRequest#SUSPEND_NONE SUSPEND_NONE} or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
     * {@link EventRequest#SUSPEND_EVENT_THREAD SUSPEND_EVENT_THREAD}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
     * events before VM death.  If all event processing is being
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
     * done in the same thread as event sets are being read,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
     * enabling the request is all that is needed since the VM
45564
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
   352
     * will be suspended until the {@link EventSet}
0149773a140c 8181417: Code cleanups in com.sun.jdi
clanger
parents: 34894
diff changeset
   353
     * containing the {@link VMDeathEvent}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
     * is resumed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
     * Not all target virtual machines support this operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
     * Use {@link VirtualMachine#canRequestVMDeathEvent()}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
     * to determine if the operation is supported.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
     * @return the created request
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
     * @throws java.lang.UnsupportedOperationException if
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
     * the target VM does not support this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
     * operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
    VMDeathRequest createVMDeathRequest();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
     * Removes an eventRequest. The eventRequest is disabled and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
     * the removed from the requests managed by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
     * EventRequestManager. Once the eventRequest is deleted, no
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
     * operations (for example, {@link EventRequest#setEnabled})
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
     * are permitted - attempts to do so will generally cause an
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
     * {@link InvalidRequestStateException}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
     * No other eventRequests are effected.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
     * Because this method changes the underlying lists of event
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
     * requests, attempting to directly delete from a list returned
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
     * by a request accessor (e.g. below):
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
     * <PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
     *   Iterator iter = requestManager.stepRequests().iterator();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
     *   while (iter.hasNext()) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
     *      requestManager.deleteEventRequest(iter.next());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
     *  }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
     * </PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
     * may cause a {@link java.util.ConcurrentModificationException}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
     * Instead use
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
     * {@link #deleteEventRequests(List) deleteEventRequests(List)}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
     * or copy the list before iterating.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
     * @param eventRequest the eventRequest to remove
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
    void deleteEventRequest(EventRequest eventRequest);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
     * Removes a list of {@link EventRequest}s.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
     * @see #deleteEventRequest(EventRequest)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
     * @param eventRequests the list of eventRequests to remove
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
    void deleteEventRequests(List<? extends EventRequest> eventRequests);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
     * Remove all breakpoints managed by this EventRequestManager.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
     * @see #deleteEventRequest(EventRequest)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
    void deleteAllBreakpoints();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
     * Return an unmodifiable list of the enabled and disabled step requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
     * @return the all {@link StepRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
    List<StepRequest> stepRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
     * Return an unmodifiable list of the enabled and disabled class prepare requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
     * @return the all {@link ClassPrepareRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
    List<ClassPrepareRequest> classPrepareRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
     * Return an unmodifiable list of the enabled and disabled class unload requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
     * @return the all {@link ClassUnloadRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
    List<ClassUnloadRequest> classUnloadRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
     * Return an unmodifiable list of the enabled and disabled thread start requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
     * @return the all {@link ThreadStartRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
    List<ThreadStartRequest> threadStartRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
     * Return an unmodifiable list of the enabled and disabled thread death requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
     * @return the all {@link ThreadDeathRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
    List<ThreadDeathRequest> threadDeathRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
     * Return an unmodifiable list of the enabled and disabled exception requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   454
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   456
     * @return the all {@link ExceptionRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   457
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
    List<ExceptionRequest> exceptionRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
     * Return an unmodifiable list of the enabled and disabled breakpoint requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   462
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   463
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
     * @return the list of all {@link BreakpointRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
    List<BreakpointRequest> breakpointRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   469
     * Return an unmodifiable list of the enabled and disabled access
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
     * watchpoint requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   471
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
     * @return the all {@link AccessWatchpointRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   474
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
    List<AccessWatchpointRequest> accessWatchpointRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
     * Return an unmodifiable list of the enabled and disabled modification
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
     * watchpoint requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
     * @return the all {@link ModificationWatchpointRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
    List<ModificationWatchpointRequest> modificationWatchpointRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
     * Return an unmodifiable list of the enabled and disabled method entry requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   489
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
     * @return the list of all {@link MethodEntryRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
    List<MethodEntryRequest> methodEntryRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   493
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   495
     * Return an unmodifiable list of the enabled and disabled method exit requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   496
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   497
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
     * @return the list of all {@link MethodExitRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   500
    List<MethodExitRequest> methodExitRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
90ce3da70b43 Initial load
duke
parents:
diff changeset
   502
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
     * Return an unmodifiable list of the enabled and disabled monitor contended enter requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   504
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   505
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   506
     * @return the list of all {@link MonitorContendedEnterRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   507
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   508
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   509
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   510
    List<MonitorContendedEnterRequest> monitorContendedEnterRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   511
90ce3da70b43 Initial load
duke
parents:
diff changeset
   512
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   513
     * Return an unmodifiable list of the enabled and disabled monitor contended entered requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   514
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   515
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   516
     * @return the list of all {@link MonitorContendedEnteredRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   517
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   518
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   519
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   520
    List<MonitorContendedEnteredRequest> monitorContendedEnteredRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   521
90ce3da70b43 Initial load
duke
parents:
diff changeset
   522
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   523
     * Return an unmodifiable list of the enabled and disabled monitor wait requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   524
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   525
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   526
     * @return the list of all {@link MonitorWaitRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   527
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   528
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   529
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   530
    List<MonitorWaitRequest> monitorWaitRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   531
90ce3da70b43 Initial load
duke
parents:
diff changeset
   532
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   533
     * Return an unmodifiable list of the enabled and disabled monitor waited requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   534
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   535
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   536
     * @return the list of all {@link MonitorWaitedRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   537
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   538
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   539
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   540
    List<MonitorWaitedRequest> monitorWaitedRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   541
90ce3da70b43 Initial load
duke
parents:
diff changeset
   542
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   543
     * Return an unmodifiable list of the enabled and disabled VM death requests.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   544
     * This list is a live view of these requests and thus changes as requests
90ce3da70b43 Initial load
duke
parents:
diff changeset
   545
     * are added and deleted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   546
     * Note: the unsolicited VMDeathEvent does not have a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   547
     * corresponding request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   548
     * @return the list of all {@link VMDeathRequest} objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   549
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   550
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   551
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   552
    List<VMDeathRequest> vmDeathRequests();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   553
}