All Examples  All Cluster Examples  This Example  This Package

Class examples.cluster.ejb.account.AccountResult

java.lang.Object
   |
   +----examples.cluster.ejb.account.AccountResult

public final class AccountResult
extends Object
implements Serializable
This class is used to return information and the results of a of a balance inquiry, deposit, withdrawal or transfer transaction.

Author:
Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.

Variable Index

 o balance
 o server

Constructor Index

 o AccountResult()
Default AccountResult object creator.
 o AccountResult(String, double)
Creates an AccountResult object with the server (the name of the Cluster member) where the EJBean is located and the account balance.

Method Index

 o getBalance()
Returns the account balance from an AccountResult object.
 o getServer()
Returns the server name from an AccountResult object.

Variables

 o server
 public String server
 o balance
 public double balance

Constructors

 o AccountResult
 public AccountResult()
Default AccountResult object creator.

Returns:
AccountResult
 o AccountResult
 public AccountResult(String server,
                      double balance)
Creates an AccountResult object with the server (the name of the Cluster member) where the EJBean is located and the account balance.

Parameters:
server - String Server name (the Cluster member)
balance - double Account balance
Returns:
AccountResult

Methods

 o getServer
 public String getServer()
Returns the server name from an AccountResult object.

Returns:
String server name
 o getBalance
 public double getBalance()
Returns the account balance from an AccountResult object.

Returns:
double Account balance

All Examples  All Cluster Examples  This Example  This Package