ostore.client
Class FakeClient
java.lang.Object
|
+--ostore.util.StandardStage
|
+--ostore.client.FakeClient
- All Implemented Interfaces:
- EventHandlerIF, SingleThreadedEventHandlerIF
- public class FakeClient
- extends StandardStage
- implements SingleThreadedEventHandlerIF
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: FakeClient.java,v 1.38 2004/05/13 20:52:22 hweather Exp $
- Author:
- Hakim Weatherspoon
Fields inherited from class ostore.util.StandardStage |
classifier, DEBUG, event_types, inb_msg_types, logger, my_node_id, my_sink, outb_msg_types, resender, resender_tokens, serializable_types, sim_running, tag |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FakeClient
public FakeClient()
handleEvent
public void handleEvent(QueueElementIF item)
throws EventHandlerException
- Specified by:
handleEvent
in interface EventHandlerIF
EventHandlerException
handleEvents
public void handleEvents(QueueElementIF[] items)
throws EventHandlerException
- Specified by:
handleEvents
in interface EventHandlerIF
- Overrides:
handleEvents
in class StandardStage
EventHandlerException
init
public void init(ConfigDataIF config)
throws Exception
- Specified by:
init
in interface EventHandlerIF
- Overrides:
init
in class StandardStage
Exception