diff options
author | James Moger <james.moger@gitblit.com> | 2012-10-28 13:27:26 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2012-10-28 13:27:26 -0400 |
commit | e92c6d230b3a350749fdb9fa2150bb1773260b8c (patch) | |
tree | 135b01ea4c8174f5e79725dd2b99d72b01cc50f1 /src/com/gitblit/Constants.java | |
parent | 5b831a0981491cabbbdbb02dba237308947a5e7d (diff) | |
download | gitblit-e92c6d230b3a350749fdb9fa2150bb1773260b8c.tar.gz gitblit-e92c6d230b3a350749fdb9fa2150bb1773260b8c.zip |
Experimental JGit-based GC Executor
Diffstat (limited to 'src/com/gitblit/Constants.java')
-rw-r--r-- | src/com/gitblit/Constants.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/gitblit/Constants.java b/src/com/gitblit/Constants.java index 33cf2873..f74317ea 100644 --- a/src/com/gitblit/Constants.java +++ b/src/com/gitblit/Constants.java @@ -86,6 +86,8 @@ public class Constants { public static final String CONFIG_CUSTOM_FIELDS = "customFields";
+ public static final String ISO8601 = "yyyy-MM-dd'T'HH:mm:ssZ";
+
public static String getGitBlitVersion() {
return NAME + " v" + VERSION;
}
@@ -384,6 +386,14 @@ public class Constants { REPOSITORY, USER, TEAM;
}
+ public static enum GCStatus {
+ READY, COLLECTING;
+
+ public boolean exceeds(GCStatus s) {
+ return ordinal() > s.ordinal();
+ }
+ }
+
@Documented
@Retention(RetentionPolicy.RUNTIME)
public @interface Unused {
|