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
3cd98610
Commit
3cd98610
authored
9 years ago
by
Nelson Tavares de Sousa
Browse files
Options
Downloads
Patches
Plain Diff
made the methods static
parent
0c39fb09
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/teetime/framework/AnalysisConfiguration.java
+9
-8
9 additions, 8 deletions
src/main/java/teetime/framework/AnalysisConfiguration.java
with
9 additions
and
8 deletions
src/main/java/teetime/framework/AnalysisConfiguration.java
+
9
−
8
View file @
3cd98610
...
...
@@ -31,9 +31,6 @@ import teetime.framework.pipe.PipeFactoryRegistry.ThreadCommunication;
public
abstract
class
AnalysisConfiguration
{
private
final
List
<
Stage
>
threadableStageJobs
=
new
LinkedList
<
Stage
>();
private
final
IPipeFactory
intraThreadFactory
=
PIPE_FACTORY_REGISTRY
.
getPipeFactory
(
ThreadCommunication
.
INTRA
,
PipeOrdering
.
ARBITRARY
,
false
);
private
final
IPipeFactory
interBoundedThreadFactory
=
PIPE_FACTORY_REGISTRY
.
getPipeFactory
(
ThreadCommunication
.
INTER
,
PipeOrdering
.
QUEUE_BASED
,
true
);
private
final
IPipeFactory
interUnboundedThreadFactory
=
PIPE_FACTORY_REGISTRY
.
getPipeFactory
(
ThreadCommunication
.
INTER
,
PipeOrdering
.
QUEUE_BASED
,
false
);
/**
* Can be used by subclasses, to obtain pipe factories
...
...
@@ -42,6 +39,10 @@ public abstract class AnalysisConfiguration {
// TODO: set private
protected
static
final
PipeFactoryRegistry
PIPE_FACTORY_REGISTRY
=
PipeFactoryRegistry
.
INSTANCE
;
private
final
static
IPipeFactory
intraThreadFactory
=
PIPE_FACTORY_REGISTRY
.
getPipeFactory
(
ThreadCommunication
.
INTRA
,
PipeOrdering
.
ARBITRARY
,
false
);
private
final
static
IPipeFactory
interBoundedThreadFactory
=
PIPE_FACTORY_REGISTRY
.
getPipeFactory
(
ThreadCommunication
.
INTER
,
PipeOrdering
.
QUEUE_BASED
,
true
);
private
final
static
IPipeFactory
interUnboundedThreadFactory
=
PIPE_FACTORY_REGISTRY
.
getPipeFactory
(
ThreadCommunication
.
INTER
,
PipeOrdering
.
QUEUE_BASED
,
false
);
List
<
Stage
>
getThreadableStageJobs
()
{
return
this
.
threadableStageJobs
;
}
...
...
@@ -56,23 +57,23 @@ public abstract class AnalysisConfiguration {
this
.
threadableStageJobs
.
add
(
stage
);
}
protected
<
T
>
IPipe
connectIntraThreads
(
final
OutputPort
<?
extends
T
>
sourcePort
,
final
InputPort
<
T
>
targetPort
)
{
protected
static
<
T
>
IPipe
connectIntraThreads
(
final
OutputPort
<?
extends
T
>
sourcePort
,
final
InputPort
<
T
>
targetPort
)
{
return
intraThreadFactory
.
create
(
sourcePort
,
targetPort
);
}
protected
<
T
>
IPipe
connectBoundedInterThreads
(
final
OutputPort
<?
extends
T
>
sourcePort
,
final
InputPort
<
T
>
targetPort
)
{
protected
static
<
T
>
IPipe
connectBoundedInterThreads
(
final
OutputPort
<?
extends
T
>
sourcePort
,
final
InputPort
<
T
>
targetPort
)
{
return
interBoundedThreadFactory
.
create
(
sourcePort
,
targetPort
);
}
protected
<
T
>
IPipe
connectUnboundedInterThreads
(
final
OutputPort
<?
extends
T
>
sourcePort
,
final
InputPort
<
T
>
targetPort
)
{
protected
static
<
T
>
IPipe
connectUnboundedInterThreads
(
final
OutputPort
<?
extends
T
>
sourcePort
,
final
InputPort
<
T
>
targetPort
)
{
return
interUnboundedThreadFactory
.
create
(
sourcePort
,
targetPort
);
}
protected
<
T
>
IPipe
connectBoundedInterThreads
(
final
OutputPort
<?
extends
T
>
sourcePort
,
final
InputPort
<
T
>
targetPort
,
final
int
capacity
)
{
protected
static
<
T
>
IPipe
connectBoundedInterThreads
(
final
OutputPort
<?
extends
T
>
sourcePort
,
final
InputPort
<
T
>
targetPort
,
final
int
capacity
)
{
return
interBoundedThreadFactory
.
create
(
sourcePort
,
targetPort
,
capacity
);
}
protected
<
T
>
IPipe
connectUnboundedInterThreads
(
final
OutputPort
<?
extends
T
>
sourcePort
,
final
InputPort
<
T
>
targetPort
,
final
int
capacity
)
{
protected
static
<
T
>
IPipe
connectUnboundedInterThreads
(
final
OutputPort
<?
extends
T
>
sourcePort
,
final
InputPort
<
T
>
targetPort
,
final
int
capacity
)
{
return
interUnboundedThreadFactory
.
create
(
sourcePort
,
targetPort
,
capacity
);
}
...
...
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