Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kieker-TeeTime-Stages
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeeTime
Kieker-TeeTime-Stages
Commits
43e51544
Commit
43e51544
authored
10 years ago
by
Christian Wulf
Browse files
Options
Downloads
Patches
Plain Diff
added different trace ids for the load balancer
parent
22b05b27
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/test/java/teetime/variant/methodcallWithPorts/examples/kiekerdays/KiekerLoadDriver.java
+15
-1
15 additions, 1 deletion
...odcallWithPorts/examples/kiekerdays/KiekerLoadDriver.java
submodules/JCTools
+1
-1
1 addition, 1 deletion
submodules/JCTools
with
16 additions
and
2 deletions
src/test/java/teetime/variant/methodcallWithPorts/examples/kiekerdays/KiekerLoadDriver.java
+
15
−
1
View file @
43e51544
...
@@ -22,6 +22,8 @@ import teetime.variant.methodcallWithPorts.stage.kieker.Dir2RecordsFilter;
...
@@ -22,6 +22,8 @@ import teetime.variant.methodcallWithPorts.stage.kieker.Dir2RecordsFilter;
import
teetime.variant.methodcallWithPorts.stage.kieker.className.ClassNameRegistryRepository
;
import
teetime.variant.methodcallWithPorts.stage.kieker.className.ClassNameRegistryRepository
;
import
kieker.common.record.IMonitoringRecord
;
import
kieker.common.record.IMonitoringRecord
;
import
kieker.common.record.flow.trace.TraceMetadata
;
import
kieker.common.record.flow.trace.operation.AbstractOperationEvent
;
import
kieker.common.util.registry.IMonitoringRecordReceiver
;
import
kieker.common.util.registry.IMonitoringRecordReceiver
;
import
kieker.common.util.registry.Registry
;
import
kieker.common.util.registry.Registry
;
...
@@ -126,6 +128,7 @@ public class KiekerLoadDriver {
...
@@ -126,6 +128,7 @@ public class KiekerLoadDriver {
final
Registry
<
String
>
stringRegistry
=
new
Registry
<
String
>();
final
Registry
<
String
>
stringRegistry
=
new
Registry
<
String
>();
ByteBuffer
recordBuffer
=
ByteBuffer
.
allocateDirect
(
Short
.
MAX_VALUE
);
ByteBuffer
recordBuffer
=
ByteBuffer
.
allocateDirect
(
Short
.
MAX_VALUE
);
ByteBuffer
duplicateBuffer
=
recordBuffer
.
duplicate
();
RecordReceiver
recordReceiver
=
new
RecordReceiver
(
stringRegistry
);
RecordReceiver
recordReceiver
=
new
RecordReceiver
(
stringRegistry
);
stringRegistry
.
setRecordReceiver
(
recordReceiver
);
stringRegistry
.
setRecordReceiver
(
recordReceiver
);
...
@@ -135,17 +138,26 @@ public class KiekerLoadDriver {
...
@@ -135,17 +138,26 @@ public class KiekerLoadDriver {
String
hostname
=
"localhost"
;
String
hostname
=
"localhost"
;
int
port
=
10133
;
int
port
=
10133
;
System
.
out
.
println
(
"Connecting to "
+
hostname
+
":"
+
port
);
System
.
out
.
println
(
"Connecting to "
+
hostname
+
":"
+
port
);
long
traceId
=
0
;
SocketChannel
socketChannel
=
SocketChannel
.
open
();
SocketChannel
socketChannel
=
SocketChannel
.
open
();
try
{
try
{
socketChannel
.
connect
(
new
InetSocketAddress
(
hostname
,
port
));
socketChannel
.
connect
(
new
InetSocketAddress
(
hostname
,
port
));
for
(
int
i
=
0
;
i
<
runs
;
i
++)
{
for
(
int
i
=
0
;
i
<
runs
;
i
++)
{
for
(
IMonitoringRecord
record
:
records
)
{
for
(
IMonitoringRecord
record
:
records
)
{
// TODO increase trace id
int
clazzId
=
stringRegistry
.
get
(
record
.
getClass
().
getName
());
int
clazzId
=
stringRegistry
.
get
(
record
.
getClass
().
getName
());
recordBuffer
.
putInt
(
clazzId
);
recordBuffer
.
putInt
(
clazzId
);
recordBuffer
.
putLong
(
record
.
getLoggingTimestamp
());
recordBuffer
.
putLong
(
record
.
getLoggingTimestamp
());
duplicateBuffer
.
position
(
recordBuffer
.
position
());
// AbstractOperationEvent writes (Long, Long traceId, ...)
record
.
writeBytes
(
recordBuffer
,
stringRegistry
);
record
.
writeBytes
(
recordBuffer
,
stringRegistry
);
if
(
record
instanceof
AbstractOperationEvent
)
{
duplicateBuffer
.
getLong
();
duplicateBuffer
.
putLong
(
traceId
);
}
else
if
(
record
instanceof
TraceMetadata
)
{
duplicateBuffer
.
putLong
(
traceId
);
}
}
}
recordBuffer
.
flip
();
recordBuffer
.
flip
();
// System.out.println("position: " + recordBuffer.position());
// System.out.println("position: " + recordBuffer.position());
...
@@ -159,6 +171,8 @@ public class KiekerLoadDriver {
...
@@ -159,6 +171,8 @@ public class KiekerLoadDriver {
}
}
// System.out.println("writtenBytes (record): " + writtenBytes);
// System.out.println("writtenBytes (record): " + writtenBytes);
recordBuffer
.
clear
();
recordBuffer
.
clear
();
duplicateBuffer
.
clear
();
traceId
++;
}
}
}
finally
{
}
finally
{
socketChannel
.
close
();
socketChannel
.
close
();
...
...
This diff is collapsed.
Click to expand it.
JCTools
@
88e1e25f
Compare
75998aa2
...
88e1e25f
Subproject commit
75998aa20b7ec897ec321c1f94192de888f2dc6e
Subproject commit
88e1e25f9519b250258c7e5ada30935975ab2d10
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment