Examples of ProgressMonitor


Examples of ariba.util.core.ProgressMonitor

        Confirmation.showConfirmation(requestContext(), _deleteAllConfId);
    }
   
    public void deleteAllAction ()
    {
        ProgressMonitor progressMonitor =
            ProgressMonitor.instance();
        int size = _posts.size();
        progressMonitor.prepare("Deleting %s of %s posts", size);
        for (int i = size - 1; i >= 0; i--) {
            progressMonitor.incrementCurrentCount();
            Post post = (Post)_posts.get(i);
            PostService.removePost(post);
            try {
                Thread.sleep(5000);
            } catch (InterruptedException e) {               
View Full Code Here

Examples of ariba.util.core.ProgressMonitor

    }

    public AWResponseGenerating progressCheckAction ()
    {
        String key = request().formValueForKey(ProgressCheckSessionKeyName);
        ProgressMonitor progress = ProgressMonitor.getInstanceForKey(key);
        AWApplication application = application();
        AWResponse newResponse = application.createResponse(request());
        if (progress != null) {
            newResponse.appendContent(HTML.escapeUnsafe(progress.generateMessage()));
        } else {
            // Special marker value for No Request in Progress
            newResponse.appendContent("--NO_REQUEST--");
        }
View Full Code Here

Examples of ca.eandb.util.progress.ProgressMonitor

  /**
   * Gets an available <code>ProgressMonitor</code> to use for the next task.
   * @return An available <code>ProgressMonitor</code>.
   */
  private synchronized ProgressMonitor getWorkerProgressMonitor() {
    ProgressMonitor monitor;
    if (numProgressMonitors < maxConcurrentWorkers) {
      String title = String.format("Worker (%d)", numProgressMonitors++);
      monitor = new PermanentProgressMonitor(monitorFactory.createProgressMonitor(title));
    } else {
      monitor = workerMonitorQueue.remove();
View Full Code Here

Examples of com.davidjc.ajaxfileupload.multipart.ProgressMonitor

  Object mon_obj = sessionMap.get(ProgressMonitor.SESSION_PROGRESS_MONITOR);

  JSONObject json = new JSONObject();
  if (mon_obj != null) {
      ProgressMonitor monitor = (ProgressMonitor) mon_obj;
      json.accumulate("bytesSent", "" + monitor.getBytesRead());
      json.accumulate("bytesTotal", "" + monitor.getBytesLength());
      json.accumulate("percentComplete", "" + monitor.percentComplete());
     
      if(!monitor.isStillProcessing() || monitor.isAborted()) {
    json.accumulate("aborted", true);
      }else {
    json.accumulate("aborted", false);
      }
        
View Full Code Here

Examples of com.pinterest.secor.tools.ProgressMonitor

    private static final Logger LOG = LoggerFactory.getLogger(ProgressMonitorMain.class);

    public static void main(String[] args) {
        try {
            SecorConfig config = SecorConfig.load();
            ProgressMonitor progressMonitor = new ProgressMonitor(config);
            progressMonitor.exportStats();
        } catch (Throwable t) {
            LOG.error("Progress monitor failed", t);
            System.exit(1);
        }
    }
View Full Code Here

Examples of com.puppetlabs.geppetto.forge.v3.ProgressMonitor

  private ProgressMonitor currentMonitor;

  @Override
  public void abortCurrentRequest() {
    ProgressMonitor monitor = currentMonitor;
    if(monitor != null)
      monitor.cancel();
    client.abortCurrentRequest();
  }
View Full Code Here

Examples of com.visitrend.ndvis.gui.api.ProgressMonitor

                parameters.getParameterOrder(order),
                parameters.getNumParametersOnX(), answerHolder);

        SimulationWorker simWorker = new SimulationWorker(simulator,
                answerHolder);
        ProgressMonitorINF mp = new ProgressMonitor(this, simWorker);
    }
View Full Code Here

Examples of de.esoco.j2me.util.ProgressMonitor

   * @param nCount   The number of nodes that will be processed
   * @param sMessage A message to display in the progress monitor or NULL
   */
  protected void initProgressMonitor(int nCount, String sMessage)
  {
    ProgressMonitor m = getProgressMonitor();

    if (m != null)
    {
      m.init(nCount, sMessage);
    }
  }
View Full Code Here

Examples of de.willuhn.util.ProgressMonitor

    // Warnungen ausgeben, falls vorhanden - BUGZILLA 899
    HBCIRetVal[] warnings = status.getWarnings();
    if (warnings != null && warnings.length > 0)
    {
      // Loggen
      ProgressMonitor monitor = session.getProgressMonitor();
      monitor.log(" ");
      for (HBCIRetVal val:warnings)
        monitor.log("  " + val.code + ": " + val.text);
      monitor.log(" ");
     
      // Auftrag informieren
      hasWarnings(warnings);
    }
    ////////////////////////////////////////////////////////////////////////////
View Full Code Here

Examples of devplugin.ProgressMonitor

  public JLabel getLabel() {
    return mInfoLabel;
  }

  public ProgressMonitor createProgressMonitor() {
    return new ProgressMonitor(){
      public void setMaximum(int maximum) {
        mProgressBar.setMaximum(maximum);
      }

      public void setValue(int value) {
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.