| package org.eclipse.jem.internal.proxy.common; | |
| /******************************************************************************* | |
| * Copyright (c) 2001, 2003 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 | |
| *******************************************************************************/ | |
| /* | |
| * $RCSfile$ | |
| * $Revision$ $Date$ | |
| */ | |
| import java.io.OutputStream; | |
| /** | |
| * This is the interface for accessing the | |
| * VM callback Server. It will be given to an | |
| * ICallback so that the callback can access | |
| * the server to request a callback. | |
| */ | |
| public interface IVMCallbackServer { | |
| /** | |
| * Get the IVMServer for this callback server. | |
| * @return | |
| * | |
| * @since 1.1.0 | |
| */ | |
| public IVMServer getIVMServer(); | |
| /** | |
| * Process a callback. The runnable contains the | |
| * actual code. | |
| */ | |
| public Object doCallback(ICallbackRunnable runnable) throws CommandException; | |
| /** | |
| * Request a stream for writing a lot of data (suggested for larger | |
| * than several thousand bytes). The connection will be assigned | |
| * to this stream until the stream is closed. | |
| */ | |
| public OutputStream requestStream(int callbackID, int msgID) throws CommandException; | |
| } |