org.apache.geronimo.samples.daytrader.client.ws
Interface TradeWSServices
- All Superinterfaces:
- java.rmi.Remote
- public interface TradeWSServices
- extends java.rmi.Remote
Method Summary |
OrderDataBean |
buy(java.lang.String userID,
java.lang.String symbol,
double quantity,
int orderProcessingMode)
|
void |
cancelOrder(java.lang.Integer orderID,
boolean twoPhase)
|
OrderDataBean |
completeOrder(java.lang.Integer orderID,
boolean twoPhase)
|
QuoteDataBean |
createQuote(java.lang.String symbol,
java.lang.String companyName,
java.math.BigDecimal price)
|
AccountDataBean |
getAccountData(java.lang.String userID)
|
AccountProfileDataBean |
getAccountProfileData(java.lang.String userID)
|
QuoteDataBean[] |
getAllQuotes()
|
OrderDataBean[] |
getClosedOrders(java.lang.String userID)
|
HoldingDataBean |
getHolding(java.lang.Integer holdingID)
|
HoldingDataBean[] |
getHoldings(java.lang.String userID)
|
MarketSummaryDataBeanWS |
getMarketSummary()
|
OrderDataBean[] |
getOrders(java.lang.String userID)
|
QuoteDataBean |
getQuote(java.lang.String symbol)
|
AccountDataBean |
login(java.lang.String userID,
java.lang.String password)
|
void |
logout(java.lang.String userID)
|
void |
orderCompleted(java.lang.String userID,
java.lang.Integer orderID)
|
void |
queueOrder(java.lang.Integer orderID,
boolean twoPhase)
|
AccountDataBean |
register(java.lang.String userID,
java.lang.String password,
java.lang.String fullname,
java.lang.String address,
java.lang.String email,
java.lang.String creditcard,
java.math.BigDecimal openBalance)
|
RunStatsDataBean |
resetTrade(boolean deleteAll)
|
OrderDataBean |
sell(java.lang.String userID,
java.lang.Integer holdingID,
int orderProcessingMode)
|
AccountProfileDataBean |
updateAccountProfile(AccountProfileDataBean profileData)
|
QuoteDataBean |
updateQuotePriceVolume(java.lang.String symbol,
java.math.BigDecimal newPrice,
double sharesTraded)
|
getMarketSummary
public MarketSummaryDataBeanWS getMarketSummary()
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
buy
public OrderDataBean buy(java.lang.String userID,
java.lang.String symbol,
double quantity,
int orderProcessingMode)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
sell
public OrderDataBean sell(java.lang.String userID,
java.lang.Integer holdingID,
int orderProcessingMode)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
queueOrder
public void queueOrder(java.lang.Integer orderID,
boolean twoPhase)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
completeOrder
public OrderDataBean completeOrder(java.lang.Integer orderID,
boolean twoPhase)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
cancelOrder
public void cancelOrder(java.lang.Integer orderID,
boolean twoPhase)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
orderCompleted
public void orderCompleted(java.lang.String userID,
java.lang.Integer orderID)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getOrders
public OrderDataBean[] getOrders(java.lang.String userID)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getClosedOrders
public OrderDataBean[] getClosedOrders(java.lang.String userID)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
createQuote
public QuoteDataBean createQuote(java.lang.String symbol,
java.lang.String companyName,
java.math.BigDecimal price)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getQuote
public QuoteDataBean getQuote(java.lang.String symbol)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getAllQuotes
public QuoteDataBean[] getAllQuotes()
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
updateQuotePriceVolume
public QuoteDataBean updateQuotePriceVolume(java.lang.String symbol,
java.math.BigDecimal newPrice,
double sharesTraded)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getHoldings
public HoldingDataBean[] getHoldings(java.lang.String userID)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getHolding
public HoldingDataBean getHolding(java.lang.Integer holdingID)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getAccountData
public AccountDataBean getAccountData(java.lang.String userID)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getAccountProfileData
public AccountProfileDataBean getAccountProfileData(java.lang.String userID)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
updateAccountProfile
public AccountProfileDataBean updateAccountProfile(AccountProfileDataBean profileData)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
login
public AccountDataBean login(java.lang.String userID,
java.lang.String password)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
logout
public void logout(java.lang.String userID)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
register
public AccountDataBean register(java.lang.String userID,
java.lang.String password,
java.lang.String fullname,
java.lang.String address,
java.lang.String email,
java.lang.String creditcard,
java.math.BigDecimal openBalance)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
resetTrade
public RunStatsDataBean resetTrade(boolean deleteAll)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
Copyright © 2005-2006 Apache Software Foundation. All Rights Reserved.