Server Architecture

- receive requests from Client or Monitor
- if the request from Client, then access AccountManager object
- connect() connects a client to a service object (there
are many service objects per server) depends on the client's username/password
and assigned transaction number
- disconnect() informs the server to free the
reserved service object for other usage
- reserve an available service object (Transaction object)
- queryChecking() querys the current status of
checking account
- querySaving() querys the current status of
Saving accoung
- transferFromSavingToChecking() transfers money
from Saving accounf to Checking account
- transferFromCheckingToSaving() transfers money
from Checking account to Saving account
- beeping() establishes the current service
- return the reference to this service (Transaction) object
- JDBC connection to Database
- start a thread to check the all connections to this server
- checkBeeps() checks the current beeps
if the connection is active
- connect this service object (Transaction) object to Name Server
- if the request from Monitor, then access Monitor object
- connect() checks the username/password for the
connection from Monitor
- getServerStatus() to obtain the current server
status including the username and transaction number for active connections
- connect Monitor to Name Server
- return references of related objects to Client and Monitor
Back to Homepage