public class TCPRecordingServer
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
private class |
TCPRecordingServer.WorkThread
Implements a thread which processes the received data.
|
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<RecordingStrategiesElement> |
elements
Stores elements for all received data.
|
private int |
endsystem
Stores the count of enterconfiguration events.
|
private int |
enter
Stores the count of enter events.
|
private int |
enterConfiguration
Stores the count of enterConfiguration events.
|
private int |
exit
Stores the count of exit events.
|
private int |
finishRecording
Stores the count of finishRecording events.
|
private int |
io
Stores the count of io events.
|
private int |
memoryAllocated
Stores the count of memoryAllocated events.
|
private int |
memoryFreed
Stores the count of memoryFreed events.
|
private int |
memoryFreedById
Stores the count of memoryFreedById events.
|
private static java.lang.String |
PARAM_BASEDIR
Defines the baseDir argument.
|
private static java.lang.String |
PARAM_PORT
Defines the port argument.
|
private int |
printStatistics
Stores the count of printStatistics events.
|
private int |
startRecording
Stores the count of startRecording events.
|
private int |
stopTimeRecording
Stores the count of stopTimeRecording events.
|
private RecorderStrategy |
strategy
Stores the
RecorderStrategy. |
| Modifier | Constructor and Description |
|---|---|
private |
TCPRecordingServer(java.lang.String baseDir,
int port)
Receives the data send from the client.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Main method for starting the server.
|
private void |
printElementStatistics()
Prints the frequency of the events on the console.
|
private static final java.lang.String PARAM_BASEDIR
private static final java.lang.String PARAM_PORT
private java.util.List<RecordingStrategiesElement> elements
private RecorderStrategy strategy
RecorderStrategy.private int enterConfiguration
private int enter
private int exit
private int finishRecording
private int memoryAllocated
private int memoryFreedById
private int memoryFreed
private int printStatistics
private int io
private int startRecording
private int stopTimeRecording
private int endsystem
private TCPRecordingServer(java.lang.String baseDir,
int port)
baseDir - the baseDirport - the portprivate void printElementStatistics()
public static void main(java.lang.String[] args)
args - the program arguments.