]> source.dussan.org Git - sonarqube.git/commit
SONAR-249: extract persistence layer from data index + dump measures at the end of...
authorsimonbrandhof <simon.brandhof@gmail.com>
Fri, 26 Nov 2010 06:56:17 +0000 (06:56 +0000)
committersimonbrandhof <simon.brandhof@gmail.com>
Fri, 26 Nov 2010 06:56:17 +0000 (06:56 +0000)
commit19f841e8c13c6dc8ef2f6a68a5751fa5fba26062
tree9d49148613eb125d28d69984ee76331f867b18c5
parent0b63c5a59ac2f160c5c7bc35d7f423f2a944e8ac
SONAR-249: extract persistence layer from data index + dump measures at the end of the batch instead of persisting them on the fly
108 files changed:
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/TendencyDecorator.java
sonar-batch/src/main/java/org/sonar/batch/Batch.java
sonar-batch/src/main/java/org/sonar/batch/CoreJob.java [deleted file]
sonar-batch/src/main/java/org/sonar/batch/CoreJobs.java [deleted file]
sonar-batch/src/main/java/org/sonar/batch/DecoratorsExecutor.java [deleted file]
sonar-batch/src/main/java/org/sonar/batch/DefaultDecoratorContext.java
sonar-batch/src/main/java/org/sonar/batch/DefaultMetricFinder.java [new file with mode: 0644]
sonar-batch/src/main/java/org/sonar/batch/DefaultSensorContext.java
sonar-batch/src/main/java/org/sonar/batch/DefaultTimeMachine.java
sonar-batch/src/main/java/org/sonar/batch/FinalizeSnapshotsJob.java [deleted file]
sonar-batch/src/main/java/org/sonar/batch/MavenPhaseExecutor.java [deleted file]
sonar-batch/src/main/java/org/sonar/batch/MavenPluginsConfigurator.java [deleted file]
sonar-batch/src/main/java/org/sonar/batch/PostJobsExecutor.java [deleted file]
sonar-batch/src/main/java/org/sonar/batch/ProjectBatch.java
sonar-batch/src/main/java/org/sonar/batch/SensorsExecutor.java [deleted file]
sonar-batch/src/main/java/org/sonar/batch/ViolationsDao.java [deleted file]
sonar-batch/src/main/java/org/sonar/batch/index/Bucket.java [new file with mode: 0644]
sonar-batch/src/main/java/org/sonar/batch/index/DefaultIndex.java [new file with mode: 0644]
sonar-batch/src/main/java/org/sonar/batch/index/DefaultPersistenceManager.java [new file with mode: 0644]
sonar-batch/src/main/java/org/sonar/batch/index/DependencyPersister.java [new file with mode: 0644]
sonar-batch/src/main/java/org/sonar/batch/index/EventPersister.java [new file with mode: 0644]
sonar-batch/src/main/java/org/sonar/batch/index/LinkPersister.java [new file with mode: 0644]
sonar-batch/src/main/java/org/sonar/batch/index/MeasurePersister.java [new file with mode: 0644]
sonar-batch/src/main/java/org/sonar/batch/index/PersistenceManager.java [new file with mode: 0644]
sonar-batch/src/main/java/org/sonar/batch/index/ResourcePersister.java [new file with mode: 0644]
sonar-batch/src/main/java/org/sonar/batch/index/SourcePersister.java [new file with mode: 0644]
sonar-batch/src/main/java/org/sonar/batch/index/ViolationPersister.java [new file with mode: 0644]
sonar-batch/src/main/java/org/sonar/batch/indexer/Bucket.java [deleted file]
sonar-batch/src/main/java/org/sonar/batch/indexer/DefaultPersister.java [deleted file]
sonar-batch/src/main/java/org/sonar/batch/indexer/DefaultSonarIndex.java [deleted file]
sonar-batch/src/main/java/org/sonar/batch/indexer/LibraryPersister.java [deleted file]
sonar-batch/src/main/java/org/sonar/batch/indexer/ProjectPersister.java [deleted file]
sonar-batch/src/main/java/org/sonar/batch/indexer/ResourcePersister.java [deleted file]
sonar-batch/src/main/java/org/sonar/batch/indexer/ResourcePersisters.java [deleted file]
sonar-batch/src/main/java/org/sonar/batch/phases/DecoratorsExecutor.java [new file with mode: 0644]
sonar-batch/src/main/java/org/sonar/batch/phases/MavenPhaseExecutor.java [new file with mode: 0644]
sonar-batch/src/main/java/org/sonar/batch/phases/MavenPluginsConfigurator.java [new file with mode: 0644]
sonar-batch/src/main/java/org/sonar/batch/phases/Phases.java [new file with mode: 0644]
sonar-batch/src/main/java/org/sonar/batch/phases/PostJobsExecutor.java [new file with mode: 0644]
sonar-batch/src/main/java/org/sonar/batch/phases/SensorsExecutor.java [new file with mode: 0644]
sonar-batch/src/main/java/org/sonar/batch/phases/UpdateStatusJob.java [new file with mode: 0644]
sonar-batch/src/test/java/org/sonar/batch/CoreJobsTest.java [deleted file]
sonar-batch/src/test/java/org/sonar/batch/DefaultTimeMachineTest.java
sonar-batch/src/test/java/org/sonar/batch/FinalizeSnapshotsJobTest.java [deleted file]
sonar-batch/src/test/java/org/sonar/batch/MavenPhaseExecutorTest.java [deleted file]
sonar-batch/src/test/java/org/sonar/batch/MavenPluginsConfiguratorTest.java [deleted file]
sonar-batch/src/test/java/org/sonar/batch/PostJobsExecutorTest.java [deleted file]
sonar-batch/src/test/java/org/sonar/batch/index/BucketTest.java [new file with mode: 0644]
sonar-batch/src/test/java/org/sonar/batch/index/DefaultIndexTest.java [new file with mode: 0644]
sonar-batch/src/test/java/org/sonar/batch/index/MeasurePersisterTest.java [new file with mode: 0644]
sonar-batch/src/test/java/org/sonar/batch/index/ResourcePersisterTest.java [new file with mode: 0644]
sonar-batch/src/test/java/org/sonar/batch/indexer/DefaultPersisterTest.java [deleted file]
sonar-batch/src/test/java/org/sonar/batch/indexer/DefaultSonarIndexTest.java [deleted file]
sonar-batch/src/test/java/org/sonar/batch/indexer/LibraryPersisterTest.java [deleted file]
sonar-batch/src/test/java/org/sonar/batch/indexer/ResourcePersistersTest.java [deleted file]
sonar-batch/src/test/java/org/sonar/batch/phases/MavenPhaseExecutorTest.java [new file with mode: 0644]
sonar-batch/src/test/java/org/sonar/batch/phases/MavenPluginsConfiguratorTest.java [new file with mode: 0644]
sonar-batch/src/test/java/org/sonar/batch/phases/PhasesTest.java [new file with mode: 0644]
sonar-batch/src/test/java/org/sonar/batch/phases/PostJobsExecutorTest.java [new file with mode: 0644]
sonar-batch/src/test/java/org/sonar/batch/phases/UpdateStatusJobTest.java [new file with mode: 0644]
sonar-batch/src/test/resources/org/sonar/batch/FinalizeSnapshotsJobTest/doNotFailIfNoPenultimateLast-result.xml [deleted file]
sonar-batch/src/test/resources/org/sonar/batch/FinalizeSnapshotsJobTest/doNotFailIfNoPenultimateLast.xml [deleted file]
sonar-batch/src/test/resources/org/sonar/batch/FinalizeSnapshotsJobTest/lastSnapshotIsNotUpdatedWhenAnalyzingPastSnapshot-result.xml [deleted file]
sonar-batch/src/test/resources/org/sonar/batch/FinalizeSnapshotsJobTest/lastSnapshotIsNotUpdatedWhenAnalyzingPastSnapshot.xml [deleted file]
sonar-batch/src/test/resources/org/sonar/batch/FinalizeSnapshotsJobTest/sharedFixture.xml [deleted file]
sonar-batch/src/test/resources/org/sonar/batch/FinalizeSnapshotsJobTest/shouldUnflagPenultimateLastSnapshot-result.xml [deleted file]
sonar-batch/src/test/resources/org/sonar/batch/FinalizeSnapshotsJobTest/shouldUnflagPenultimateLastSnapshot.xml [deleted file]
sonar-batch/src/test/resources/org/sonar/batch/MavenPluginsConfiguratorTest/pom.xml [deleted file]
sonar-batch/src/test/resources/org/sonar/batch/MavenProjectBuilderTest/MavenPluginsConfiguratorTest/pom.xml [new file with mode: 0644]
sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shared.xml [new file with mode: 0644]
sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shouldDelaySaving-result.xml [new file with mode: 0644]
sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shouldInsertMeasure-result.xml [new file with mode: 0644]
sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shouldNotDelaySavingWithDatabaseOnlyMeasure-result.xml [new file with mode: 0644]
sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shouldUpdateMeasure-result.xml [new file with mode: 0644]
sonar-batch/src/test/resources/org/sonar/batch/index/ResourcePersisterTest/shared.xml [new file with mode: 0644]
sonar-batch/src/test/resources/org/sonar/batch/index/ResourcePersisterTest/shouldSaveNewDirectory-result.xml [new file with mode: 0644]
sonar-batch/src/test/resources/org/sonar/batch/index/ResourcePersisterTest/shouldSaveNewLibrary-result.xml [new file with mode: 0644]
sonar-batch/src/test/resources/org/sonar/batch/index/ResourcePersisterTest/shouldSaveNewMultiModulesProject-result.xml [new file with mode: 0644]
sonar-batch/src/test/resources/org/sonar/batch/index/ResourcePersisterTest/shouldSaveNewProject-result.xml [new file with mode: 0644]
sonar-batch/src/test/resources/org/sonar/batch/index/ResourcePersisterTest/shouldUpdateExistingResource-result.xml [new file with mode: 0644]
sonar-batch/src/test/resources/org/sonar/batch/index/ResourcePersisterTest/shouldUpdateExistingResource.xml [new file with mode: 0644]
sonar-batch/src/test/resources/org/sonar/batch/indexer/DefaultPersisterTest/createResource-result.xml [deleted file]
sonar-batch/src/test/resources/org/sonar/batch/indexer/DefaultPersisterTest/createResource.xml [deleted file]
sonar-batch/src/test/resources/org/sonar/batch/indexer/DefaultPersisterTest/updateExistingResource-result.xml [deleted file]
sonar-batch/src/test/resources/org/sonar/batch/indexer/DefaultPersisterTest/updateExistingResource.xml [deleted file]
sonar-batch/src/test/resources/org/sonar/batch/indexer/LibraryPersisterTest/addNewLibraryVersion-result.xml [deleted file]
sonar-batch/src/test/resources/org/sonar/batch/indexer/LibraryPersisterTest/addNewLibraryVersion.xml [deleted file]
sonar-batch/src/test/resources/org/sonar/batch/indexer/LibraryPersisterTest/createLibrary-result.xml [deleted file]
sonar-batch/src/test/resources/org/sonar/batch/indexer/LibraryPersisterTest/createLibrary.xml [deleted file]
sonar-batch/src/test/resources/org/sonar/batch/indexer/LibraryPersisterTest/reuseExistingLibrary-result.xml [deleted file]
sonar-batch/src/test/resources/org/sonar/batch/indexer/LibraryPersisterTest/reuseExistingLibrary.xml [deleted file]
sonar-batch/src/test/resources/org/sonar/batch/phases/MavenPluginsConfiguratorTest/pom.xml [new file with mode: 0644]
sonar-core/src/main/java/org/sonar/jpa/dao/AsyncMeasuresDao.java
sonar-core/src/main/java/org/sonar/jpa/dao/AsyncMeasuresService.java
sonar-core/src/test/java/org/sonar/jpa/session/DatabaseSessionTest.java
sonar-plugin-api/src/main/java/org/sonar/api/batch/Event.java
sonar-plugin-api/src/main/java/org/sonar/api/batch/SonarIndex.java
sonar-plugin-api/src/main/java/org/sonar/api/batch/TimeMachineQuery.java
sonar-plugin-api/src/main/java/org/sonar/api/database/model/MeasureModel.java
sonar-plugin-api/src/main/java/org/sonar/api/database/model/RuleFailureModel.java
sonar-plugin-api/src/main/java/org/sonar/api/measures/Measure.java
sonar-plugin-api/src/main/java/org/sonar/api/measures/MeasuresFilters.java
sonar-plugin-api/src/main/java/org/sonar/api/measures/MetricFinder.java [new file with mode: 0644]
sonar-plugin-api/src/main/java/org/sonar/api/rules/Violation.java
sonar-plugin-api/src/test/java/org/sonar/api/database/model/MeasureModelTest.java
sonar-plugin-api/src/test/java/org/sonar/api/measures/AverageComplexityFormulaTest.java
sonar-plugin-api/src/test/java/org/sonar/api/measures/MeasureUtilsTest.java
sonar-server/src/main/webapp/WEB-INF/app/models/snapshot.rb