Examples of PostgresqlServer


Examples of org.platformlayer.service.postgresql.model.PostgresqlServer

    BackupContext backupContext = backups.getContext();

    String baseName = UUID.randomUUID().toString();

    PostgresqlServer server = OpsContext.get().getInstance(PostgresqlServer.class);

    backupContext.add(new BackupItem(server.getKey(), FORMAT, baseName));

    {
      Command dumpAll = Command.build("su postgres -c \"pg_dumpall --globals-only\"");
      Backup request = new Backup();
      request.target = target;
View Full Code Here

Examples of org.platformlayer.service.postgresql.model.PostgresqlServer

public class PostgresqlServerBootstrap {

  @Handler
  public void handler() throws OpsException {
    PostgresqlServer model = OpsContext.get().getInstance(PostgresqlServer.class);
    OpsTarget target = OpsContext.get().getInstance(OpsTarget.class);

    // su postgres -c "psql --command=\"ALTER USER postgres WITH PASSWORD 'secret';\""

    String password = model.rootPassword.plaintext();
View Full Code Here

Examples of org.platformlayer.service.postgresql.model.PostgresqlServer

  public void buildTemplateModel(Map<String, Object> model) throws OpsException {

  }

  public PostgresqlServer getModel() {
    PostgresqlServer model = OpsContext.get().getInstance(PostgresqlServer.class);
    return model;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.