Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
theodolite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor 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
Sören Henning
theodolite
Merge requests
!86
Zookeeper free workload generator
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Zookeeper free workload generator
zookeeper-free-workload-generator
into
master
Overview
0
Commits
24
Pipelines
19
Changes
1
Merged
Sören Henning
requested to merge
zookeeper-free-workload-generator
into
master
4 years ago
Overview
0
Commits
24
Pipelines
19
Changes
1
Expand
Closes
#146 (closed)
.
Still missing:
Adapt Theodolite execution Kubernetes resources and Python scripts
Adapt Docker configurations (to fix
#106 (closed)
)
Edited
4 years ago
by
Sören Henning
0
0
Merge request reports
Viewing commit
97c61e5d
Prev
Next
Show latest version
1 file
+
2
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
97c61e5d
Apply minor visibility restriction
· 97c61e5d
Sören Henning
authored
4 years ago
benchmarks/workload-generator-commons/src/main/java/theodolite/commons/workloadgeneration/ClusterConfig.java
0 → 100644
+
76
−
0
Options
package
theodolite.commons.workloadgeneration
;
/**
* Configuration of a load generator cluster.
*/
public
final
class
ClusterConfig
{
private
static
final
int
PORT_DEFAULT
=
5701
;
private
static
final
String
CLUSTER_NAME_PREFIX_DEFAULT
=
"theodolite-load-generation"
;
private
final
String
bootstrapServer
;
private
final
String
kubernetesDnsName
;
private
int
port
=
PORT_DEFAULT
;
private
boolean
portAutoIncrement
=
true
;
private
String
clusterNamePrefix
=
CLUSTER_NAME_PREFIX_DEFAULT
;
/**
* Create a new {@link ClusterConfig} with the given parameter values.
*/
private
ClusterConfig
(
final
String
bootstrapServer
,
final
String
kubernetesDnsName
)
{
this
.
bootstrapServer
=
bootstrapServer
;
this
.
kubernetesDnsName
=
kubernetesDnsName
;
}
public
boolean
hasBootstrapServer
()
{
return
this
.
bootstrapServer
!=
null
;
}
public
String
getBootstrapServer
()
{
return
this
.
bootstrapServer
;
}
public
boolean
hasKubernetesDnsName
()
{
return
this
.
kubernetesDnsName
!=
null
;
}
public
String
getKubernetesDnsName
()
{
return
this
.
kubernetesDnsName
;
}
public
int
getPort
()
{
return
this
.
port
;
}
public
boolean
isPortAutoIncrement
()
{
return
this
.
portAutoIncrement
;
}
public
ClusterConfig
setPortAutoIncrement
(
final
boolean
portAutoIncrement
)
{
// NOPMD
this
.
portAutoIncrement
=
portAutoIncrement
;
return
this
;
}
public
ClusterConfig
setPort
(
final
int
port
)
{
// NOPMD
this
.
port
=
port
;
return
this
;
}
public
String
getClusterNamePrefix
()
{
return
this
.
clusterNamePrefix
;
}
public
ClusterConfig
setClusterNamePrefix
(
final
String
clusterNamePrefix
)
{
// NOPMD
this
.
clusterNamePrefix
=
clusterNamePrefix
;
return
this
;
}
public
static
ClusterConfig
fromBootstrapServer
(
final
String
bootstrapServer
)
{
return
new
ClusterConfig
(
bootstrapServer
,
null
);
}
public
static
ClusterConfig
fromKubernetesDnsName
(
final
String
kubernetesDnsName
)
{
return
new
ClusterConfig
(
null
,
kubernetesDnsName
);
}
}
Loading