org.jgroups.demos

Class QuoteClient

public class QuoteClient extends Frame implements WindowListener, ActionListener, MembershipListener

Used in conjunction with QuoteServer: a client is member of a group of quote servers which replicate stock quotes among themselves. The client broadcasts its request (set, get quotes) and (in the case of get waits for the first reply received (usually the one from the quote server closest to it). The client can get and set quotes as long as a minimum of 1 server (in the group) is running.

Author: Bela Ban

Constructor Summary
QuoteClient()
Method Summary
voidactionPerformed(ActionEvent e)
voidblock()
static voidmain(String[] args)
voidstart()
voidsuspect(Address suspected_mbr)
voidviewAccepted(View new_view)
voidwindowActivated(WindowEvent e)
voidwindowClosed(WindowEvent e)
voidwindowClosing(WindowEvent e)
voidwindowDeactivated(WindowEvent e)
voidwindowDeiconified(WindowEvent e)
voidwindowIconified(WindowEvent e)
voidwindowOpened(WindowEvent e)

Constructor Detail

QuoteClient

public QuoteClient()

Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)

block

public void block()

main

public static void main(String[] args)

start

public void start()

suspect

public void suspect(Address suspected_mbr)

viewAccepted

public void viewAccepted(View new_view)

windowActivated

public void windowActivated(WindowEvent e)

windowClosed

public void windowClosed(WindowEvent e)

windowClosing

public void windowClosing(WindowEvent e)

windowDeactivated

public void windowDeactivated(WindowEvent e)

windowDeiconified

public void windowDeiconified(WindowEvent e)

windowIconified

public void windowIconified(WindowEvent e)

windowOpened

public void windowOpened(WindowEvent e)
Copyright ? 1998-2005 Bela Ban. All Rights Reserved.