Package org.platformlayer.ops.databases

Examples of org.platformlayer.ops.databases.DatabaseServer


  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;
  }
View Full Code Here


  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;
  }
View Full Code Here

  }

  @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);
  }
View Full Code Here

  }

  @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);
  }
View Full Code Here

  }

  @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);
  }
View Full Code Here

  @Override
  public void doRecurseOperation() throws OpsException {
    ItemBase server = platformLayer.getItem(serverKey);

    DatabaseServer database = providers.toInterface(server, DatabaseServer.class);

    String username = this.username;
    if (username == null) {
      username = database.getRootUsername();
    }

    if (username.equals("postgres") && password == null) {
      password = database.getRootPassword();
    }

    DatabaseTarget dbTarget = database.buildDatabaseTarget(username, password, databaseName);
    BindingScope scope = BindingScope.push(dbTarget);
    try {
      OpsContext opsContext = OpsContext.get();
      OperationRecursor.doRecurseChildren(opsContext, this);
    } finally {
View Full Code Here

TOP

Related Classes of org.platformlayer.ops.databases.DatabaseServer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.