From 4aafd4362caf198bdea97d2fdf2957aa5c345465 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Tue, 27 Sep 2011 08:22:26 -0400 Subject: [PATCH] Poke test during proposal phase. --- src/com/gitblit/Constants.java | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/src/com/gitblit/Constants.java b/src/com/gitblit/Constants.java index b52f055..befa5fe 100644 --- a/src/com/gitblit/Constants.java +++ b/src/com/gitblit/Constants.java @@ -115,7 +115,7 @@ * Enumeration representing the types of federation requests. */ public static enum FederationRequest { - PROPOSAL, PULL_REPOSITORIES, PULL_USERS, PULL_SETTINGS, STATUS; + POKE, PROPOSAL, PULL_REPOSITORIES, PULL_USERS, PULL_SETTINGS, STATUS; public static FederationRequest fromName(String name) { for (FederationRequest type : values()) { @@ -181,4 +181,16 @@ } } + /** + * Enumeration representing the possible results of federation proposal + * requests. + */ + public static enum FederationProposalResult { + ERROR, FEDERATION_DISABLED, MISSING_DATA, NO_PROPOSALS, NO_POKE, ACCEPTED; + + @Override + public String toString() { + return name(); + } + } } -- Gitblit v1.9.1