1 /*
2  * @(#) $Id: RemoteBank.java,v 1.2 2003/07/08 08:13:52 pankaj Exp $
3  *
4  * Copyright (c) 2002-03 by Pankaj Kumar (http://www.pankaj-k.net). 
5  * All rights reserved.
6  *
7  * The license governing the use of this file can be found in the 
8  * root directory of the containing software.
9  */
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