priceserver.java

来自「100多M的J2EE培训内容」· Java 代码 · 共 68 行

JAVA
68
字号
package bible.rmi.example4;

import weblogic.rmi.Remote;

/**
 * Interface PriceServer
 *
 *
 * @author
 * @version %I%, %G%
 */
public interface PriceServer extends weblogic.rmi.Remote {

  // Used to locate or register a PriceServer via RMI.

  /** Field PRICESERVERNAME */
  public static final String PRICESERVERNAME = "priceserver";

  // Return the current price of the given security.

  /**
   * Method getPrice
   *
   *
   * @param symbol
   *
   * @return
   *
   */
  public float getPrice(String symbol) throws java.rmi.RemoteException;

  // Set the price of the given security.

  /**
   * Method setPrice
   *
   *
   * @param symbol
   * @param price
   *
   */
  public void setPrice(String symbol, float price) throws java.rmi.RemoteException;

  // Return all ticker symbols in this server's database.

  /**
   * Method getSecurities
   *
   *
   * @return
   *
   */
  public String[] getSecurities() throws java.rmi.RemoteException;

  // Submit an order on a client's behalf, then notify the submitting
  // client when the order is executed.

  /**
   * Method enterMarketOrder
   *
   *
   * @param order
   * @param client
   *
   */
  public void enterMarketOrder(Order order, ExecutionAlert client) throws java.rmi.RemoteException;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?