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
e7bdf201
Commit
e7bdf201
authored
10 years ago
by
Christian Wulf
Browse files
Options
Downloads
Patches
Plain Diff
removed unused type parameter for Clock
parent
624f05de
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/teetime/examples/traceReconstruction/TraceReconstructionAnalysis2.java
+9
-3
9 additions, 3 deletions
...les/traceReconstruction/TraceReconstructionAnalysis2.java
src/main/java/teetime/stage/basic/Clock.java
+3
-4
3 additions, 4 deletions
src/main/java/teetime/stage/basic/Clock.java
with
12 additions
and
7 deletions
src/main/java/teetime/examples/traceReconstruction/TraceReconstructionAnalysis2.java
+
9
−
3
View file @
e7bdf201
...
...
@@ -56,14 +56,20 @@ public class TraceReconstructionAnalysis2 extends Analysis {
private
ClassNameRegistryRepository
classNameRegistryRepository
;
@Override
public
void
init
()
{
super
.
init
();
// IPipeline clockPipeline = buildClockPipeline();
// this.clockThread = new WorkerThread(clockPipeline, 1);
// Clock clockStage=(Clock) clockPipeline.getStartStages().get(0);
final
IPipeline
pipeline
=
this
.
buildPipeline
();
this
.
workerThread
=
new
WorkerThread
(
pipeline
,
0
);
}
/**
* @param clockStage
* @since 1.10
*/
private
IPipeline
buildPipeline
()
{
...
...
@@ -107,7 +113,7 @@ public class TraceReconstructionAnalysis2 extends Analysis {
QueuePipe
.
connect
(
classNameRegistryCreationFilter
.
relayDirectoryOutputPort
,
directory2FilesFilter
.
directoryInputPort
);
QueuePipe
.
connect
(
directory2FilesFilter
.
fileOutputPort
,
file2TextLinesFilter
.
fileInputPort
);
QueuePipe
.
connect
(
file2TextLinesFilter
.
textLineOutputPort
,
cache
.
objectInputPort
);
// QueuePipe.connect(XXX, cache.sendInputPort);
//
QueuePipe.connect(XXX, cache.sendInputPort);
QueuePipe
.
connect
(
cache
.
objectOutputPort
,
textLine2RecordFilter
.
textLineInputPort
);
QueuePipe
.
connect
(
textLine2RecordFilter
.
recordOutputPort
,
stringBufferFilter
.
objectInputPort
);
QueuePipe
.
connect
(
stringBufferFilter
.
objectOutputPort
,
timestampFilter
.
inputPort
);
...
...
@@ -115,11 +121,11 @@ public class TraceReconstructionAnalysis2 extends Analysis {
// QueuePipe.connect(timestampFilter.mismatchingOutputPort, YYY); // ignore this case
QueuePipe
.
connect
(
traceIdFilter
.
matchingOutputPort
,
instanceOfFilter
.
inputPort
);
// QueuePipe.connect(traceIdFilter.mismatchingOutputPort, traceIdFilter.inputPort); // ignore this case
// QueuePipe.connect(
XXX
, traceReconstructionFilter.timestampInputPort);
// QueuePipe.connect(
clockStage.timestampOutputPort
, traceReconstructionFilter.timestampInputPort);
// ignore this case
QueuePipe
.
connect
(
instanceOfFilter
.
matchingOutputPort
,
traceReconstructionFilter
.
recordInputPort
);
// QueuePipe.connect(instanceOfFilter.mismatchingOutputPort, instanceOfFilter.inputPort); // ignore this case
QueuePipe
.
connect
(
traceReconstructionFilter
.
traceValidOutputPort
,
countingFilter
.
INPUT_OBJECT
);
// QueuePipe.connect(traceReconstructionFilter.traceInvalidOutputPort,
XXX
); // ignore this case
// QueuePipe.connect(traceReconstructionFilter.traceInvalidOutputPort, ); // ignore this case
final
Pipeline
pipeline
=
new
Pipeline
();
pipeline
.
setStartStages
(
startStages
);
...
...
This diff is collapsed.
Click to expand it.
src/main/java/teetime/stage/basic/Clock.java
+
3
−
4
View file @
e7bdf201
...
...
@@ -12,11 +12,10 @@ import teetime.framework.core.IOutputPort;
*
* @since 1.10
*
* @param <T>
*/
public
class
Clock
<
T
>
extends
AbstractFilter
<
Clock
<
T
>
>
{
public
class
Clock
extends
AbstractFilter
<
Clock
>
{
public
final
IOutputPort
<
Clock
<
T
>
,
Long
>
timestampOutputPort
=
this
.
createOutputPort
();
public
final
IOutputPort
<
Clock
,
Long
>
timestampOutputPort
=
this
.
createOutputPort
();
private
boolean
initialDelayExceeded
=
false
;
...
...
@@ -27,7 +26,7 @@ public class Clock<T> extends AbstractFilter<Clock<T>> {
* @since 1.10
*/
@Override
protected
boolean
execute
(
final
Context
<
Clock
<
T
>
>
context
)
{
protected
boolean
execute
(
final
Context
<
Clock
>
context
)
{
if
(!
initialDelayExceeded
)
{
initialDelayExceeded
=
true
;
sleep
(
initialDelayInMs
);
...
...
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