arlut.csd.ganymede
Interface Client

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
ClientBase

public interface Client
extends java.rmi.Remote

Interface that must be implemented by client code that connects to the ganymede server. The GanymedeServer's login method uses this interface to authenticate a client, and to force the client to shutdown if the user is forced off or the server goes down.


Method Summary
 void forceDisconnect(java.lang.String reason)
          Allows the server to force us off when it goes down.
 java.lang.String getName()
          Allows the server to retrieve the username.
 java.lang.String getPassword()
          Allows the server to retrieve the password.
 void sendMessage(int messageType, java.lang.String status)
          Allows the server to send an asynchronous message to the client..
 

Method Detail

getName

public java.lang.String getName()
                         throws java.rmi.RemoteException

Allows the server to retrieve the username.


getPassword

public java.lang.String getPassword()
                             throws java.rmi.RemoteException

Allows the server to retrieve the password.


forceDisconnect

public void forceDisconnect(java.lang.String reason)
                     throws java.rmi.RemoteException

Allows the server to force us off when it goes down.


sendMessage

public void sendMessage(int messageType,
                        java.lang.String status)
                 throws java.rmi.RemoteException

Allows the server to send an asynchronous message to the client.. Used by the server to tell the client when a build is/is not being performed on the server.

The only messageType defined so far is 1, build update.