package jas2.jds.interfaces;
import java.rmi.*;
import jas2.util.rmi.*;
/**
* This the main interface implemented by any JavaDataServer
* It deals with establishing connections and creating new jobs or reconnecting
* to existing jobs.
*/
public interface JavaDataServer extends Remote
{
/**
* Open a connection.
*
* @return true if there are existing jobs for this user
*/
boolean openConnection(String user, double version) throws ConnectionRejected, RemoteException;
String[] listJobs() throws RemoteException;
RemoteJob newJob(String name, RemoteEventReceiver ed, RMIDestination dest, RemoteClassLoader loader) throws RemoteException;
RemoteJob connectToJob(String name, RemoteEventReceiver ed, RMIDestination dest, RemoteClassLoader loader) throws RemoteException;
RemoteJob connectToJob(String name, RemoteEventReceiver ed, RMIDestination dest) throws RemoteException;
}
Ads help maintain this website.