]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1293] align the documented content model to the implementation for the statistic...
authorBrett Porter <brett@apache.org>
Thu, 17 Dec 2009 02:00:27 +0000 (02:00 +0000)
committerBrett Porter <brett@apache.org>
Thu, 17 Dec 2009 02:00:27 +0000 (02:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@891520 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/metadata/content-model.txt
archiva-modules/plugins/repository-statistics/src/main/java/org/apache/archiva/metadata/repository/stats/RepositoryStatistics.java
archiva-modules/plugins/repository-statistics/src/test/java/org/apache/archiva/metadata/repository/stats/RepositoryStatisticsManagerTest.java

index 99313046696aedf67fcc62fcf173944cada6bfa0..2273e77b365b0bb414eeca1f4c742d940ea8f58e 100644 (file)
@@ -127,29 +127,25 @@ The following is the intended content model for the metadata content repository:
             `-- 2009/
                 `-- 12/
                     |-- 02/
-                    |   `-- 23/
-                    |       `-- 47/
-                    |           `-- 00/
-                    |               |-- scanEndTime=
-                    |               |-- scanStartTime=
-                    |               |-- totalArtifactCount=
-                    |               |-- totalArtifactFileSize=
-                    |               |-- totalFileCount=
-                    |               |-- totalGroupCount=
-                    |               `-- totalProjectCount=
+                    |   `-- 234700.000/
+                    |       |-- scanEndTime=
+                    |       |-- scanStartTime=
+                    |       |-- totalArtifactCount=
+                    |       |-- totalArtifactFileSize=
+                    |       |-- totalFileCount=
+                    |       |-- totalGroupCount=
+                    |       `-- totalProjectCount=
                     `-- 03/
-                        `-- 09/
-                            `-- 00/
-                                `-- 00/
-                                    |-- scanEndTime=
-                                    |-- scanStartTime=
-                                    |-- totalArtifactCount=
-                                    |-- totalArtifactFileSize=
-                                    |-- totalFileCount=
-                                    |-- totalGroupCount=
-                                    `-- totalProjectCount=
-
-(To update - run "tree --dirstfirst -F" on the unpacked content-model.zip from the sandbox)
+                        `-- 090000.000/
+                            |-- scanEndTime=
+                            |-- scanStartTime=
+                            |-- totalArtifactCount=
+                            |-- totalArtifactFileSize=
+                            |-- totalFileCount=
+                            |-- totalGroupCount=
+                            `-- totalProjectCount=
+
+(To update - run "tree --dirsfirst -F" on the unpacked content-model.zip from the sandbox)
 
 Notes:
 
index 735818ce5bcfea215df162ed953a456898acef17..79678ac3db6fa672e0824a3571f92ddc2678d473 100644 (file)
@@ -48,7 +48,7 @@ public class RepositoryStatistics
 
     public static String FACET_ID = "org.apache.archiva.metadata.repository.stats";
 
-    static final DateFormat SCAN_TIMESTAMP = new SimpleDateFormat( "yyyyMMdd.HHmmss.SSS" );
+    static final DateFormat SCAN_TIMESTAMP = new SimpleDateFormat( "yyyy/MM/dd/HHmmss.SSS" );
 
     private Map<String, Long> totalCountForType = new HashMap<String, Long>();
 
index e4da83773885b8ac8dd517ece56ac04ea2711d2d..09ec07907fddba6dcae6696b96f1c24bc3ac9f5b 100644 (file)
@@ -48,9 +48,9 @@ public class RepositoryStatisticsManagerTest
 
     private MetadataRepository metadataRepository;
 
-    private static final String FIRST_TEST_SCAN = "20091201.123456.789";
+    private static final String FIRST_TEST_SCAN = "2009/12/01/123456.789";
 
-    private static final String SECOND_TEST_SCAN = "20091202.012345.678";
+    private static final String SECOND_TEST_SCAN = "2009/12/02/012345.678";
 
     private Map<String, RepositoryStatistics> statsCreated = new LinkedHashMap<String, RepositoryStatistics>();