blob: 39f87c8cf053c61b9f072f364cf01c88bad9ea8a [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005, 2007 IBM Corporation and others.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
*******************************************************************************/
package org.eclipse.dltk.dbgp.internal;
import java.io.IOException;
import org.eclipse.dltk.dbgp.DbgpRequest;
import org.eclipse.dltk.dbgp.IDbgpRawListener;
import org.eclipse.dltk.dbgp.internal.packets.DbgpNotifyPacket;
import org.eclipse.dltk.dbgp.internal.packets.DbgpResponsePacket;
import org.eclipse.dltk.dbgp.internal.packets.DbgpStreamPacket;
public interface IDbgpDebugingEngine extends IDbgpTermination {
// Non-blocking method
void sendCommand(DbgpRequest command) throws IOException;
// Blocking methods
DbgpResponsePacket getResponsePacket(int transactionId, int timeout)
throws IOException, InterruptedException;
DbgpNotifyPacket getNotifyPacket() throws IOException, InterruptedException;
DbgpStreamPacket getStreamPacket() throws IOException, InterruptedException;
// Listeners
void addRawListener(IDbgpRawListener listener);
void removeRawListenr(IDbgpRawListener listener);
}