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
0fe6dd16
Commit
0fe6dd16
authored
10 years ago
by
Christian Wulf
Browse files
Options
Downloads
Patches
Plain Diff
fixed TcpTraceLoggingExtAnalysisConfiguration
parent
ab6e659d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/performancetest/java/teetime/examples/traceReading/TcpTraceLoggingExtAnalysisConfiguration.java
+5
-12
5 additions, 12 deletions
...traceReading/TcpTraceLoggingExtAnalysisConfiguration.java
with
5 additions
and
12 deletions
src/performancetest/java/teetime/examples/traceReading/TcpTraceLoggingExtAnalysisConfiguration.java
+
5
−
12
View file @
0fe6dd16
...
@@ -4,7 +4,6 @@ import java.util.List;
...
@@ -4,7 +4,6 @@ import java.util.List;
import
teetime.framework.AnalysisConfiguration
;
import
teetime.framework.AnalysisConfiguration
;
import
teetime.framework.IStage
;
import
teetime.framework.IStage
;
import
teetime.framework.RunnableStage
;
import
teetime.framework.pipe.IPipeFactory
;
import
teetime.framework.pipe.IPipeFactory
;
import
teetime.framework.pipe.PipeFactoryRegistry
;
import
teetime.framework.pipe.PipeFactoryRegistry
;
import
teetime.framework.pipe.PipeFactoryRegistry.PipeOrdering
;
import
teetime.framework.pipe.PipeFactoryRegistry.PipeOrdering
;
...
@@ -21,9 +20,6 @@ import kieker.common.record.IMonitoringRecord;
...
@@ -21,9 +20,6 @@ import kieker.common.record.IMonitoringRecord;
public
class
TcpTraceLoggingExtAnalysisConfiguration
extends
AnalysisConfiguration
{
public
class
TcpTraceLoggingExtAnalysisConfiguration
extends
AnalysisConfiguration
{
private
Thread
clockThread
;
private
Thread
tcpThread
;
private
Counter
<
IMonitoringRecord
>
recordCounter
;
private
Counter
<
IMonitoringRecord
>
recordCounter
;
private
ElementThroughputMeasuringStage
<
IMonitoringRecord
>
recordThroughputStage
;
private
ElementThroughputMeasuringStage
<
IMonitoringRecord
>
recordThroughputStage
;
private
final
IPipeFactory
intraThreadPipeFactory
;
private
final
IPipeFactory
intraThreadPipeFactory
;
...
@@ -32,6 +28,11 @@ public class TcpTraceLoggingExtAnalysisConfiguration extends AnalysisConfigurati
...
@@ -32,6 +28,11 @@ public class TcpTraceLoggingExtAnalysisConfiguration extends AnalysisConfigurati
public
TcpTraceLoggingExtAnalysisConfiguration
()
{
public
TcpTraceLoggingExtAnalysisConfiguration
()
{
intraThreadPipeFactory
=
PipeFactoryRegistry
.
INSTANCE
.
getPipeFactory
(
ThreadCommunication
.
INTRA
,
PipeOrdering
.
ARBITRARY
,
false
);
intraThreadPipeFactory
=
PipeFactoryRegistry
.
INSTANCE
.
getPipeFactory
(
ThreadCommunication
.
INTRA
,
PipeOrdering
.
ARBITRARY
,
false
);
interThreadPipeFactory
=
PipeFactoryRegistry
.
INSTANCE
.
getPipeFactory
(
ThreadCommunication
.
INTER
,
PipeOrdering
.
QUEUE_BASED
,
false
);
interThreadPipeFactory
=
PipeFactoryRegistry
.
INSTANCE
.
getPipeFactory
(
ThreadCommunication
.
INTER
,
PipeOrdering
.
QUEUE_BASED
,
false
);
final
Pipeline
<
Distributor
<
Long
>>
clockPipeline
=
this
.
buildClockPipeline
(
1000
);
addThreadableStage
(
clockPipeline
);
final
IStage
tcpPipeline
=
this
.
buildTcpPipeline
(
clockPipeline
.
getLastStage
());
addThreadableStage
(
tcpPipeline
);
}
}
private
Pipeline
<
Distributor
<
Long
>>
buildClockPipeline
(
final
long
intervalDelayInMs
)
{
private
Pipeline
<
Distributor
<
Long
>>
buildClockPipeline
(
final
long
intervalDelayInMs
)
{
...
@@ -61,14 +62,6 @@ public class TcpTraceLoggingExtAnalysisConfiguration extends AnalysisConfigurati
...
@@ -61,14 +62,6 @@ public class TcpTraceLoggingExtAnalysisConfiguration extends AnalysisConfigurati
return
tcpReader
;
return
tcpReader
;
}
}
public
void
init
()
{
Pipeline
<
Distributor
<
Long
>>
clockPipeline
=
this
.
buildClockPipeline
(
1000
);
this
.
clockThread
=
new
Thread
(
new
RunnableStage
(
clockPipeline
));
IStage
tcpPipeline
=
this
.
buildTcpPipeline
(
clockPipeline
.
getLastStage
());
this
.
tcpThread
=
new
Thread
(
new
RunnableStage
(
tcpPipeline
));
}
public
int
getNumRecords
()
{
public
int
getNumRecords
()
{
return
this
.
recordCounter
.
getNumElementsPassed
();
return
this
.
recordCounter
.
getNumElementsPassed
();
}
}
...
...
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