|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sag.osami.context.recorder.ContextStoreRecorder
public class ContextStoreRecorder
Field Summary | |
---|---|
java.lang.String |
actualSerializer
|
RecordingContainer |
curContainer
|
ContextStoreReplay |
replay
|
Constructor Summary | |
---|---|
ContextStoreRecorder(java.lang.String actualSerializer)
Default constructor. |
Method Summary | |
---|---|
java.lang.String[] |
listrecordings(java.net.URI uristring)
Returns a list of recordings which are contained in a recording container. |
void |
openContainer(java.net.URI uristring)
Convenience method for opening a recording container if none or another recording is currently open. |
void |
setContextStore(ISerializedContextReceiver contextStore)
|
void |
startrecord(java.net.URI uristring)
Starts recording contexts into the (existent or newly created) recording container represented by the URI. |
void |
startreplay(java.net.URI uristring)
Starts replaying contexts from the recording represented by the URI. |
void |
stoprecord()
Stops recording contexts. |
void |
stopreplay()
Stops replaying contexts. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public ContextStoreReplay replay
public RecordingContainer curContainer
public java.lang.String actualSerializer
Constructor Detail |
---|
public ContextStoreRecorder(java.lang.String actualSerializer)
actualSerializer
- fully qualified class name of the currently deployed ContextStore serializerMethod Detail |
---|
public void openContainer(java.net.URI uristring) throws java.io.IOException, InvalidSerializerException
java.io.IOException
InvalidSerializerException
public void startrecord(java.net.URI uristring)
IContextStoreRecorder
Please note that the recording is written to a temporary location beforehand and is added to the recording container as soon as the recording is stopped!
startrecord
in interface IContextStoreRecorder
uristring
- file:/-URI of the recording containerpublic void stoprecord()
IContextStoreRecorder
stoprecord
in interface IContextStoreRecorder
public void startreplay(java.net.URI uristring)
IContextStoreRecorder
startreplay
in interface IContextStoreRecorder
uristring
- The required format of the URI is: file:/<path>#<recNum>
, where path denotes
the recording container and recNum the number of the recording within the container which is to be
replayed. Recording numbers are 1-based.public void stopreplay()
IContextStoreRecorder
stopreplay
in interface IContextStoreRecorder
public java.lang.String[] listrecordings(java.net.URI uristring)
IContextStoreRecorder
listrecordings
in interface IContextStoreRecorder
uristring
- file:/-URI of the recording container
#<recording number> <timestamp of the recording start> -- <timestamp of the recording end> (<recorded events count>)
public void setContextStore(ISerializedContextReceiver contextStore)
setContextStore
in interface ISerializedContextProducer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |