barrier.barrierPost();
}
}
//
ServerRMI/ClientImpl.java
import java.rmi.*;
import java.rmi.server.*;
import Extensions.*;
public class ClientImpl extends UnicastRemoteObject implements
ClientOp {
static int delay = 0;
String
message;
public String getString() {
return(message);
}
public ClientImpl() throws RemoteException {
message = "No Message";
}
public ClientImpl(String msg) throws RemoteException {
message = msg;
}
}
//
ServerRMI/ClientOp.java
import java.rmi.*;
// A remote interface for an object that supports the "call"
// operation.
public interface ClientOp extends Remote {
public String getString() throws RemoteException;
}
//
ServerRMI/ServerImpl.java
import java.rmi.*;
import java.rmi.server.*;
import Extensions.*;
public class ServerImpl extends UnicastRemoteObject implements
ServerOp {
int nCalls = 0;
public ServerImpl() throws RemoteException {
}
Search WWH :
Custom Search
Previous Page
Multithreaded Programming with JAVA - Topic Index
Next Page
Multithreaded Programming with JAVA - Bookmarks
Home