1 /**
2 *
3 */
4 package test.crispy.example.service;
5
6 import java.rmi.Remote;
7 import java.rmi.RemoteException;
8
9 /**
10 * @author Linke
11 *
12 */
13 public interface RemoteCalculator extends Remote {
14
15 public final static String LOOKUP_NAME = "Crispy_RemoteCalculator";
16
17 public int add(int a, int b) throws RemoteException;
18 public long add (long a, long b) throws RemoteException;
19 public double add (double a, double b) throws RemoteException;
20
21 public int subtract(int a, int b) throws RemoteException;
22
23 public long addLong (long a, long b) throws RemoteException;
24 public Long addLong (Long a, Long b) throws RemoteException;
25
26 public String[] echoArray(String[] pvArray) throws RemoteException;
27 public Integer[] echoArray(Integer[] pvArray) throws RemoteException;
28 public Long[] echoArray(Long[] pvArray) throws RemoteException;
29 public Object[] echoArray(Object[] pvArray) throws RemoteException;
30
31
32 }