Package org.platformlayer.ops.databases

Examples of org.platformlayer.ops.databases.DatabaseTarget


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


    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.DatabaseTarget

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.