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

Class java.rmi.examples.chat.SugarShack

java.lang.Object
   |
   +----java.rmi.server.RemoteObject
           |
           +----java.rmi.server.RemoteServer
                   |
                   +----java.rmi.server.UnicastRemoteServer
                           |
                           +----java.rmi.examples.chat.SugarShack

public class SugarShack
extends UnicastRemoteServer
implements ChatServer
An implementation of ChatServer for simple demonstration purposes. It assumes that it is the only SugarShack implementation on the network, and that it runs on the local host.

Variable Index

 o NAME

Constructor Index

 o SugarShack()

Method Index

 o add(ChatClient, String)
Add a new chatter to the conversation.
 o main(String[])
Start up, registering ourself as the SugarShack server for the local host.

Variables

 o NAME
  public final static String NAME

Constructors

 o SugarShack
  public SugarShack() throws RemoteException

Methods

 o add
  public ChatAdded add(ChatClient client,
                       String alias) throws RemoteException
Add a new chatter to the conversation.
 o main
  public static void main(String args[])
Start up, registering ourself as the SugarShack server for the local host.

All Packages  Class Hierarchy  This Package  Previous  Next  Index