esame programmazione distribuita + readme
This commit is contained in:
24
rmi_exam/Client.java
Normal file
24
rmi_exam/Client.java
Normal file
@@ -0,0 +1,24 @@
|
||||
package rmi_exam;
|
||||
|
||||
import java.rmi.RemoteException;
|
||||
import java.rmi.server.UnicastRemoteObject;
|
||||
|
||||
/**
|
||||
* Created by Giovanni on 16/01/2015.
|
||||
*/
|
||||
public class Client extends UnicastRemoteObject implements ClientInterface {
|
||||
|
||||
private final String nome;
|
||||
|
||||
public Client (String in_name) throws RemoteException {
|
||||
nome = in_name;
|
||||
}
|
||||
|
||||
public void detto (String s) throws RemoteException{
|
||||
System.out.println(s);
|
||||
}
|
||||
|
||||
public String getname(){return nome;}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user