ftex.broker
Interface Broker
- All Superinterfaces:
- javax.ejb.EJBObject, java.rmi.Remote
- public interface Broker
- extends javax.ejb.EJBObject
Remote interface for Broker.
Method Summary |
boolean |
checkUserName(java.lang.String u_name)
|
boolean |
createAccount(java.lang.String u_name,
java.lang.String u_passwd,
java.lang.String u_first,
java.lang.String u_last,
java.lang.String transactionID)
|
Account |
getAccount(java.lang.String username)
|
double |
getBuyOrderPrice(java.lang.String symbol)
|
java.util.Collection |
getBuyOrders(java.lang.String symbol,
int maxDisplay)
|
java.lang.String |
getBuyOrderStr(java.lang.String symbol,
int maxDisplay)
|
double |
getLastTransactionPrice(java.lang.String symbol)
|
java.lang.String |
getMarketStr()
|
java.util.Collection |
getOutstanding(java.lang.String clientID)
|
double |
getSellOrderPrice(java.lang.String symbol)
|
java.util.Collection |
getSellOrders(java.lang.String symbol,
int maxDisplay)
|
java.lang.String |
getSellOrderStr(java.lang.String symbol,
int maxDisplay)
|
java.util.Collection |
getTransactions(java.lang.String clientID)
|
java.util.Collection |
getUniqueSymbols()
|
boolean |
isAlive()
|
boolean |
login(java.lang.String userName,
java.lang.String password)
|
boolean |
modifyAccount(java.lang.String u_name,
java.lang.String password,
java.lang.String f_name,
java.lang.String l_name,
java.lang.String transactionID)
|
int |
putOrder(java.lang.String symbol,
java.lang.String orderType,
java.lang.String orderMethod,
java.lang.Integer quantity,
java.lang.Double price,
java.lang.String clientID,
java.lang.String transactionID)
|
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
getLastTransactionPrice
public double getLastTransactionPrice(java.lang.String symbol)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
putOrder
public int putOrder(java.lang.String symbol,
java.lang.String orderType,
java.lang.String orderMethod,
java.lang.Integer quantity,
java.lang.Double price,
java.lang.String clientID,
java.lang.String transactionID)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getBuyOrders
public java.util.Collection getBuyOrders(java.lang.String symbol,
int maxDisplay)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getSellOrders
public java.util.Collection getSellOrders(java.lang.String symbol,
int maxDisplay)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getOutstanding
public java.util.Collection getOutstanding(java.lang.String clientID)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getTransactions
public java.util.Collection getTransactions(java.lang.String clientID)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
login
public boolean login(java.lang.String userName,
java.lang.String password)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
createAccount
public boolean createAccount(java.lang.String u_name,
java.lang.String u_passwd,
java.lang.String u_first,
java.lang.String u_last,
java.lang.String transactionID)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
checkUserName
public boolean checkUserName(java.lang.String u_name)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getAccount
public Account getAccount(java.lang.String username)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
modifyAccount
public boolean modifyAccount(java.lang.String u_name,
java.lang.String password,
java.lang.String f_name,
java.lang.String l_name,
java.lang.String transactionID)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getUniqueSymbols
public java.util.Collection getUniqueSymbols()
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
isAlive
public boolean isAlive()
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getSellOrderStr
public java.lang.String getSellOrderStr(java.lang.String symbol,
int maxDisplay)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getBuyOrderStr
public java.lang.String getBuyOrderStr(java.lang.String symbol,
int maxDisplay)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getSellOrderPrice
public double getSellOrderPrice(java.lang.String symbol)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getBuyOrderPrice
public double getBuyOrderPrice(java.lang.String symbol)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getMarketStr
public java.lang.String getMarketStr()
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException