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 RemoteAccount extends Remote {
18 public void deposit(BigDecimal amt) throws Exceptions.AccountClosed, RemoteException;
19 public void withdraw(BigDecimal amt) throws Exceptions.AccountClosed,
20 Exceptions.InsufficientAmount, RemoteException;
21 public void close() throws Exceptions.AccountClosed, RemoteException;
22 public BigDecimal getBalance() throws Exceptions.AccountClosed, RemoteException;
23 public String getAcctNo() throws RemoteException;
24 public String getStatement() throws RemoteException;
25}
26