All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.habanero.replay.ObserverFactory

java.lang.Object
   |
   +----ncsa.habanero.replay.ObserverFactory

public abstract class ObserverFactory
extends Object
ObserverFactory is a factory object that produces a observing output stream. This should be a static variable for all collobjects(?), so that they all create the right types of recorders.


Constructor Index

 o ObserverFactory(boolean)

Method Index

 o clientsideRecord()
 o createObserver(String, String, String)
 o createObserverStream(String, String, String)
 o isObserving()
 o queryDestination()
 o queryPart()
 o resumeObserving()
 o stopObserving()

Constructors

 o ObserverFactory
 public ObserverFactory(boolean bClientSide)
Parameters:
bClientSide - are we recording on the client
Returns:
creates a recorder factory

Methods

 o createObserver
 public abstract MarshallOutput createObserver(String strSessionName,
                                               String strClientName,
                                               String strTag) throws IOException
Parameters:
strSessionName - the name of the session
strClientName - the name of the client
strTag - the tag attached to the end of the string
Returns:
OutputStream the output stream which should be used for recording
Throws: IOException
thrown when a stream is not able to be created
 o createObserverStream
 public abstract OutputStream createObserverStream(String strSessionName,
                                                   String strClientName,
                                                   String strTag) throws IOException
Parameters:
strSessionName - the name of the session
strClientName - the name of the client
strTag - the tag attached to the end of the string
Returns:
OutputStream the output stream which should be used for recording
Throws: IOException
thrown when a stream is not able to be created
 o queryDestination
 public String queryDestination()
Returns:
the destination where the data is going - name of a file, or analysis tool
 o isObserving
 public boolean isObserving()
Returns:
true if we are recording, and false otherwise
 o stopObserving
 public void stopObserving()
Returns:
tells all the files to stop recording now
 o resumeObserving
 public void resumeObserving()
Returns:
starts recording again
 o queryPart
 protected int queryPart()
Returns:
which part are we working on
 o clientsideRecord
 public boolean clientsideRecord()
Returns:
true if we are recording on a client, and false otherwise

All Packages  Class Hierarchy  This Package  Previous  Next  Index