Path: blob/master/test/hotspot/jtreg/vmTestbase/nsk/share/jdi/DebuggeeEventData.java
41161 views
/*1* Copyright (c) 2006, 2018, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*/22package nsk.share.jdi;2324/*25* Classes included in this class represent JDI events on debuggee VM's side26* All this classes contain information about JDI event which should be generated during test execution27*/28public class DebuggeeEventData {29// base event data class30public static class DebugEventData {31}3233/*34* debug information about monitor event35*/36public static class DebugMonitorEventData extends DebugEventData {37public DebugMonitorEventData(Object monitor, Thread thread, Object eventObject) {38this.monitor = monitor;39this.thread = thread;40this.eventObject = eventObject;41}4243public Object monitor;4445public Thread thread;4647public Object eventObject;48}4950/*51* information about MonitorContendedEnterEvent52*/53public static class DebugMonitorEnterEventData extends DebugMonitorEventData {54public DebugMonitorEnterEventData(Object monitor, Thread thread, Object eventObject) {55super(monitor, thread, eventObject);56}57}5859/*60* information about MonitorContendedEnteredEvent61*/62public static class DebugMonitorEnteredEventData extends DebugMonitorEventData {63public DebugMonitorEnteredEventData(Object monitor, Thread thread, Object eventObject) {64super(monitor, thread, eventObject);65}66}6768/*69* information about MonitorWaitEvent70*/71public static class DebugMonitorWaitEventData extends DebugMonitorEventData {72public long timeout;7374public DebugMonitorWaitEventData(Object monitor, Thread thread, long timeout, Object eventObject) {75super(monitor, thread, eventObject);76this.timeout = timeout;77}78}7980/*81* information about MonitorWaitedEvent82*/83public static class DebugMonitorWaitedEventData extends DebugMonitorEventData {84public boolean timedout;8586public DebugMonitorWaitedEventData(Object monitor, Thread thread, boolean timedout, Object eventObject) {87super(monitor, thread, eventObject);88this.timedout = timedout;89}90}9192}939495