Package com.gitblit.utils

Examples of com.gitblit.utils.IdGenerator


  private final WorkQueue.Executor executor;

  public BaseCommand() {
    task = Atomics.newReference();
    IdGenerator gen = new IdGenerator();
    WorkQueue w = new WorkQueue(gen);
    this.executor = w.getDefaultQueue();
  }
View Full Code Here


  protected void configureSshDaemon() {
    int port = settings.getInteger(Keys.git.sshPort, 0);
    String bindInterface = settings.getString(Keys.git.sshBindInterface, "localhost");
    if (port > 0) {
      try {
        sshDaemon = new SshDaemon(gitblit, new IdGenerator());
        sshDaemon.start();
      } catch (IOException e) {
        sshDaemon = null;
        logger.error(MessageFormat.format("Failed to start SSH daemon on {0}:{1,number,0}", bindInterface, port), e);
      }
View Full Code Here

  public ServicesManager(IGitblit gitblit) {
    this.settings = gitblit.getSettings();
    this.gitblit = gitblit;
    int defaultThreadPoolSize = settings.getInteger(Keys.execution.defaultThreadPoolSize, 1);
    this.idGenerator = new IdGenerator();
    this.workQueue = new WorkQueue(idGenerator, defaultThreadPoolSize);
  }
View Full Code Here

TOP

Related Classes of com.gitblit.utils.IdGenerator

Copyright © 2018 www.massapicom. 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.