blob: d32dee14b206d08a787054f0c2885490d47397cb [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdi.internal.event;
import java.io.DataInputStream;
import org.eclipse.jdi.internal.MirrorImpl;
import org.eclipse.jdi.internal.VirtualMachineImpl;
import org.eclipse.jdi.internal.request.RequestID;
import com.sun.jdi.event.VMDeathEvent;
/**
* this class implements the corresponding interfaces declared by the JDI
* specification. See the com.sun.jdi package for more information.
*
*/
public class VMDeathEventImpl extends EventImpl implements VMDeathEvent {
/** Jdwp Event Kind. */
public static final byte EVENT_KIND = EVENT_VM_DEATH;
/**
* Creates new VMDeathEventImpl.
*/
public VMDeathEventImpl(VirtualMachineImpl vmImpl, RequestID requestID) {
super("VMDeathEvent", vmImpl, requestID); //$NON-NLS-1$
}
/**
* Creates, reads and returns new EventImpl, of which requestID has
* already been read.
* @param target
* @param requestID
* @param dataInStream
* @return
*/
public static VMDeathEventImpl read(MirrorImpl target, RequestID requestID,
DataInputStream dataInStream) {
VirtualMachineImpl vmImpl = target.virtualMachineImpl();
VMDeathEventImpl event = new VMDeathEventImpl(vmImpl, requestID);
return event;
}
}