Package com.gemstone.gemfire.cache.execute

Examples of com.gemstone.gemfire.cache.execute.Execution


    return this.<T>executeAndExtract(functionExecution);   
  }

  @Override
  public <T> T execute(GemfireFunctionCallback<T> callback) {
    Execution execution = getFunctionExecution().getExecution();
    return callback.doInGemfire(execution);
  }
View Full Code Here


    return execute(true);
  }

  @SuppressWarnings("unchecked")
  <T> Iterable<T> execute(Boolean returnResult) {
    Execution execution = this.getExecution();
    if (getKeys() != null) {
      execution = execution.withFilter(getKeys());
    }
    if (getCollector() != null) {
      execution = execution.withCollector(getCollector());
    }

    ResultCollector<?, ?> resultCollector = null;

    execution = execution.withArgs(getArgs());

    if (isRegisteredFunction()) {
      resultCollector = (ResultCollector<?, ?>) execution.execute(functionId);
    } else {
      resultCollector = (ResultCollector<?, ?>) execution.execute(function);
      if (!function.hasResult()) {
        return (Iterable<T>) null;
      }
    }
   
View Full Code Here

  /* (non-Javadoc)
   * @see org.springframework.data.gemfire.function.FunctionExecution#getExecution()
   */
  @Override
  protected Execution getExecution() {
    Execution execution = FunctionService.onRegion(region);
    if (!CollectionUtils.isEmpty(this.keys) ) {
      execution = execution.withFilter(keys);
    }
    return execution;
  }
View Full Code Here

TOP

Related Classes of com.gemstone.gemfire.cache.execute.Execution

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.