ostore.client
Class ClientStage

java.lang.Object
  |
  +--ostore.client.ClientStage
All Implemented Interfaces:
EventHandlerIF, ProfilableIF, SingleThreadedEventHandlerIF

public class ClientStage
extends Object
implements SingleThreadedEventHandlerIF, EventHandlerIF, ProfilableIF

The ClientStage serves as the main translator between application code which speaks using the application programmer interfaces and the OceanStore system code which speaks using OceanStores internal messages. The ClientStage sits between the application and the rest of the system. All messages from the application pass through the ClientStage where they are translated into OceanStore messages and dispatched to the proper stage. Similarly, all replies from the system pass through the ClientStage where they are translated into application-level messages.

The ClientStage also performs many tasks to ease programmer burden. For example, the stage directs the client-side encryption that protects user data and performs all signature and signature verification operations needed for authentication.

Version:
$Id: ClientStage.java,v 1.102 2004/05/13 20:48:45 hweather Exp $
Author:
Patrick R. Eaton

Constructor Summary
ClientStage()
           
 
Method Summary
 void destroy()
           
 void handleEvent(QueueElementIF element)
           
 void handleEvents(QueueElementIF[] element_array)
           
 void init(ConfigDataIF config)
           
 int profileSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientStage

public ClientStage()
Method Detail

handleEvent

public void handleEvent(QueueElementIF element)
                 throws EventHandlerException
Specified by:
handleEvent in interface EventHandlerIF
EventHandlerException

handleEvents

public void handleEvents(QueueElementIF[] element_array)
                  throws EventHandlerException
Specified by:
handleEvents in interface EventHandlerIF
EventHandlerException

init

public void init(ConfigDataIF config)
          throws Exception
Specified by:
init in interface EventHandlerIF
Exception

destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface EventHandlerIF
Exception

profileSize

public int profileSize()
Specified by:
profileSize in interface ProfilableIF