Commit 53ee99bf authored by Florian Fittkau's avatar Florian Fittkau

system name

parent 9cb9fdad
......@@ -13,6 +13,8 @@ explorviz.live_trace_processing.sending_buffer_size=65536
######################## Monitoring ########################
explorviz.live_trace_processing.system_name=
explorviz.live_trace_processing.ip_address=
explorviz.live_trace_processing.host_name=
explorviz.live_trace_processing.application_name=
......
......@@ -275,14 +275,19 @@ class TCPReaderOneClient extends Thread {
}
private final void readInHostApplicationMetaData(final ByteBuffer buffer) {
final int systemnameId = buffer.getInt();
final int ipaddressId = buffer.getInt();
final int hostnameId = buffer.getInt();
final int applicationId = 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);
hostApplicationMetadata = new HostApplicationMetaDataRecord(hostname, application);
hostApplicationMetadata = new HostApplicationMetaDataRecord(systemname, ipaddress,
hostname, application);
} catch (final IdNotAvailableException e) {
putInWaitingMessages(buffer, HostApplicationMetaDataRecord.BYTE_LENGTH_WITH_CLAZZ_ID);
}
......
......@@ -13,7 +13,7 @@ public class TraceReconstructionBufferTest {
public void testInsertEvent() throws Exception {
final TraceReconstructionBuffer traceReconstructionBuffer = new TraceReconstructionBuffer();
traceReconstructionBuffer.insertEvent(new BeforeOperationEventRecord(1000, 1, 0, 0, "test",
new HostApplicationMetaDataRecord("testHost", "testApp")));
new HostApplicationMetaDataRecord("testSystem", "testIp", "testHost", "testApp")));
assertTrue(true); // TODO
}
......
......@@ -24,53 +24,53 @@ public class AssociativityFilterTest {
final List<AbstractEventRecord> traceEvents = new ArrayList<AbstractEventRecord>();
final BeforeOperationEventRecord beforeEvent = new BeforeOperationEventRecord(1L, 1L, 0, 0,
"test.package.Clazz.method1()", new HostApplicationMetaDataRecord("host",
"application"));
"test.package.Clazz.method1()", new HostApplicationMetaDataRecord("testSystem",
"testIp", "host", "application"));
beforeEvent.setRuntimeStatisticInformation(new RuntimeStatisticInformation(11L));
traceEvents.add(beforeEvent);
final BeforeOperationEventRecord beforeEvent1 = new BeforeOperationEventRecord(2L, 1L, 1,
0, "test.package.Clazz.method2()", new HostApplicationMetaDataRecord("host",
"application"));
0, "test.package.Clazz.method2()", new HostApplicationMetaDataRecord("testSystem",
"testIp", "host", "application"));
beforeEvent1.setRuntimeStatisticInformation(new RuntimeStatisticInformation(2L));
traceEvents.add(beforeEvent1);
final AfterOperationEventRecord afterEvent1 = new AfterOperationEventRecord(4L, 1L, 2,
new HostApplicationMetaDataRecord("host", "application"));
new HostApplicationMetaDataRecord("testSystem", "testIp", "host", "application"));
traceEvents.add(afterEvent1);
final BeforeOperationEventRecord beforeEvent2 = new BeforeOperationEventRecord(5L, 1L, 3,
0, "test.package.OtherClazz.method3()", new HostApplicationMetaDataRecord("host",
"application"));
0, "test.package.OtherClazz.method3()", new HostApplicationMetaDataRecord(
"testSystem", "testIp", "host", "application"));
beforeEvent2.setRuntimeStatisticInformation(new RuntimeStatisticInformation(1L));
traceEvents.add(beforeEvent2);
final AfterOperationEventRecord afterEvent2 = new AfterOperationEventRecord(6L, 1L, 4,
new HostApplicationMetaDataRecord("host", "application"));
new HostApplicationMetaDataRecord("testSystem", "testIp", "host", "application"));
traceEvents.add(afterEvent2);
final BeforeOperationEventRecord beforeEvent3 = new BeforeOperationEventRecord(7L, 1L, 5,
0, "test.package.Clazz.method2()", new HostApplicationMetaDataRecord("host",
"application"));
0, "test.package.Clazz.method2()", new HostApplicationMetaDataRecord("testSystem",
"testIp", "host", "application"));
beforeEvent3.setRuntimeStatisticInformation(new RuntimeStatisticInformation(2L));
traceEvents.add(beforeEvent3);
final AfterOperationEventRecord afterEvent3 = new AfterOperationEventRecord(9L, 1L, 6,
new HostApplicationMetaDataRecord("host", "application"));
new HostApplicationMetaDataRecord("testSystem", "testIp", "host", "application"));
traceEvents.add(afterEvent3);
final BeforeOperationEventRecord beforeEvent4 = new BeforeOperationEventRecord(10L, 1L, 7,
0, "test.package.Clazz.method2()", new HostApplicationMetaDataRecord("host",
"application"));
0, "test.package.Clazz.method2()", new HostApplicationMetaDataRecord("testSystem",
"testIp", "host", "application"));
beforeEvent4.setRuntimeStatisticInformation(new RuntimeStatisticInformation(1L));
traceEvents.add(beforeEvent4);
final AfterOperationEventRecord afterEvent4 = new AfterOperationEventRecord(11L, 1L, 8,
new HostApplicationMetaDataRecord("host", "application"));
new HostApplicationMetaDataRecord("testSystem", "testIp", "host", "application"));
traceEvents.add(afterEvent4);
final AfterOperationEventRecord afterEvent = new AfterOperationEventRecord(12L, 1L, 9,
new HostApplicationMetaDataRecord("host", "application"));
new HostApplicationMetaDataRecord("testSystem", "testIp", "host", "application"));
traceEvents.add(afterEvent);
testTrace = new Trace(traceEvents, true);
......@@ -81,23 +81,23 @@ public class AssociativityFilterTest {
final List<AbstractEventRecord> traceEvents = new ArrayList<AbstractEventRecord>();
final BeforeOperationEventRecord beforeEvent = new BeforeOperationEventRecord(1L, 1L, 0, 0,
"test.package.Clazz.method1()", new HostApplicationMetaDataRecord("host",
"application"));
"test.package.Clazz.method1()", new HostApplicationMetaDataRecord("testSystem",
"testIp", "host", "application"));
beforeEvent.setRuntimeStatisticInformation(new RuntimeStatisticInformation(11L));
traceEvents.add(beforeEvent);
final BeforeOperationEventRecord beforeEvent2 = new BeforeOperationEventRecord(5L, 1L, 3,
0, "test.package.OtherClazz.method3()", new HostApplicationMetaDataRecord("host",
"application"));
0, "test.package.OtherClazz.method3()", new HostApplicationMetaDataRecord(
"testSystem", "testIp", "host", "application"));
beforeEvent2.setRuntimeStatisticInformation(new RuntimeStatisticInformation(1L));
traceEvents.add(beforeEvent2);
final AfterOperationEventRecord afterEvent2 = new AfterOperationEventRecord(6L, 1L, 4,
new HostApplicationMetaDataRecord("host", "application"));
new HostApplicationMetaDataRecord("testSystem", "testIp", "host", "application"));
traceEvents.add(afterEvent2);
final AfterOperationEventRecord afterEvent = new AfterOperationEventRecord(12L, 1L, 9,
new HostApplicationMetaDataRecord("host", "application"));
new HostApplicationMetaDataRecord("testSystem", "testIp", "host", "application"));
traceEvents.add(afterEvent);
final Trace compareTrace = new Trace(traceEvents, true);
......
......@@ -24,53 +24,53 @@ public class IterationFilterTest {
final List<AbstractEventRecord> traceEvents = new ArrayList<AbstractEventRecord>();
final BeforeOperationEventRecord beforeEvent = new BeforeOperationEventRecord(1L, 1L, 0, 0,
"test.package.Clazz.method1()", new HostApplicationMetaDataRecord("host",
"application"));
"test.package.Clazz.method1()", new HostApplicationMetaDataRecord("testSystem",
"testIp", "host", "application"));
beforeEvent.setRuntimeStatisticInformation(new RuntimeStatisticInformation(11L));
traceEvents.add(beforeEvent);
final BeforeOperationEventRecord beforeEvent1 = new BeforeOperationEventRecord(2L, 1L, 1,
0, "test.package.Clazz.method2()", new HostApplicationMetaDataRecord("host",
"application"));
0, "test.package.Clazz.method2()", new HostApplicationMetaDataRecord("testSystem",
"testIp", "host", "application"));
beforeEvent1.setRuntimeStatisticInformation(new RuntimeStatisticInformation(2L));
traceEvents.add(beforeEvent1);
final AfterOperationEventRecord afterEvent1 = new AfterOperationEventRecord(4L, 1L, 2,
new HostApplicationMetaDataRecord("host", "application"));
new HostApplicationMetaDataRecord("testSystem", "testIp", "host", "application"));
traceEvents.add(afterEvent1);
final BeforeOperationEventRecord beforeEvent2 = new BeforeOperationEventRecord(5L, 1L, 3,
0, "test.package.Clazz.method2()", new HostApplicationMetaDataRecord("host",
"application"));
0, "test.package.Clazz.method2()", new HostApplicationMetaDataRecord("testSystem",
"testIp", "host", "application"));
beforeEvent2.setRuntimeStatisticInformation(new RuntimeStatisticInformation(1L));
traceEvents.add(beforeEvent2);
final AfterOperationEventRecord afterEvent2 = new AfterOperationEventRecord(6L, 1L, 4,
new HostApplicationMetaDataRecord("host", "application"));
new HostApplicationMetaDataRecord("testSystem", "testIp", "host", "application"));
traceEvents.add(afterEvent2);
final BeforeOperationEventRecord beforeEvent3 = new BeforeOperationEventRecord(7L, 1L, 5,
0, "test.package.Clazz.method2()", new HostApplicationMetaDataRecord("host",
"application"));
0, "test.package.Clazz.method2()", new HostApplicationMetaDataRecord("testSystem",
"testIp", "host", "application"));
beforeEvent3.setRuntimeStatisticInformation(new RuntimeStatisticInformation(2L));
traceEvents.add(beforeEvent3);
final AfterOperationEventRecord afterEvent3 = new AfterOperationEventRecord(9L, 1L, 6,
new HostApplicationMetaDataRecord("host", "application"));
new HostApplicationMetaDataRecord("testSystem", "testIp", "host", "application"));
traceEvents.add(afterEvent3);
final BeforeOperationEventRecord beforeEvent4 = new BeforeOperationEventRecord(10L, 1L, 7,
0, "test.package.Clazz.method2()", new HostApplicationMetaDataRecord("host",
"application"));
0, "test.package.Clazz.method2()", new HostApplicationMetaDataRecord("testSystem",
"testIp", "host", "application"));
beforeEvent4.setRuntimeStatisticInformation(new RuntimeStatisticInformation(1L));
traceEvents.add(beforeEvent4);
final AfterOperationEventRecord afterEvent4 = new AfterOperationEventRecord(11L, 1L, 8,
new HostApplicationMetaDataRecord("host", "application"));
new HostApplicationMetaDataRecord("testSystem", "testIp", "host", "application"));
traceEvents.add(afterEvent4);
final AfterOperationEventRecord afterEvent = new AfterOperationEventRecord(12L, 1L, 9,
new HostApplicationMetaDataRecord("host", "application"));
new HostApplicationMetaDataRecord("testSystem", "testIp", "host", "application"));
traceEvents.add(afterEvent);
trace = new Trace(traceEvents, true);
......@@ -80,7 +80,7 @@ public class IterationFilterTest {
public void testReduction() {
final List<AbstractEventRecord> traceEvents = new ArrayList<AbstractEventRecord>();
final HostApplicationMetaDataRecord hostApplicationMetadata = new HostApplicationMetaDataRecord(
"host", "application");
"testSystem", "testIp", "host", "application");
final BeforeOperationEventRecord beforeEvent = new BeforeOperationEventRecord(1L, 1L, 0, 0,
"test.package.Clazz.method1()", hostApplicationMetadata);
traceEvents.add(beforeEvent);
......
......@@ -24,53 +24,53 @@ public class MonotoneSubsequenceTest {
final List<AbstractEventRecord> traceEvents = new ArrayList<AbstractEventRecord>();
final BeforeOperationEventRecord beforeEvent = new BeforeOperationEventRecord(1L, 1L, 0, 0,
"test.package.Clazz.method1()", new HostApplicationMetaDataRecord("host",
"application"));
"test.package.Clazz.method1()", new HostApplicationMetaDataRecord("testSystem",
"testIp", "host", "application"));
beforeEvent.setRuntimeStatisticInformation(new RuntimeStatisticInformation(11L));
traceEvents.add(beforeEvent);
final BeforeOperationEventRecord beforeEvent1 = new BeforeOperationEventRecord(2L, 1L, 1,
0, "test.package.Clazz.method2()", new HostApplicationMetaDataRecord("host",
"application"));
0, "test.package.Clazz.method2()", new HostApplicationMetaDataRecord("testSystem",
"testIp", "host", "application"));
beforeEvent1.setRuntimeStatisticInformation(new RuntimeStatisticInformation(2L));
traceEvents.add(beforeEvent1);
final AfterOperationEventRecord afterEvent1 = new AfterOperationEventRecord(4L, 1L, 2,
new HostApplicationMetaDataRecord("host", "application"));
new HostApplicationMetaDataRecord("testSystem", "testIp", "host", "application"));
traceEvents.add(afterEvent1);
final BeforeOperationEventRecord beforeEvent2 = new BeforeOperationEventRecord(5L, 1L, 3,
0, "test.package.Clazz.method2()", new HostApplicationMetaDataRecord("host",
"application"));
0, "test.package.Clazz.method2()", new HostApplicationMetaDataRecord("testSystem",
"testIp", "host", "application"));
beforeEvent2.setRuntimeStatisticInformation(new RuntimeStatisticInformation(1L));
traceEvents.add(beforeEvent2);
final AfterOperationEventRecord afterEvent2 = new AfterOperationEventRecord(6L, 1L, 4,
new HostApplicationMetaDataRecord("host", "application"));
new HostApplicationMetaDataRecord("testSystem", "testIp", "host", "application"));
traceEvents.add(afterEvent2);
final BeforeOperationEventRecord beforeEvent3 = new BeforeOperationEventRecord(7L, 1L, 5,
0, "test.package.Clazz.method2()", new HostApplicationMetaDataRecord("host",
"application"));
0, "test.package.Clazz.method2()", new HostApplicationMetaDataRecord("testSystem",
"testIp", "host", "application"));
beforeEvent3.setRuntimeStatisticInformation(new RuntimeStatisticInformation(2L));
traceEvents.add(beforeEvent3);
final AfterOperationEventRecord afterEvent3 = new AfterOperationEventRecord(9L, 1L, 6,
new HostApplicationMetaDataRecord("host", "application"));
new HostApplicationMetaDataRecord("testSystem", "testIp", "host", "application"));
traceEvents.add(afterEvent3);
final BeforeOperationEventRecord beforeEvent4 = new BeforeOperationEventRecord(10L, 1L, 7,
0, "test.package.Clazz.method2()", new HostApplicationMetaDataRecord("host",
"application"));
0, "test.package.Clazz.method2()", new HostApplicationMetaDataRecord("testSystem",
"testIp", "host", "application"));
beforeEvent4.setRuntimeStatisticInformation(new RuntimeStatisticInformation(1L));
traceEvents.add(beforeEvent4);
final AfterOperationEventRecord afterEvent4 = new AfterOperationEventRecord(11L, 1L, 8,
new HostApplicationMetaDataRecord("host", "application"));
new HostApplicationMetaDataRecord("testSystem", "testIp", "host", "application"));
traceEvents.add(afterEvent4);
final AfterOperationEventRecord afterEvent = new AfterOperationEventRecord(12L, 1L, 9,
new HostApplicationMetaDataRecord("host", "application"));
new HostApplicationMetaDataRecord("testSystem", "testIp", "host", "application"));
traceEvents.add(afterEvent);
trace = new Trace(traceEvents, true);
......@@ -81,7 +81,7 @@ public class MonotoneSubsequenceTest {
final List<AbstractEventRecord> traceEvents = new ArrayList<AbstractEventRecord>();
final HostApplicationMetaDataRecord hostApplicationMetadata = new HostApplicationMetaDataRecord(
"host", "application");
"testSystem", "testIp", "host", "application");
final BeforeOperationEventRecord beforeEvent = new BeforeOperationEventRecord(1L, 1L, 0, 0,
"test.package.Clazz.method1()", hostApplicationMetadata);
......
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