Package org.apache.whirr.service.puppet.functions

Examples of org.apache.whirr.service.puppet.functions.StatementToInstallModule$PrepareRemoteFileUrlUsingBlobCache


  public PuppetClusterActionHandler(String role) {
    this(role, new Function<ClusterActionEvent, StatementToInstallModule>() {

      @Override
      public StatementToInstallModule apply(ClusterActionEvent arg0) {
        return new StatementToInstallModule(arg0);
      }

    });
  }
View Full Code Here


  private void installAllKnownModules(ClusterActionEvent event) throws IOException {
    Map<String, String> moduleProps = ModulePropertiesFromConfiguration.INSTANCE.apply(event.getClusterSpec()
          .getConfigurationForKeysWithPrefix(PUPPET));

    StatementToInstallModule statementMaker = getStatementToInstallModuleForAction.apply(event);
    Statement installModules = new InstallAllModulesStatementFromProperties(statementMaker).apply(moduleProps);

    event.getStatementBuilder().addStatement(installModules);
    LOG.debug("Puppet finished installing modules for " + event.getInstanceTemplate());
  }
View Full Code Here

  public PuppetClusterActionHandler(String role) {
    this(role, new Function<ClusterActionEvent, StatementToInstallModule>() {

      @Override
      public StatementToInstallModule apply(ClusterActionEvent arg0) {
        return new StatementToInstallModule(arg0);
      }

    });
  }
View Full Code Here

  private void installAllKnownModules(ClusterActionEvent event) throws IOException {
    Map<String, String> moduleProps = ModulePropertiesFromConfiguration.INSTANCE.apply(event.getClusterSpec()
          .getConfigurationForKeysWithPrefix(PUPPET));

    StatementToInstallModule statementMaker = getStatementToInstallModuleForAction.apply(event);
    Statement installModules = new InstallAllModulesStatementFromProperties(statementMaker).apply(moduleProps);

    event.getStatementBuilder().addStatement(installModules);
    LOG.debug("Puppet finished installing modules for " + event.getInstanceTemplate());
  }
View Full Code Here

TOP

Related Classes of org.apache.whirr.service.puppet.functions.StatementToInstallModule$PrepareRemoteFileUrlUsingBlobCache

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.