package conformance.rmi; import rmi.RMIException; import java.io.FileNotFoundException; /** Simple interface for an RMI server.

This interface is used in multiple tests. */ public interface TestInterface { /** Tests transmission of arguments and returning of results. @param throw_exception If true, this method throws FileNotFoundException. Otherwise, it returns null. @return null. @throws FileNotFoundException If the argument is true. @throws RMIException If the call cannot be complete due to a network error. */ public Object method(boolean throw_exception) throws RMIException, FileNotFoundException; /** Permits two threads to rendzevous with control inside the server.

The first thread to call this method blocks until a second method wakes it. @throws RMIException If the call cannot be complete due to a network error. */ public void rendezvous() throws RMIException; }