All Examples This Package
Class examples.rmi.stock.Stock
java.lang.Object
|
+----examples.rmi.stock.Stock
- public class Stock
- extends Object
- implements Serializable
This class is used with the WebLogic RMI Stock examples package.
The Stock object is used to encapsulate stock update information
that is sent in an update notification. Note that the class
implements the java.io.Serializable interface in order to be
passed as an argument or return value in RMI.
The classes in this package have been adapted to work with
WebLogic RMI from WebLogic.
-
Stock(String)
- Constructs a stock with the given name with a initial random
stock price.
-
update()
- Updates the stock price (generates a random change).
Stock
public Stock(String name)
- Constructs a stock with the given name with a initial random
stock price.
update
public float update()
- Updates the stock price (generates a random change).
- Returns:
- Float
All Examples This Package