use of org.platformlayer.ops.databases.TunneledDatabaseTarget in project platformlayer by platformlayer.
the class PostgresqlServerController method buildDatabaseTarget.
@Override
public DatabaseTarget buildDatabaseTarget(String username, Secret password, String databaseName) throws OpsException {
OpsTarget target = instanceHelpers.getTarget(model);
// Machine machine = instanceHelpers.getMachine(pgServer);
//
// String address = machine.getBestAddress(NetworkPoint.forTargetInContext(), POSTGRES_PORT);
// PostgresTarget mysql = new TunneledPostgresTarget(address, username, password);
DatabaseTarget db = new TunneledDatabaseTarget(target, username, password, databaseName);
return db;
}
Aggregations