Examples of waitForCompletion()


Examples of org.elasticsearch.action.admin.cluster.snapshots.create.CreateSnapshotRequest.waitForCompletion()

    public void handleRequest(final RestRequest request, final RestChannel channel, final Client client) {
        CreateSnapshotRequest createSnapshotRequest = createSnapshotRequest(request.param("repository"), request.param("snapshot"));
        createSnapshotRequest.listenerThreaded(false);
        createSnapshotRequest.source(request.content().toUtf8());
        createSnapshotRequest.masterNodeTimeout(request.paramAsTime("master_timeout", createSnapshotRequest.masterNodeTimeout()));
        createSnapshotRequest.waitForCompletion(request.paramAsBoolean("wait_for_completion", false));
        client.admin().cluster().createSnapshot(createSnapshotRequest, new RestToXContentListener<CreateSnapshotResponse>(channel));
    }
}
View Full Code Here

Examples of org.elasticsearch.action.admin.cluster.snapshots.restore.RestoreSnapshotRequest.waitForCompletion()

    @Override
    public void handleRequest(final RestRequest request, final RestChannel channel, final Client client) {
        RestoreSnapshotRequest restoreSnapshotRequest = restoreSnapshotRequest(request.param("repository"), request.param("snapshot"));
        restoreSnapshotRequest.masterNodeTimeout(request.paramAsTime("master_timeout", restoreSnapshotRequest.masterNodeTimeout()));
        restoreSnapshotRequest.waitForCompletion(request.paramAsBoolean("wait_for_completion", false));
        restoreSnapshotRequest.source(request.content().toUtf8());
        client.admin().cluster().restoreSnapshot(restoreSnapshotRequest, new RestToXContentListener<RestoreSnapshotResponse>(channel));
    }
}
View Full Code Here

Examples of org.openstreetmap.osmosis.core.pipeline.common.Pipeline.waitForCompletion()

   
    LOG.info("Launching pipeline execution.");
    pipeline.execute();
   
    LOG.info("Pipeline executing, waiting for completion.");
    pipeline.waitForCompletion();
   
    LOG.info("Pipeline complete.");
   
    finishTime = System.currentTimeMillis();
   
View Full Code Here

Examples of org.virtualbox_4_0.IProgress.waitForCompletion()

      IVirtualBox vbox = vboxMgr.getVBox();
      ISession s = vboxMgr.getSessionObject();
      IMachine machine = this.importAppliance(vbox, s);
      /* TODO Headless */
      IProgress p = machine.launchVMProcess(s, "gui", "");
      p.waitForCompletion(-1);
      Thread.sleep(3000);
      IConsole c = s.getConsole();
      String opt = "microcore home=hda1\n";
      send(opt, c.getKeyboard());
      Client oc = this.getOutpost(s, vbox);
View Full Code Here

Examples of org.virtualbox_4_2.IProgress.waitForCompletion()

   public ISession ensureMachineHasPowerDown(String vmName) {
      ISession session = machineUtils.sharedLockMachineAndApplyToSession(vmName, new Function<ISession, ISession>() {
         @Override
         public ISession apply(ISession session) {
            IProgress powerdownIProgress = session.getConsole().powerDown();
            powerdownIProgress.waitForCompletion(-1);
            return session;
         }
      });
      return checkNotNull(session, "session");
   }
View Full Code Here

Examples of org.virtualbox_4_2.IProgress.waitForCompletion()

      assertTrue(mediumDeleted);
   }

   void deleteMediumAndBlockUntilComplete(IMedium medium) {
      final IProgress progress = medium.deleteStorage();
      progress.waitForCompletion(-1);
   }

}
View Full Code Here

Examples of org.w3c.tools.widgets.PasswordPopup.waitForCompletion()

      popup.setSize(new Dimension(300, 200));
      popup.setLayout(new BorderLayout());
      popup.add("Center", pp);
      popup.show();
      pp.init();
      while(!pp.waitForCompletion());
      popup.setVisible(false);
      if (pp.canceled())
    return null;
      Base64Encoder encoder =
    new Base64Encoder(pp.getUserName()+":"+pp.getPassword());
View Full Code Here

Examples of ptolemy.kernel.util.ChangeRequest.waitForCompletion()

                finalLibraryEffigy.setContainer(directory);
            }
        };

        libraryContainer.requestChange(request);
        request.waitForCompletion();
    }

}
View Full Code Here

Examples of ptolemy.moml.MoMLChangeRequest.waitForCompletion()

            request.setUndoable(true);
            toplevel.requestChange(request);

            try {
                request.waitForCompletion();
            } catch (Exception ex) {
                ex.printStackTrace();
                throw new GraphException(ex);
            }
        }
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.