Package com.griddynamics.gridkit.coherence.patterns.benchmark

Examples of com.griddynamics.gridkit.coherence.patterns.benchmark.SimpleContext


   
    Identifier[] contexts = new Identifier[benchmarkParams.getContextCount()];
   
    for(int i = 0; i != benchmarkParams.getContextCount(); ++i)
    {
      contexts[i] = facade.registerContext("ctx-" + i, new SimpleContext("ctx-" + i));
    }
   
    Map<Integer, Integer> workerIDs = new HashMap<Integer, Integer>();
   
    int i = 0;
View Full Code Here


  @Override
  public void execute(ExecutionEnvironment<SimpleContext> executionEnvironment)
  {
    startExecution();
    // Invoke execution method.
    SimpleContext ctx = executionEnvironment.getContext();
    ctx.touch();
    executionEnvironment.setContext(ctx);
    // Save time information
    finishExecution();
  }
View Full Code Here

  {
    Identifier[] contexts = new Identifier[benchmarkParams.getContextsCount()];
   
    for(int i=0; i < contexts.length; ++i)
    {
      contexts[i] = facade.registerContext("ctx-" + i, new SimpleContext("ctx-" + i));
    }
   
    invocableWorker = new FunctorBenchmarkWorker(benchmarkParams, contexts);
  }
View Full Code Here

  @Override
  public CommandExecutionMark execute(ExecutionEnvironment<SimpleContext> executionEnvironment)
  {
    startExecution();
   
    SimpleContext context = executionEnvironment.getContext();
    context.touch();
    executionEnvironment.setContext(context);
   
    return finishExecution();
  }
View Full Code Here

   * {@inheritDoc}
   */
  @Override
  public void execute(ExecutionEnvironment<SimpleContext> executionEnvironment) {   
    // Invoke execution method.
    SimpleContext ctx = executionEnvironment.getContext();
    ctx.touch();
    executionEnvironment.setContext(ctx);
    // Save time information
   
    //TODO restore !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    //BenchmarkSupport.reportExecution(reportBuffer, new ExecMark(execId, submitMs, submitNs));
View Full Code Here

TOP

Related Classes of com.griddynamics.gridkit.coherence.patterns.benchmark.SimpleContext

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.