Package com.gitblit.Constants

Examples of com.gitblit.Constants.FederationPullStatus.ordinal()


    if (results.size() == 0) {
      return FederationPullStatus.PENDING;
    }
    FederationPullStatus status = FederationPullStatus.MIRRORED;
    for (FederationPullStatus result : results.values()) {
      if (result.ordinal() < status.ordinal()) {
        status = result;
      }
    }
    return status;
  }
View Full Code Here


        Date now = new Date(System.currentTimeMillis());
        pull(registration);
        sendStatusAcknowledgment(registration);
        registration.lastPull = now;
        FederationPullStatus is = registration.getLowestStatus();
        if (is.ordinal() < was.ordinal()) {
          // the status for this registration has downgraded
          logger.warn("Federation pull status of {0} is now {1}", registration.name,
              is.name());
          if (registration.notifyOnError) {
            String message = "Federation pull of " + registration.name + " @ "
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.