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
970def2d
Commit
970def2d
authored
9 years ago
by
Nelson Tavares de Sousa
Browse files
Options
Downloads
Patches
Plain Diff
set methods deprecated and added connections field
parent
1df08c1d
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/AnalysisConfiguration.java
+27
-0
27 additions, 0 deletions
src/main/java/teetime/framework/AnalysisConfiguration.java
with
27 additions
and
0 deletions
src/main/java/teetime/framework/AnalysisConfiguration.java
+
27
−
0
View file @
970def2d
...
@@ -23,6 +23,7 @@ import teetime.framework.pipe.IPipeFactory;
...
@@ -23,6 +23,7 @@ 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
;
import
teetime.framework.pipe.PipeFactoryRegistry.ThreadCommunication
;
import
teetime.framework.pipe.PipeFactoryRegistry.ThreadCommunication
;
import
teetime.util.Pair
;
/**
/**
* Represents a configuration of connected stages, which is needed to run a analysis.
* Represents a configuration of connected stages, which is needed to run a analysis.
...
@@ -31,7 +32,9 @@ import teetime.framework.pipe.PipeFactoryRegistry.ThreadCommunication;
...
@@ -31,7 +32,9 @@ import teetime.framework.pipe.PipeFactoryRegistry.ThreadCommunication;
public
abstract
class
AnalysisConfiguration
{
public
abstract
class
AnalysisConfiguration
{
private
final
List
<
Stage
>
threadableStageJobs
=
new
LinkedList
<
Stage
>();
private
final
List
<
Stage
>
threadableStageJobs
=
new
LinkedList
<
Stage
>();
private
final
List
<
Pair
<
Stage
,
Stage
>>
connections
=
new
LinkedList
<
Pair
<
Stage
,
Stage
>>();
@SuppressWarnings
(
"deprecation"
)
private
static
final
PipeFactoryRegistry
PIPE_FACTORY_REGISTRY
=
PipeFactoryRegistry
.
INSTANCE
;
private
static
final
PipeFactoryRegistry
PIPE_FACTORY_REGISTRY
=
PipeFactoryRegistry
.
INSTANCE
;
/**
/**
...
@@ -68,7 +71,10 @@ public abstract class AnalysisConfiguration {
...
@@ -68,7 +71,10 @@ public abstract class AnalysisConfiguration {
* @param targetPort
* @param targetPort
* @return
* @return
* the pipe instance which connects the two given stages
* the pipe instance which connects the two given stages
*
* @deprecated since 1.2
*/
*/
@Deprecated
protected
static
<
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
);
return
intraThreadFactory
.
create
(
sourcePort
,
targetPort
);
}
}
...
@@ -80,7 +86,10 @@ public abstract class AnalysisConfiguration {
...
@@ -80,7 +86,10 @@ public abstract class AnalysisConfiguration {
* @param targetPort
* @param targetPort
* @return
* @return
* the pipe instance which connects the two given stages
* the pipe instance which connects the two given stages
*
* @deprecated since 1.2
*/
*/
@Deprecated
protected
static
<
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
);
return
interBoundedThreadFactory
.
create
(
sourcePort
,
targetPort
);
}
}
...
@@ -92,7 +101,10 @@ public abstract class AnalysisConfiguration {
...
@@ -92,7 +101,10 @@ public abstract class AnalysisConfiguration {
* @param targetPort
* @param targetPort
* @return
* @return
* the pipe instance which connects the two given stages
* the pipe instance which connects the two given stages
*
* @deprecated since 1.2
*/
*/
@Deprecated
protected
static
<
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
);
return
interUnboundedThreadFactory
.
create
(
sourcePort
,
targetPort
);
}
}
...
@@ -105,7 +117,10 @@ public abstract class AnalysisConfiguration {
...
@@ -105,7 +117,10 @@ public abstract class AnalysisConfiguration {
* @param capacity
* @param capacity
* capacity of the underlying queue
* capacity of the underlying queue
* @return
* @return
*
* @deprecated since 1.2
*/
*/
@Deprecated
protected
static
<
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
);
return
interBoundedThreadFactory
.
create
(
sourcePort
,
targetPort
,
capacity
);
}
}
...
@@ -118,9 +133,21 @@ public abstract class AnalysisConfiguration {
...
@@ -118,9 +133,21 @@ public abstract class AnalysisConfiguration {
* @param capacity
* @param capacity
* capacity of the underlying queue
* capacity of the underlying queue
* @return
* @return
*
* @deprecated since 1.2
*/
*/
@Deprecated
protected
static
<
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
);
return
interUnboundedThreadFactory
.
create
(
sourcePort
,
targetPort
,
capacity
);
}
}
/**
* Returns a list of pairs, which describe the connections among all stages.
*
* @return a list of pairs of stages, which are connected
*/
protected
List
<
Pair
<
Stage
,
Stage
>>
getConnections
()
{
return
connections
;
}
}
}
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