use of org.platformlayer.ops.databases.DatabaseServer in project platformlayer by platformlayer.
the class DatabaseController method buildLinkTargetConfiguration.
@Override
public Map<String, String> buildLinkTargetConfiguration(LinkConsumer consumer) throws OpsException {
ItemBase serverItem = platformLayer.getItem(model.server);
DatabaseServer databaseServer = providers.toInterface(serverItem, DatabaseServer.class);
InetAddressChooser inetAddressChooser = consumer.getInetAddressChooser();
return databaseServer.buildTargetConfiguration(model.username, model.password, model.databaseName, inetAddressChooser);
}
use of org.platformlayer.ops.databases.DatabaseServer in project platformlayer by platformlayer.
the class GerritTemplate method getJdbcUrl.
protected String getJdbcUrl() throws OpsException {
PlatformLayerKey serverKey = getDatabase().server;
ItemBase serverItem = (ItemBase) platformLayer.getItem(serverKey);
DatabaseServer server = databases.toDatabase(serverItem);
String jdbc = server.getJdbcUrl(getDatabaseName(), InetAddressChooser.preferIpv6());
return jdbc;
}
use of org.platformlayer.ops.databases.DatabaseServer in project platformlayer by platformlayer.
the class PlatformLayerDatabaseController method buildLinkTargetConfiguration.
@Override
public Map<String, String> buildLinkTargetConfiguration(LinkConsumer consumer) throws OpsException {
ItemBase serverItem = platformLayer.getItem(model.server);
DatabaseServer databaseServer = providers.toInterface(serverItem, DatabaseServer.class);
InetAddressChooser inetAddressChooser = consumer.getInetAddressChooser();
return databaseServer.buildTargetConfiguration(model.username, model.password, model.databaseName, inetAddressChooser);
}
use of org.platformlayer.ops.databases.DatabaseServer in project platformlayer by platformlayer.
the class GerritDatabaseTemplate method getAuthJdbcUrl.
protected String getAuthJdbcUrl() throws OpsException {
PlatformLayerKey serverKey = getModel().server;
ItemBase serverItem = (ItemBase) platformLayer.getItem(serverKey);
DatabaseServer server = databases.toDatabase(serverItem);
String jdbc = server.getJdbcUrl(getDatabaseName(), InetAddressChooser.preferIpv6());
return jdbc;
}
use of org.platformlayer.ops.databases.DatabaseServer in project platformlayer by platformlayer.
the class PlatformLayerAuthDatabaseController method buildLinkTargetConfiguration.
@Override
public Map<String, String> buildLinkTargetConfiguration(LinkConsumer consumer) throws OpsException {
ItemBase serverItem = platformLayer.getItem(model.server);
DatabaseServer databaseServer = providers.toInterface(serverItem, DatabaseServer.class);
InetAddressChooser inetAddressChooser = consumer.getInetAddressChooser();
return databaseServer.buildTargetConfiguration(model.username, model.password, model.databaseName, inetAddressChooser);
}
Aggregations