A B C D E G I M N R S W

A

Account - Class in se.kth.leiflindback.distdb.db
This is the distributed data.
Account() - Constructor for class se.kth.leiflindback.distdb.db.Account
 
addInterest(float) - Method in class se.kth.leiflindback.distdb.db.Account
Deposits the interest to the account.

B

Bank - Class in se.kth.leiflindback.distdb.client
The bank deposits, withdraws and adds interest to the account.
Bank(String) - Constructor for class se.kth.leiflindback.distdb.client.Bank
Constructs a new instance and connects it to a JChannel.

C

Command - Interface in se.kth.leiflindback.distdb.db
All commands sent between nodes are implementations of this interface.

D

DBHandler - Class in se.kth.leiflindback.distdb.db
This class handles all communication betwwen clients and database (that is, the bank account).
DBHandler(Account) - Constructor for class se.kth.leiflindback.distdb.db.DBHandler
Creates a new instance that updates the specified account.
deposit(float) - Method in class se.kth.leiflindback.distdb.db.Account
Deposit the specified amount.
DepositCommand - Class in se.kth.leiflindback.distdb.db
This Command implementation is used to deposit money.
DepositCommand(float) - Constructor for class se.kth.leiflindback.distdb.db.DepositCommand
Constructs an instance that will deposit the specified amount to all accounts it is sent to.
doSomeBanking() - Method in class se.kth.leiflindback.distdb.client.Bank
Randomly deposits, withdraws and adds interest.

E

execute(Account) - Method in interface se.kth.leiflindback.distdb.db.Command
Executes the task of the command implementation.
execute(Account) - Method in class se.kth.leiflindback.distdb.db.DepositCommand
 
execute(Account) - Method in class se.kth.leiflindback.distdb.db.InterestCommand
 
execute(Account) - Method in class se.kth.leiflindback.distdb.db.WithdrawCommand
 

G

getBalance() - Method in class se.kth.leiflindback.distdb.db.Account
Returns the balance.
getState() - Method in class se.kth.leiflindback.distdb.client.Bank
Called by the jgroups runtime when som other node needs the groups state.
getState() - Method in class se.kth.leiflindback.distdb.db.DBHandler
Called by the jgroups runtime when som other node needs the groups state.

I

InterestCommand - Class in se.kth.leiflindback.distdb.db
This Command implementation is used to deposit interest.
InterestCommand(float) - Constructor for class se.kth.leiflindback.distdb.db.InterestCommand
Constructs an instance that will deposit the gained interest to all accounts it is sent to.

M

main(String[]) - Static method in class se.kth.leiflindback.distdb.client.Bank
Starts the bank.
main(String[]) - Static method in class se.kth.leiflindback.distdb.db.DBHandler
Starts a database server.

N

NullAccount - Class in se.kth.leiflindback.distdb.db
Used as an empty state, so we can transfer an object instead of null.
NullAccount() - Constructor for class se.kth.leiflindback.distdb.db.NullAccount
 

R

receive(Message) - Method in class se.kth.leiflindback.distdb.db.DBHandler
Called by the jgroups runtime when a message has arrived.

S

se.kth.leiflindback.distdb.client - package se.kth.leiflindback.distdb.client
 
se.kth.leiflindback.distdb.db - package se.kth.leiflindback.distdb.db
 
serialVersionUID - Static variable in class se.kth.leiflindback.distdb.db.Account
 
serialVersionUID - Static variable in interface se.kth.leiflindback.distdb.db.Command
 
serialVersionUID - Static variable in class se.kth.leiflindback.distdb.db.DepositCommand
 
serialVersionUID - Static variable in class se.kth.leiflindback.distdb.db.InterestCommand
 
serialVersionUID - Static variable in class se.kth.leiflindback.distdb.db.NullAccount
 
serialVersionUID - Static variable in class se.kth.leiflindback.distdb.db.WithdrawCommand
 
setState(byte[]) - Method in class se.kth.leiflindback.distdb.db.DBHandler
Called by the jgroups runtime when this node has requested state info.
start(String) - Method in class se.kth.leiflindback.distdb.db.DBHandler
Starts the database server.
stop() - Method in class se.kth.leiflindback.distdb.db.DBHandler
Stops the database server.

W

withdraw(float) - Method in class se.kth.leiflindback.distdb.db.Account
Withdraw the specified amount.
WithdrawCommand - Class in se.kth.leiflindback.distdb.db
This Command implementation is used to withdraw money.
WithdrawCommand(float) - Constructor for class se.kth.leiflindback.distdb.db.WithdrawCommand
Constructs an instance that will withdraw the specified amount from all accounts it is sent to.

A B C D E G I M N R S W