de.oio.bugkilla.recorder
Class RecorderManager

java.lang.Object
  |
  +--de.oio.bugkilla.recorder.RecorderManager
All Implemented Interfaces:
Commandable, Recorder, SequenceRecorder

public class RecorderManager
extends java.lang.Object
implements Recorder

Author:
mniete To change this generated comment edit the template variable "typecomment": Window>Preferences>Java>Templates. To enable and disable the creation of type comments go to Window>Preferences>Java>Code Generation.

Method Summary
 void connect()
          Method connect wait until the server runs.
static RecorderManager getRecorderManager()
          Method getRecorderManager returns the singleton RecorderManager instance.
 java.io.PrintWriter getWriter()
          Returns the writer.
 void recordSequence(TestSequence sequence)
          Stores the given sequence.
 void setHandler(Commandable handler)
          Sets the handler.
 void setWriter(java.io.PrintWriter writer)
          Sets the writer.
 void startRecording()
          Starts recording a new TestSequence.
 void startRecordingUserInteraction()
          Starts recording a new UserInteraction.
 void stop()
          Stops the process of creating new TestStep objects added to the current TestSequence.
 void stopReceiver()
          Method stopReceiver sets receiver to an inital state.
 void stopRecording()
          Stops the recording process of creating new UserInteraction objects added to the current TestSequence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRecorderManager

public static RecorderManager getRecorderManager()
Method getRecorderManager returns the singleton RecorderManager instance.

Returns:
RecorderManager

stop

public void stop()
Description copied from interface: Commandable
Stops the process of creating new TestStep objects added to the current TestSequence. Also like stopRecording calling this method should terminate the TestSequence object and memorize it.

Specified by:
stop in interface Commandable
See Also:
Commandable.stop()

startRecording

public void startRecording()
Description copied from interface: Commandable
Starts recording a new TestSequence. Sending this signal the implementing class creates for each step a new TestStep object adding this to the TestSequence until the signal stopRecording is sent.

Specified by:
startRecording in interface Commandable
See Also:
Commandable.startRecording()

stopRecording

public void stopRecording()
Description copied from interface: Commandable
Stops the recording process of creating new UserInteraction objects added to the current TestSequence. When calling this method the TestSequence should be registered with a new Identity and memorized in the sequence pool. The Commandable now can restart recording a new sequence by the use of calling startRecording.

Specified by:
stopRecording in interface Commandable
See Also:
Commandable.stopRecording()

startRecordingUserInteraction

public void startRecordingUserInteraction()
Description copied from interface: Commandable
Starts recording a new UserInteraction.

Specified by:
startRecordingUserInteraction in interface Commandable
See Also:
Commandable.startRecordingUserInteraction()

connect

public void connect()
Method connect wait until the server runs. Sets a new PrintWriter on the connection and instanciate a new ReceiverThread. Change the NotConnected state into Connected.


getWriter

public java.io.PrintWriter getWriter()
Returns the writer.

Returns:
PrintWriter

setWriter

public void setWriter(java.io.PrintWriter writer)
Sets the writer.

Parameters:
writer - The writer to set

recordSequence

public void recordSequence(TestSequence sequence)
Description copied from interface: SequenceRecorder
Stores the given sequence. While storing it a SequenceRecorder must register a new sequence in the use of creating a the given TestSequence instance. A possibly given TestSequence identity will be overwritten.

Specified by:
recordSequence in interface SequenceRecorder
Parameters:
sequence - a new TestSequence object to store.
See Also:
SequenceRecorder.recordSequence(de.oio.bugkilla.protocol.TestSequence)

setHandler

public void setHandler(Commandable handler)
Sets the handler.

Parameters:
handler - The handler to set

stopReceiver

public void stopReceiver()
Method stopReceiver sets receiver to an inital state.



Copyright © Orientation in Objects GmbH. All Rights Reserved.