1
10package common;
11
12import java.rmi.Remote;
13import java.rmi.RemoteException;
14import java.math.BigDecimal;
15import org.jstk.example.bank.Exceptions;
16
17public interface RemoteBank extends Remote {
18 public RemoteAccount openAccount(BigDecimal initialDeposit) throws RemoteException;
19 public void closeAccount(String acctNo) throws Exceptions.AccountNotFound,
20 Exceptions.AccountClosed, RemoteException;
21 public RemoteAccount getAccount(String acctNo) throws Exceptions.AccountNotFound, RemoteException;
22 public RemoteIterator accounts() throws RemoteException;
23}
24