Package org.platformlayer.service.postgresql.model

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


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

  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

Related Classes of org.platformlayer.service.postgresql.model.PostgresqlServer

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.