Examples of endTask()


Examples of org.apache.marmotta.platform.core.api.task.Task.endTask()

                response = delegate.execute(target, request);
            } catch (ClientProtocolException cpe) {
                task.endTask();
                throw cpe;
            } catch (IOException io) {
                task.endTask();
                throw io;
            } finally {
                lock.readLock().unlock();
            }
View Full Code Here

Examples of org.apache.marmotta.platform.core.api.task.Task.endTask()

            final HttpResponse response;
            lock.readLock().lock();
            try {
                response = delegate.execute(target, request, context);
            } catch (ClientProtocolException cpe) {
                task.endTask();
                throw cpe;
            } catch (IOException io) {
                task.endTask();
                throw io;
            } finally {
View Full Code Here

Examples of org.apache.marmotta.platform.core.api.task.Task.endTask()

                response = delegate.execute(target, request, context);
            } catch (ClientProtocolException cpe) {
                task.endTask();
                throw cpe;
            } catch (IOException io) {
                task.endTask();
                throw io;
            } finally {
                lock.readLock().unlock();
            }
View Full Code Here

Examples of org.apache.marmotta.platform.core.api.task.Task.endTask()

                if (t.equals(task)) {
                    log.debug("Ending task {}.{}", t.getGroup(), t.getName());
                    break;
                } else {
                    log.debug("Ending task {}.{} because it's a sub-task", t.getGroup(), t.getName());
                    t.endTask();
                }
            }
            if (!stack.isEmpty()) {
                stack.peek().subTaskEnded();
            }
View Full Code Here

Examples of org.apache.marmotta.platform.core.api.task.Task.endTask()

                    }
                } catch (InterruptedException e) {
                    // ignore
                }
            }
            task.endTask();
            log.trace("Watchdog: shutdown");
        }

        public void shutdown() {
            running = false;
View Full Code Here

Examples of org.eclipse.jgit.lib.ProgressMonitor.endTask()

    updating.beginTask(JGitText.get().updatingReferences, toApply.size());
    for (ReceiveCommand cmd : toApply) {
      updating.update(1);
      execute(cmd);
    }
    updating.endTask();
  }

  private void execute(final ReceiveCommand cmd) {
    try {
      final RefUpdate ru = db.updateRef(cmd.getRefName());
View Full Code Here

Examples of org.eclipse.jgit.lib.ProgressMonitor.endTask()

      }

      if (o instanceof RevBlob && !db.hasObject(o))
        throw new MissingObjectException(o, Constants.TYPE_BLOB);
    }
    checking.endTask();

    if (baseObjects != null) {
      for (ObjectId id : baseObjects) {
        o = ow.parseAny(id);
        if (!o.has(RevFlag.UNINTERESTING))
View Full Code Here

Examples of org.eclipse.jgit.lib.ProgressMonitor.endTask()

    updating.beginTask(JGitText.get().updatingReferences, toApply.size());
    for (ReceiveCommand cmd : toApply) {
      updating.update(1);
      cmd.execute(this);
    }
    updating.endTask();
  }

  /**
   * Send a status report.
   *
 
View Full Code Here

Examples of org.objectweb.speedo.j2eedo.common.TraceTime.endTask()

                      + e.getMessage());
                }
              }
            }
          }
          traceTime.endTask();
          logger.log(BasicLevel.INFO, "End of thread loops : " + traceTime.report());
        }
      });
    }
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.