All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.habanero.ObserverHandler

java.lang.Object
   |
   +----ncsa.habanero.ObserverHandler

public class ObserverHandler
extends Object
ObserverHandler Holds all the observers


Variable Index

 o nMarkNumber

Constructor Index

 o ObserverHandler(Object, Session)

Method Index

 o finishObserving()
 o makeMark()
 o queryObserverFactory()
 o readSessionTools(ObjectInputStream, int)
 o saveMark(String, String)
 o setObserverFactory(ObserverFactory)
 o startObserving(boolean)

Variables

 o nMarkNumber
 protected transient int nMarkNumber

Constructors

 o ObserverHandler
 public ObserverHandler(Object newKey,
                        Session init)

Methods

 o startObserving
 public void startObserving(boolean bSaveArbitratorState)
Parameters:
bSaveArbitratorState - should the state of the arbitrator also be saved
Returns:
starts recording the session
 o saveMark
 protected void saveMark(String strMarkName,
                         String strSessionID) throws IOException
Parameters:
strMarkName - the name of the mark
strSessionID - the string that names the session
s - the session object
Returns:
saves a mark (if the initial state, the mark is named "session"
Throws: IOException
if there is a problem opening a file or writing
 o makeMark
 public void makeMark()
Returns:
creates a new mark
 o finishObserving
 public void finishObserving()
Returns:
stops recording the session
 o setObserverFactory
 public void setObserverFactory(ObserverFactory newFactory)
Parameters:
newFactory - the new recording factory for this session
Returns:
adds a new observer factory to watch this session
 o queryObserverFactory
 public ObserverFactory queryObserverFactory()
Returns:
the factory that is doing the recording
 o readSessionTools
 public void readSessionTools(ObjectInputStream in,
                              int numTools) throws IOException, ClassNotFoundException

All Packages  Class Hierarchy  This Package  Previous  Next  Index