Skip to content

Commit

Permalink
Removed useless constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
tommaso-borgato committed Nov 6, 2024
1 parent cfcd6d5 commit c66608d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 191 deletions.
21 changes: 0 additions & 21 deletions builder/src/main/java/cz/xtf/builder/db/AbstractDatabase.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,6 @@ public AbstractDatabase(String symbolicName, String dataDir, boolean withLivenes
this.withReadinessProbe = withReadinessProbe;
}

public AbstractDatabase(String symbolicName, String dataDir, boolean withLivenessProbe, boolean withReadinessProbe,
boolean configureEnvironment) {
this(symbolicName, dataDir, withLivenessProbe, withReadinessProbe);
this.configureEnvironment = configureEnvironment;
}

public AbstractDatabase(String symbolicName, String dataDir, boolean withLivenessProbe, boolean withReadinessProbe,
boolean withStartupProbe,
boolean configureEnvironment) {
Expand Down Expand Up @@ -140,21 +134,6 @@ public AbstractDatabase(String username, String password, String dbName, String
this.withReadinessProbe = withReadinessProbe;
}

public AbstractDatabase(String username, String password, String dbName, String symbolicName, String dataDir,
boolean withLivenessProbe, boolean withReadinessProbe, boolean configureEnvironment) {
this(username, password, dbName, symbolicName, dataDir, withLivenessProbe, withReadinessProbe);
this.configureEnvironment = configureEnvironment;
}

public AbstractDatabase(String username, String password, String dbName, String symbolicName, String dataDir,
boolean withLivenessProbe, boolean withReadinessProbe, boolean withStartupProbe, boolean configureEnvironment) {
this(username, password, dbName, symbolicName, dataDir);
this.configureEnvironment = configureEnvironment;
this.withLivenessProbe = withLivenessProbe;
this.withReadinessProbe = withReadinessProbe;
this.withStartupProbe = withStartupProbe;
}

public abstract String getImageName();

public abstract int getPort();
Expand Down
16 changes: 0 additions & 16 deletions builder/src/main/java/cz/xtf/builder/db/AbstractSQLDatabase.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ public AbstractSQLDatabase(String symbolicName, String dataDir, boolean withLive
super(symbolicName, dataDir, withLivenessProbe, withReadinessProbe);
}

public AbstractSQLDatabase(String symbolicName, String dataDir, boolean withLivenessProbe, boolean withReadinessProbe,
boolean configureEnvironment) {
super(symbolicName, dataDir, withLivenessProbe, withReadinessProbe, configureEnvironment);
}

public AbstractSQLDatabase(String symbolicName, String dataDir, boolean withLivenessProbe, boolean withReadinessProbe,
boolean withStartupProbe,
boolean configureEnvironment) {
Expand All @@ -61,17 +56,6 @@ public AbstractSQLDatabase(String username, String password, String dbName, Stri
super(username, password, dbName, symbolicName, dataDir, withLivenessProbe, withReadinessProbe);
}

public AbstractSQLDatabase(String username, String password, String dbName, String symbolicName, String dataDir,
boolean withLivenessProbe, boolean withReadinessProbe, boolean configureEnvironment) {
super(username, password, dbName, symbolicName, dataDir, withLivenessProbe, withReadinessProbe, configureEnvironment);
}

public AbstractSQLDatabase(String username, String password, String dbName, String symbolicName, String dataDir,
boolean withLivenessProbe, boolean withReadinessProbe, boolean withStartupProbe, boolean configureEnvironment) {
super(username, password, dbName, symbolicName, dataDir, withLivenessProbe, withReadinessProbe, withStartupProbe,
configureEnvironment);
}

public AbstractSQLDatabase(String symbolicName, String dataDir, PersistentVolumeClaim pvc, boolean withLivenessProbe,
boolean withReadinessProbe) {
super(symbolicName, dataDir, pvc, withLivenessProbe, withReadinessProbe);
Expand Down
154 changes: 0 additions & 154 deletions builder/src/main/java/cz/xtf/builder/db/PostgreSQL.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,160 +99,6 @@ public PostgreSQL() {
null);
}

public PostgreSQL(String dataDir) {
//super("POSTGRESQL", dataDir);
super(
DEFAULT_SYMBOLIC_NAME,
dataDir,
null,
null,
null,
null,
true,
false,
false,
false,
null,
null);
}

public PostgreSQL(boolean withLivenessProbe, boolean withReadinessProbe) {
//super("POSTGRESQL", DEFAULT_DATA_DIR, withLivenessProbe, withReadinessProbe);
super(
DEFAULT_SYMBOLIC_NAME,
DEFAULT_DATA_DIR,
null,
null,
null,
null,
true,
withLivenessProbe,
withReadinessProbe,
false,
null,
null);
}

public PostgreSQL(boolean withLivenessProbe, boolean withReadinessProbe, boolean withStartupProbe) {
//super("POSTGRESQL", DEFAULT_DATA_DIR, withLivenessProbe, withReadinessProbe, withStartupProbe, true);
super(
DEFAULT_SYMBOLIC_NAME,
DEFAULT_DATA_DIR,
null,
null,
null,
null,
true,
withLivenessProbe,
withReadinessProbe,
withStartupProbe,
null,
null);
}

public PostgreSQL(PersistentVolumeClaim pvc) {
//super("POSTGRESQL", DEFAULT_DATA_DIR, pvc);
super(
DEFAULT_SYMBOLIC_NAME,
DEFAULT_DATA_DIR,
pvc,
null,
null,
null,
true,
false,
false,
false,
null,
null);
}

public PostgreSQL(PersistentVolumeClaim pvc, boolean withLivenessProbe, boolean withReadinessProbe) {
//super("POSTGRESQL", DEFAULT_DATA_DIR, pvc, withLivenessProbe, withReadinessProbe);
super(
DEFAULT_SYMBOLIC_NAME,
DEFAULT_DATA_DIR,
pvc,
null,
null,
null,
true,
withLivenessProbe,
withReadinessProbe,
false,
null,
null);
}

public PostgreSQL(PersistentVolumeClaim pvc, boolean withLivenessProbe, boolean withReadinessProbe,
boolean withStartupProbe) {
//super("POSTGRESQL", DEFAULT_DATA_DIR, pvc, withLivenessProbe, withReadinessProbe, withStartupProbe);
super(
DEFAULT_SYMBOLIC_NAME,
DEFAULT_DATA_DIR,
pvc,
null,
null,
null,
true,
withLivenessProbe,
withReadinessProbe,
withStartupProbe,
null,
null);
}

public PostgreSQL(String username, String password, String dbName) {
//super(username, password, dbName, "POSTGRESQL", DEFAULT_DATA_DIR);
super(
DEFAULT_SYMBOLIC_NAME,
DEFAULT_DATA_DIR,
null,
username,
password,
dbName,
true,
false,
false,
false,
null,
null);
}

public PostgreSQL(String symbolicName, boolean withLivenessProbe, boolean withReadinessProbe) {
//super(symbolicName, DEFAULT_DATA_DIR, withLivenessProbe, withReadinessProbe);
super(
symbolicName,
DEFAULT_DATA_DIR,
null,
null,
null,
null,
true,
withLivenessProbe,
withReadinessProbe,
false,
null,
null);
}

public PostgreSQL(String symbolicName, boolean withLivenessProbe, boolean withReadinessProbe, boolean withStartupProbe) {
//super(symbolicName, DEFAULT_DATA_DIR, withLivenessProbe, withReadinessProbe, withStartupProbe, true);
super(
symbolicName,
DEFAULT_DATA_DIR,
null,
null,
null,
null,
true,
withLivenessProbe,
withReadinessProbe,
withStartupProbe,
null,
null);
}

@Override
public String getImageName() {
return Image.resolve("postgresql").getUrl();
Expand Down

0 comments on commit c66608d

Please sign in to comment.