Examples of gc()


Examples of org.eclipse.jgit.api.Git.gc()

        }

        logger.debug(MessageFormat.format("GCExecutor locked idle repository {0}", repositoryName));

        Git git = new Git(repository);
        GarbageCollectCommand gc = git.gc();
        Properties stats = gc.getStatistics();

        // determine if this is a scheduled GC
        Calendar cal = Calendar.getInstance();
        cal.setTime(model.lastGC);
View Full Code Here

Examples of org.eclipse.jgit.api.Git.gc()

  private boolean aggressive;

  @Override
  protected void run() throws Exception {
    Git git = Git.wrap(db);
    git.gc().setAggressive(aggressive)
        .setProgressMonitor(new TextProgressMonitor()).call();
  }
}
View Full Code Here

Examples of org.eclipse.jgit.api.Git.gc()

    Repository repo = (Repository) getElement()
        .getAdapter(Repository.class);
    if (repo == null)
      return table;
    Git git = new Git(repo);
    GarbageCollectCommand gc = git.gc();
    try {
      Properties stats = gc.getStatistics();

      table.setLinesVisible(true);
      table.setHeaderVisible(true);
View Full Code Here

Examples of org.eclipse.jgit.api.Git.gc()

  public void execute(IProgressMonitor monitor) throws CoreException {
    Git git = new Git(repository);
    EclipseGitProgressTransformer pm = new EclipseGitProgressTransformer(
        monitor);
    try {
      git.gc().setProgressMonitor(pm).call();
    } catch (GitAPIException e) {
      throw new CoreException(new Status(IStatus.ERROR,
          Activator.getPluginId(), e.getMessage(), e));
    }
  }
View Full Code Here

Examples of org.eclipse.jgit.internal.storage.file.GC.gc()

class Gc extends TextBuiltin {
  @Override
  protected void run() throws Exception {
    GC gc = new GC((FileRepository) db);
    gc.setProgressMonitor(new TextProgressMonitor());
    gc.gc();
  }
}
View Full Code Here

Examples of org.eclipse.jgit.internal.storage.file.GC.gc()

    gc.setProgressMonitor(monitor);
    if (this.expire != null)
      gc.setExpire(expire);

    try {
      gc.gc();
      return toProperties(gc.getStatistics());
    } catch (IOException e) {
      throw new JGitInternalException(JGitText.get().gcFailed, e);
    } catch (ParseException e) {
      throw new JGitInternalException(JGitText.get().gcFailed, e);
View Full Code Here

Examples of org.eclipse.jgit.internal.storage.file.GC.gc()

    gc.setProgressMonitor(monitor);
    if (this.expire != null)
      gc.setExpire(expire);

    try {
      gc.gc();
      return toProperties(gc.getStatistics());
    } catch (IOException e) {
      throw new JGitInternalException(JGitText.get().gcFailed, e);
    } catch (ParseException e) {
      throw new JGitInternalException(JGitText.get().gcFailed, e);
View Full Code Here

Examples of org.eclipse.jgit.storage.file.GC.gc()

    gc.setProgressMonitor(monitor);
    if (this.expire != null)
      gc.setExpire(expire);

    try {
      gc.gc();
      return toProperties(gc.getStatistics());
    } catch (IOException e) {
      throw new JGitInternalException(JGitText.get().gcFailed, e);
    } catch (ParseException e) {
      throw new JGitInternalException(JGitText.get().gcFailed, e);
View Full Code Here

Examples of org.elasticsearch.monitor.jvm.JvmStats.gc()

        }

        private void monitorLongGc() {
            JvmStats currentJvmStats = jvmStats();

            for (int i = 0; i < currentJvmStats.gc().collectors().length; i++) {
                GarbageCollector gc = currentJvmStats.gc().collectors()[i];
                if (gc.lastGc() != null && lastJvmStats.gc.collectors()[i].lastGc() != null) {
                    GarbageCollector.LastGc lastGc = gc.lastGc();
                    if (lastGc.startTime == lastJvmStats.gc.collectors()[i].lastGc().startTime()) {
                        // we already handled this one...
View Full Code Here

Examples of org.elasticsearch.monitor.jvm.JvmStats.gc()

        private void monitorLongGc() {
            JvmStats currentJvmStats = jvmStats();

            for (int i = 0; i < currentJvmStats.gc().collectors().length; i++) {
                GarbageCollector gc = currentJvmStats.gc().collectors()[i];
                if (gc.lastGc() != null && lastJvmStats.gc.collectors()[i].lastGc() != null) {
                    GarbageCollector.LastGc lastGc = gc.lastGc();
                    if (lastGc.startTime == lastJvmStats.gc.collectors()[i].lastGc().startTime()) {
                        // we already handled this one...
                        continue;
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.