Commit 6c9a89d8 authored by Florian Fittkau's avatar Florian Fittkau

also monitor the programming language as meta info

parent 86472c10
......@@ -17,6 +17,7 @@ explorviz.live_trace_processing.system_name=
explorviz.live_trace_processing.ip_address=
explorviz.live_trace_processing.host_name=
explorviz.live_trace_processing.application_name=
explorviz.live_trace_processing.programming_language=Java
explorviz.live_trace_processing.debug=false
......@@ -25,6 +26,8 @@ explorviz.live_trace_processing.android_monitoring=false
explorviz.live_trace_processing.monitoring_enabled=true
explorviz.live_trace_processing.system_monitoring_enabled=true
explorviz.live_trace_processing.continous_monitoring_enabled=false
explorviz.live_trace_processing.monitoring_controller_disruptor_size=32
######################## Analysis ########################
......
......@@ -342,15 +342,17 @@ class TCPReaderOneClient extends Thread {
final int ipaddressId = buffer.getInt();
final int hostnameId = buffer.getInt();
final int applicationId = buffer.getInt();
final int languageId = buffer.getInt();
try {
final String systemname = stringRegistry.getStringFromId(systemnameId);
final String ipaddress = stringRegistry.getStringFromId(ipaddressId);
final String hostname = stringRegistry.getStringFromId(hostnameId);
final String application = stringRegistry.getStringFromId(applicationId);
final String language = stringRegistry.getStringFromId(languageId);
hostApplicationMetadata = new HostApplicationMetaDataRecord(systemname, ipaddress,
hostname, application);
hostname, application, language);
} catch (final IdNotAvailableException e) {
putInWaitingMessages(buffer, HostApplicationMetaDataRecord.BYTE_LENGTH_WITH_CLAZZ_ID);
}
......
......@@ -14,8 +14,8 @@ public class TraceReconstructionBufferTest {
final TraceReconstructionBuffer traceReconstructionBuffer = new TraceReconstructionBuffer();
traceReconstructionBuffer.insertEvent(new BeforeOperationEventRecord(1000, 1, 0, 0, "test",
"TestClazz", "", new HostApplicationMetaDataRecord("testSystem", "testIp",
"testHost", "testApp")));
assertTrue(true); // TODO
"testHost", "testApp", "Java")));
assertTrue(true);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment