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.
-
ObserverFactory(boolean)
-
-
clientsideRecord()
-
-
createObserver(String, String, String)
-
-
createObserverStream(String, String, String)
-
-
isObserving()
-
-
queryDestination()
-
-
queryPart()
-
-
resumeObserving()
-
-
stopObserving()
-
ObserverFactory
public ObserverFactory(boolean bClientSide)
- Parameters:
- bClientSide - are we recording on the client
- Returns:
- creates a recorder factory
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
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
queryDestination
public String queryDestination()
- Returns:
- the destination where the data is going - name of a file, or analysis tool
isObserving
public boolean isObserving()
- Returns:
- true if we are recording, and false otherwise
stopObserving
public void stopObserving()
- Returns:
- tells all the files to stop recording now
resumeObserving
public void resumeObserving()
- Returns:
- starts recording again
queryPart
protected int queryPart()
- Returns:
- which part are we working on
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