BatchServer Class Reference

List of all members.

Public Member Functions

 BatchServer (EventEngine theEventEngine)
void registerBatchEventHandlers (List< BatchedEventHandler > batchEventHandlers)
void stopDaemon ()
 Tell the server to stop sending actions.
void unregisterBatchEventHandlers (List< BatchedEventHandler > batchEventHandlers)

Static Public Attributes

static final int DEFAULT_PLAINTEXT_PORT = Constants.Ports.BATCH_SERVER
 Will listen on this port for text commands.
static final String EXIT_COMMAND = "[[exit]]"
 Tells the server that a client wishes to exit.

Detailed Description

Wait at a socket (say: 9999) and receive the location of xml files that contain data from a pen synch action (the user drops the pen into the dock). Then, process them and call any event handlers you have registered at runtime.

Additionally, translate the batched data into streaming coordinates, and pass these events as if they happened in real time over to the event engine.

This software is distributed under the BSD License.

Author:
Ron B Yeh (ronyeh(AT)cs.stanford.edu)

Definition at line 37 of file BatchServer.java.


Constructor & Destructor Documentation

BatchServer ( EventEngine  theEventEngine  ) 

Parameters:
eventEngine 

Definition at line 86 of file BatchServer.java.

References BatchServer.DEFAULT_PLAINTEXT_PORT.


Member Function Documentation

void registerBatchEventHandlers ( List< BatchedEventHandler batchEventHandlers  ) 

Parameters:
batchEventHandlers 

Definition at line 222 of file BatchServer.java.

Referenced by PaperToolkit.startApplication().

void unregisterBatchEventHandlers ( List< BatchedEventHandler batchEventHandlers  ) 

Parameters:
batchEventHandlers 

Definition at line 247 of file BatchServer.java.

Referenced by PaperToolkit.stopApplication().


Member Data Documentation

final String EXIT_COMMAND = "[[exit]]" [static]

Tells the server that a client wishes to exit.

Closes the client's handler.

Definition at line 47 of file BatchServer.java.


The documentation for this class was generated from the following file:
Generated on Sat Apr 14 18:21:43 2007 for R3 Paper Toolkit by  doxygen 1.4.7