Interface java.rmi.examples.chat.ChatClient
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface java.rmi.examples.chat.ChatClient

public interface ChatClient
extends Object
extends Remote
ChatClient is the interface that clients of the chat system implements. The server invokes the methods in this interface to notify clients of changes of state in the chat.

Variable Index

 o ASLEEP
The chater is asleep, e.g., not currently on the page with the applet
 o AWAKE
The chater is activly connected
 o GONE
The chatter has gone away.

Method Index

 o changeAlias(int, String)
A chater has changed their alias
 o changeState(int, int)
A chater has changed their state.
 o chaterGone(int)
A chater has left the conversation
 o messageFrom(int, int, String)
A new message has arrived from a particular chater
 o newChatter(int, String)
A new chater has joined the group

Variables

 o AWAKE
  public final static int AWAKE
The chater is activly connected
 o ASLEEP
  public final static int ASLEEP
The chater is asleep, e.g., not currently on the page with the applet
 o GONE
  public final static int GONE
The chatter has gone away.

Methods

 o newChatter
  public abstract void newChatter(int id,
                                  String alias) throws RemoteException
A new chater has joined the group
 o changeAlias
  public abstract void changeAlias(int id,
                                   String newAlias) throws RemoteException, UnknownChatterException
A chater has changed their alias
 o changeState
  public abstract void changeState(int id,
                                   int newState) throws RemoteException, UnknownChatterException
A chater has changed their state. The newState parameter is one of AWAKE or ASLEEP.
 o messageFrom
  public abstract void messageFrom(int id,
                                   int msgID,
                                   String message) throws RemoteException, UnknownChatterException
A new message has arrived from a particular chater
 o chaterGone
  public abstract void chaterGone(int id) throws RemoteException
A chater has left the conversation

All Packages  Class Hierarchy  This Package  Previous  Next  Index