Examples of execute()


Examples of org.apache.webdav.lib.methods.PropFindMethod.execute()

        props.add(new PropertyName(namespace, name));
        PropFindMethod propfindMethod = new PropFindMethod(url, 0, props.elements());
        propfindMethod.setDoAuthentication(true);
        HttpState httpState = new HttpState();
        httpState.setCredentials(null, host, credentials);
        int state = propfindMethod.execute(httpState, new HttpConnection(host, port, protocol));
        if ( state != HttpStatus.SC_MULTI_STATUS ) {
            throw new IOException("Received status code "+state+" when doing PROPFIND on URI="+url);
        }
        Enumeration propertyEnumeration = propfindMethod.getResponseProperties(url);
        if ( propertyEnumeration.hasMoreElements() ) {
View Full Code Here

Examples of org.apache.webdav.lib.methods.PropPatchMethod.execute()

        PropPatchMethod proppatchMethod = new PropPatchMethod(domain+uri.toString());
        proppatchMethod.setDoAuthentication(true);
        HttpState httpState = new HttpState();
        httpState.setCredentials(null, host, credentials);
        proppatchMethod.addPropertyToSet(name, value, "S", namespace);
        int state = proppatchMethod.execute(httpState, new HttpConnection(host, port, protocol));
        if ( state != HttpStatus.SC_MULTI_STATUS ) {
          throw new IOException("Received status code "+state+" when doing PROPPATH on URI="+uri);
        }
    }
View Full Code Here

Examples of org.apache.webdav.lib.methods.SearchMethod.execute()

            }
            optionsMethod.execute(state, conn);
            if(!optionsMethod.isAllowed("SEARCH")) {
                throw new SAXException("The server don't support the SEARCH method");
            }
            searchMethod.execute(state, conn);
            Enumeration enumeration = searchMethod.getAllResponseURLs();
            this.contentHandler.startElement(
                DASL_QUERY_NS,
                RESULT_ROOT_TAG,
                PREFIX + ":" + RESULT_ROOT_TAG,
View Full Code Here

Examples of org.apache.webdav.ui.lib.methods.SPHeadMethod.execute()

    webdavClient.setCredentials(credentials);
  }

  protected void validateClient() throws Exception {
    SPHeadMethod headMethod = new SPHeadMethod(getWebdavClient(), rootPath);
    headMethod.execute();
  }

  protected void resetButton_actionPerformed(ActionEvent e) {
    resetTextFields();
  }
View Full Code Here

Examples of org.apache.whirr.actions.BootstrapClusterAction.execute()

  /**
   * Provision the hardware resources needed for running services
   */
  public Cluster bootstrapCluster(ClusterSpec clusterSpec) throws IOException, InterruptedException {
    BootstrapClusterAction bootstrapper = new BootstrapClusterAction(getCompute(), handlerMapFactory.create());
    Cluster cluster = bootstrapper.execute(clusterSpec, null);
    getClusterStateStore(clusterSpec).save(cluster);
    return cluster;
  }

  /**
 
View Full Code Here

Examples of org.apache.whirr.actions.ByonClusterAction.execute()

    stopServices(clusterSpec); // for BYON only
    LoadingCache<String, ClusterActionHandler> handlerMap = handlerMapFactory
        .create();
    ClusterAction destroyer = new ByonClusterAction(DESTROY_ACTION,
        getCompute(), handlerMap);
    destroyer.execute(clusterSpec, null);
  }
 
  /**
   * Provisions the hardware for a BYON cluster.
   */
 
View Full Code Here

Examples of org.apache.whirr.actions.CleanupClusterAction.execute()

  @Beta
  public Cluster cleanupCluster(ClusterSpec clusterSpec, Cluster cluster)
    throws IOException, InterruptedException {
    CleanupClusterAction cleanner = new CleanupClusterAction(getCompute(), handlerMapFactory.create());
    return cleanner.execute(clusterSpec, cluster);
  }
 
  /**
   * Stop the cluster and destroy all resources associated with it.
   *
 
View Full Code Here

Examples of org.apache.whirr.actions.ConfigureClusterAction.execute()

    BootstrapClusterAction bootstrapper = new BootstrapClusterAction(getCompute(), handlerMap);
    Cluster cluster = bootstrapper.execute(clusterSpec, null);

    ConfigureClusterAction configurer = new ConfigureClusterAction(getCompute(), handlerMap);
    cluster = configurer.execute(clusterSpec, cluster);

    stateStoreFactory.create(clusterSpec).save(cluster);

    return cluster;
  }
View Full Code Here

Examples of org.apache.whirr.actions.ConfigureServicesAction.execute()

  @Beta
  public Cluster configureServices(ClusterSpec clusterSpec, Cluster cluster, Set<String> targetRoles,
        Set<String> targetInstanceIds) throws IOException, InterruptedException {
    ConfigureServicesAction configurer = new ConfigureServicesAction(getCompute(), handlerMapFactory.create(),
        targetRoles, targetInstanceIds);
    return configurer.execute(clusterSpec, cluster);
  }

  /**
   * Start the cluster services
   */
 
View Full Code Here

Examples of org.apache.whirr.actions.DestroyClusterAction.execute()

  }

  public void destroyCluster(ClusterSpec clusterSpec, Cluster cluster)
    throws IOException, InterruptedException {
    DestroyClusterAction destroyer = new DestroyClusterAction(getCompute(), handlerMapFactory.create());
    destroyer.execute(clusterSpec, cluster);
  }

  public void destroyInstance(ClusterSpec clusterSpec, String instanceId) throws IOException {
    LOG.info("Destroying instance {}", instanceId);
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.