| | |
| | | * Gitblit instance to pull the repositories and configuration from another
|
| | | * Gitblit instance. This is a backup operation and can be considered something
|
| | | * like svn-sync.
|
| | | * |
| | | *
|
| | | */
|
| | | public class FederationModel implements Serializable, Comparable<FederationModel> {
|
| | |
|
| | |
| | | public String frequency;
|
| | |
|
| | | public String folder;
|
| | | |
| | |
|
| | | public boolean bare;
|
| | |
|
| | | public boolean mirror;
|
| | |
| | |
|
| | | /**
|
| | | * The constructor for a remote server configuration.
|
| | | * |
| | | *
|
| | | * @param serverName
|
| | | */
|
| | | public FederationModel(String serverName) {
|
| | |
| | | /**
|
| | | * Updates the pull status of a particular repository in this federation
|
| | | * registration.
|
| | | * |
| | | *
|
| | | * @param repository
|
| | | * @param status
|
| | | */
|
| | |
| | | /**
|
| | | * Iterates over the current pull results and returns the lowest pull
|
| | | * status.
|
| | | * |
| | | *
|
| | | * @return the lowest pull status of the registration
|
| | | */
|
| | | public FederationPullStatus getLowestStatus() {
|
| | |
| | | /**
|
| | | * Returns true if this registration represents the result data sent by a
|
| | | * pulling Gitblit instance.
|
| | | * |
| | | *
|
| | | * @return true, if this is result data
|
| | | */
|
| | | public boolean isResultData() {
|
| | |
| | |
|
| | | /**
|
| | | * Class that encapsulates a point-in-time pull result.
|
| | | * |
| | | *
|
| | | */
|
| | | public static class RepositoryStatus implements Serializable, Comparable<RepositoryStatus> {
|
| | |
|