Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TeeTime-Framework
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
Nelson Tavares de Sousa
TeeTime-Framework
Commits
1502a623
Commit
1502a623
authored
9 years ago
by
Christian Wulf
Browse files
Options
Downloads
Patches
Plain Diff
removed sending InitializingSignal twice
parent
a285c692
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/main/java/teetime/framework/Execution.java
+4
-9
4 additions, 9 deletions
src/main/java/teetime/framework/Execution.java
with
4 additions
and
9 deletions
src/main/java/teetime/framework/Execution.java
+
4
−
9
View file @
1502a623
...
@@ -29,7 +29,6 @@ import org.slf4j.LoggerFactory;
...
@@ -29,7 +29,6 @@ import org.slf4j.LoggerFactory;
import
teetime.framework.exceptionHandling.AbstractExceptionListener
;
import
teetime.framework.exceptionHandling.AbstractExceptionListener
;
import
teetime.framework.exceptionHandling.IExceptionListenerFactory
;
import
teetime.framework.exceptionHandling.IExceptionListenerFactory
;
import
teetime.framework.exceptionHandling.TerminatingExceptionListenerFactory
;
import
teetime.framework.exceptionHandling.TerminatingExceptionListenerFactory
;
import
teetime.framework.signal.InitializingSignal
;
import
teetime.framework.signal.ValidatingSignal
;
import
teetime.framework.signal.ValidatingSignal
;
import
teetime.framework.validation.AnalysisNotValidException
;
import
teetime.framework.validation.AnalysisNotValidException
;
import
teetime.util.ThreadThrowableContainer
;
import
teetime.util.ThreadThrowableContainer
;
...
@@ -174,25 +173,21 @@ public final class Execution<T extends Configuration> implements UncaughtExcepti
...
@@ -174,25 +173,21 @@ public final class Execution<T extends Configuration> implements UncaughtExcepti
switch
(
terminationStrategy
)
{
switch
(
terminationStrategy
)
{
case
BY_SIGNAL:
{
case
BY_SIGNAL:
{
final
RunnableConsumerStage
runnable
=
new
RunnableConsumerStage
(
stage
);
final
RunnableConsumerStage
runnable
=
new
RunnableConsumerStage
(
stage
);
thread
=
createThread
(
runnable
,
stage
.
getId
()
);
thread
=
createThread
(
runnable
);
this
.
consumerThreads
.
add
(
thread
);
this
.
consumerThreads
.
add
(
thread
);
break
;
break
;
}
}
case
BY_SELF_DECISION:
{
case
BY_SELF_DECISION:
{
final
RunnableProducerStage
runnable
=
new
RunnableProducerStage
(
stage
);
final
RunnableProducerStage
runnable
=
new
RunnableProducerStage
(
stage
);
producerRunnables
.
add
(
runnable
);
producerRunnables
.
add
(
runnable
);
thread
=
createThread
(
runnable
,
stage
.
getId
()
);
thread
=
createThread
(
runnable
);
this
.
finiteProducerThreads
.
add
(
thread
);
this
.
finiteProducerThreads
.
add
(
thread
);
InitializingSignal
initializingSignal
=
new
InitializingSignal
();
stage
.
onSignal
(
initializingSignal
,
null
);
break
;
break
;
}
}
case
BY_INTERRUPT:
{
case
BY_INTERRUPT:
{
final
RunnableProducerStage
runnable
=
new
RunnableProducerStage
(
stage
);
final
RunnableProducerStage
runnable
=
new
RunnableProducerStage
(
stage
);
producerRunnables
.
add
(
runnable
);
producerRunnables
.
add
(
runnable
);
thread
=
createThread
(
runnable
,
stage
.
getId
());
thread
=
createThread
(
runnable
);
InitializingSignal
initializingSignal
=
new
InitializingSignal
();
stage
.
onSignal
(
initializingSignal
,
null
);
this
.
infiniteProducerThreads
.
add
(
thread
);
this
.
infiniteProducerThreads
.
add
(
thread
);
break
;
break
;
}
}
...
@@ -202,7 +197,7 @@ public final class Execution<T extends Configuration> implements UncaughtExcepti
...
@@ -202,7 +197,7 @@ public final class Execution<T extends Configuration> implements UncaughtExcepti
return
thread
;
return
thread
;
}
}
private
Thread
createThread
(
final
AbstractRunnableStage
runnable
,
final
String
name
)
{
private
Thread
createThread
(
final
AbstractRunnableStage
runnable
)
{
final
Thread
thread
=
new
Thread
(
runnable
);
final
Thread
thread
=
new
Thread
(
runnable
);
thread
.
setUncaughtExceptionHandler
(
this
);
thread
.
setUncaughtExceptionHandler
(
this
);
thread
.
setName
(
configuration
.
getContext
().
getThreadableStages
().
get
(
runnable
.
stage
));
thread
.
setName
(
configuration
.
getContext
().
getThreadableStages
().
get
(
runnable
.
stage
));
...
...
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