edu.washington.biostr.sig.brainj3d.remoteutil
Class CSDispatcher

java.lang.Object
  extended by edu.washington.biostr.sig.brainj3d.remoteutil.CSDispatcher
All Implemented Interfaces:
SerializationObserver
Direct Known Subclasses:
ClientToServer, ServerToClient

public abstract class CSDispatcher
extends Object
implements SerializationObserver


Constructor Summary
CSDispatcher(Executor dispatch)
           
 
Method Summary
 void addId(IdObject... objects)
          Add an object that has alread been serialized.
 void addUnserializedId(IdObject... objects)
          Add an object that has not been serialized.
abstract  void dispatch(Event[] event)
           
 IdObject get(Long id)
           
 void processEvent(Event... events)
           
 void sendEvent(Event event)
           
 void wasRead(IdObject obj)
           
 void wasWritten(IdObject obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSDispatcher

public CSDispatcher(Executor dispatch)
Method Detail

dispatch

public abstract void dispatch(Event[] event)

sendEvent

public void sendEvent(Event event)

processEvent

public void processEvent(Event... events)

addUnserializedId

public void addUnserializedId(IdObject... objects)
Add an object that has not been serialized.

Parameters:
objects -

addId

public void addId(IdObject... objects)
Add an object that has alread been serialized.

Parameters:
objects -

get

public IdObject get(Long id)

wasWritten

public void wasWritten(IdObject obj)
Specified by:
wasWritten in interface SerializationObserver
Parameters:
obj - The object that was written (marshalled).

wasRead

public void wasRead(IdObject obj)
Specified by:
wasRead in interface SerializationObserver
Parameters:
obj - The object that was read (unmarshalled).


Copyright © 2006 University of Washington. All Rights Reserved.