public class TCPRecorderStrategy extends AbstractEventRecorderStrategy
AbstractEventRecorderStrategy.HandleException| Modifier and Type | Field and Description |
|---|---|
private java.io.DataOutputStream |
out
Stores the
DataOutputStream to send messages to the server. |
private java.net.Socket |
socket
Stores the
Socket for the client. |
REGISTER_END, REGISTER_FORCE| Constructor and Description |
|---|
TCPRecorderStrategy()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
connect2Server()
Creates the connection to the server.
|
protected void |
handleEvent(RecordingStrategiesElement event)
Handles an event.
|
assignAllTo, clearTemporaryData, endSystem, enter, enterConfiguration, exit, finishRecording, isRecording, memoryAllocated, memoryFreedByRecId, notifyProgramRecordCreation, notifyTimer, notifyValueChange, printCurrentState, printStatistics, processEvent, readIo, register, start, startRecording, stopTimeRecording, writeIoenableVariabilityDetection, getRecorderElement, getRecorderElements, getRecorderId, getStorage, getVariabilitySeparatorChar, isVariabilityDetectionEnabled, registerForRecordingprivate java.net.Socket socket
Socket for the client.private java.io.DataOutputStream out
DataOutputStream to send messages to the server.public TCPRecorderStrategy()
private void connect2Server()
Configuration to send their informations to the server and starts
a thread which sends the gathered information to the
server in parallel.protected void handleEvent(RecordingStrategiesElement event) throws AbstractEventRecorderStrategy.HandleException
handleEvent in class AbstractEventRecorderStrategyevent - the event to be handledHandleException - any kind of throwable exception which should
cause aborting the event loopAbstractEventRecorderStrategy.HandleException