Examples of MirrorService


Examples of com.gitblit.service.MirrorService

      logger.info("Garbage Collector (GC) is disabled.");
    }
  }

  protected void configureMirrorExecutor() {
    mirrorExecutor = new MirrorService(settings, this);
    if (mirrorExecutor.isReady()) {
      int mins = TimeUtils.convertFrequencyToMinutes(settings.getString(Keys.git.mirrorPeriod, "30 mins"));
      if (mins < 5) {
        mins = 5;
      }
View Full Code Here

Examples of com.gitblit.service.MirrorService

      logger.info("Garbage Collector (GC) is disabled.");
    }
  }

  protected void configureMirrorExecutor() {
    mirrorExecutor = new MirrorService(settings, this);
    if (mirrorExecutor.isReady()) {
      int mins = TimeUtils.convertFrequencyToMinutes(settings.getString(Keys.git.mirrorPeriod, "30 mins"), 5);
      int delay = 1;
      scheduledExecutor.scheduleAtFixedRate(mirrorExecutor, delay, mins,  TimeUnit.MINUTES);
      logger.info("Mirror service will fetch updates every {} minutes.", mins);
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.