| org.objectweb.jonas.stests.bank.Manager
Manager | public interface Manager extends EJBObject(Code) | | Manager remote interface
author: Philippe Durieux |
Method Summary | |
public boolean | checkAccount(int a) Check an existing Account
Parameters: a - num of the Account. | public boolean | checkAll() | public void | createAll(int nb) | public void | delAccount(int d1) | public void | move(int d, int c, int v, int delay) move form an Account to another one. | public int | readBalance(int a) read balance for this Account
Parameters: a - num of the Account. | public int | readBalanceTx(int a) read balance for this Account, in a transaction.
Parameters: a - num of the Account. | public void | reinitAll() reinit all created accounts to their initial value. |
checkAccount | public boolean checkAccount(int a) throws RemoteException(Code) | | Check an existing Account
Parameters: a - num of the Account. true if OK. |
checkAll | public boolean checkAll() throws RemoteException(Code) | | Check all existing Accounts
true if all are OK. |
createAll | public void createAll(int nb) throws RemoteException(Code) | | create a set of Accounts
Parameters: nb - nb of Accounts created. |
delAccount | public void delAccount(int d1) throws RemoteException, RemoveException(Code) | | Remove an Account
Parameters: d1 - num of the Account. |
move | public void move(int d, int c, int v, int delay) throws RemoteException(Code) | | move form an Account to another one.
Parameters: d - num of the debit Account. Parameters: c - num of the credit Account. Parameters: v - value to be moved Parameters: d - delay in second for the operation. |
readBalance | public int readBalance(int a) throws RemoteException(Code) | | read balance for this Account
Parameters: a - num of the Account. balance |
readBalanceTx | public int readBalanceTx(int a) throws RemoteException(Code) | | read balance for this Account, in a transaction.
Parameters: a - num of the Account. balance |
reinitAll | public void reinitAll() throws RemoteException(Code) | | reinit all created accounts to their initial value.
|
|
|