1 package common;
2
3 import java.rmi.Remote;
4 import java.rmi.RemoteException;
5 import java.math.BigDecimal;
6 import org.jstk.example.bank.Exceptions;
7
8 public interface RemoteAccount extends Remote {
9 public void deposit(BigDecimal amt) throws Exceptions.AccountClosed, RemoteException;
10 public void withdraw(BigDecimal amt) throws Exceptions.AccountClosed,
11 Exceptions.InsufficientAmount, RemoteException;
12 public void close() throws Exceptions.AccountClosed, RemoteException;
13 public BigDecimal getBalance() throws Exceptions.AccountClosed, RemoteException;
14 public String getAcctNo() throws RemoteException;
15 public String getStatement() throws RemoteException;
16}
17