de.oio.bugkilla.recorder
Class StandAloneRecorderServer

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

public class StandAloneRecorderServer
extends java.lang.Object
implements Recorder

1. open a ServerSocket(port 5454) to receive the command from the eclpise-bugkilla-plugin
2. open a ServerSocket(port 5555) to communicate with the splitter.
Supported commands:
start - starts the recording of a TestSequence
ui - starts a new UserInteration
stop - stop the recording of a TestSequence and store it using the PersistanceManager
off - close the communication on port 5555

Author:
aspall

Method Summary
 java.io.PrintWriter getWriter()
          Returns the writer.
static void main(java.lang.String[] args)
          Starts the StandAloneRecorderServer and waits by using the CommandInterpreter for user-commands (eclipse-bugkilla-plugin-socket- commands)
 void recordSequence(TestSequence sequence)
          Stores the given sequence.
 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 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

main

public static void main(java.lang.String[] args)
Starts the StandAloneRecorderServer and waits by using the CommandInterpreter for user-commands (eclipse-bugkilla-plugin-socket- commands)

Parameters:
args - none

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

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()

startRecordingUserInteraction

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

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

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()

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()

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)


Copyright © Orientation in Objects GmbH. All Rights Reserved.