blob: 1f49b641bafa260a354692699d9932cd547e7309 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2001, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jem.internal.proxy.common;
/*
* $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;
}