Examples of submitTask()


Examples of org.apache.flink.runtime.protocols.TaskOperationProtocol.submitTask()

  }
 
  public static TaskOperationProtocol getSimpleAcknowledgingTaskmanager() throws Exception {
    TaskOperationProtocol top = mock(TaskOperationProtocol.class);
   
    when(top.submitTask(any(TaskDeploymentDescriptor.class))).thenAnswer(new Answer<TaskOperationResult>() {
      @Override
      public TaskOperationResult answer(InvocationOnMock invocation) {
        final TaskDeploymentDescriptor tdd = (TaskDeploymentDescriptor) invocation.getArguments()[0];
        return new TaskOperationResult(tdd.getExecutionId(), true);
      }
View Full Code Here

Examples of org.corrib.treemaps.caching.CachingBookmarksService.submitTask()

          CachingBookmarksService cbs = new CachingBookmarksService(
              this.bookmarking, _posts, false);

          // System.out.println("Adding posts to db");
          FutureTask<?> taskBkmrk = cbs.submitTask();

          // wait for completition
          taskBkmrk.get();

          // Thread.sleep(5000);
View Full Code Here

Examples of org.corrib.treemaps.caching.CachingBookmarksService.submitTask()

          this.setMessage(_posts.size()+" bookmarks fetched. Adding to database...");
         
          CachingBookmarksService cbs = new CachingBookmarksService(this.bookmarking, _posts, false);
         
          //System.out.println("Adding posts to db");
          FutureTask<?> taskBkmrk = cbs.submitTask();
         
          //wait for completition
          taskBkmrk.get();
         
          //Thread.sleep(8000);
View Full Code Here

Examples of org.corrib.treemaps.caching.CachingDirectoriesService.submitTask()

        CachingDirectoriesService cds = new CachingDirectoriesService(
            this.bookmarking, TreeMappableTag.get(amap));

        // System.out.println("Adding dirs - starting");
        FutureTask<?> taskDir = cds.submitTask();
        // wait for completition
        taskDir.get();

        // just in case - in order to not get banned
        Thread.sleep(2000);
View Full Code Here

Examples of org.corrib.treemaps.caching.CachingDirectoriesService.submitTask()

        //System.out.println("created tags: "+amap.length);
       
        CachingDirectoriesService cds = new CachingDirectoriesService(this.bookmarking, TreeMappableTag.get(amap),false);
       
        //System.out.println("Adding dirs - starting");
        FutureTask<?> taskDir = cds.submitTask();
        //wait for completition
        taskDir.get();
       
        //just in case - in order to not get banned
        Thread.sleep(2000);
View Full Code Here

Examples of org.japura.task.executors.TaskExecutor.submitTask()

    allTasks.add(task);
  }

  TaskExecutor executor = Application.getTaskManager().getGlobalExecutor();

  executor.submitTask(tasks1.toArray(new TaskTest[0]));
  for (TaskTest task : tasks2) {
    executor.submitTask(task);
  }
  executor.submitTask(tasks3.toArray(new TaskTest[0]));
View Full Code Here

Examples of org.japura.task.executors.TaskExecutor.submitTask()

  TaskExecutor executor = Application.getTaskManager().getGlobalExecutor();

  executor.submitTask(tasks1.toArray(new TaskTest[0]));
  for (TaskTest task : tasks2) {
    executor.submitTask(task);
  }
  executor.submitTask(tasks3.toArray(new TaskTest[0]));

  waitForTaskExecutions();
View Full Code Here

Examples of org.japura.task.executors.TaskExecutor.submitTask()

  executor.submitTask(tasks1.toArray(new TaskTest[0]));
  for (TaskTest task : tasks2) {
    executor.submitTask(task);
  }
  executor.submitTask(tasks3.toArray(new TaskTest[0]));

  waitForTaskExecutions();

  test(canceledMethods, new ArrayList<TaskTest>());
  test(handleExceptionMethods, new ArrayList<TaskTest>());
View Full Code Here

Examples of org.neo4j.neoclipse.graphdb.GraphDbServiceManager.submitTask()

            return new Status( IStatus.ERROR, Activator.PLUGIN_ID, "There is no active Neo4j service." );
        }

        try
        {
            gsm.submitTask( new GraphCallable<Boolean>()
            {
                @Override
                public Boolean call( final GraphDatabaseService graphDb )
                {
                    final Iterable<PropertyContainer> matches = getMatchingNodesFromIndices( monitor, graphDb );
View Full Code Here

Examples of org.neo4j.neoclipse.graphdb.GraphDbServiceManager.submitTask()

    {
        GraphDbServiceManager gsm = Activator.getDefault()
                .getGraphDbServiceManager();
        try
        {
            return gsm.submitTask( new Callable<Color>()
            {
                @Override
                public Color call() throws Exception
                {
                    Relationship randomRel = null;
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.