Commit Graph
1336 Commits
Author SHA1 Message Date
Axel Uhl a04861f57b fixing bug 1320: wind tracking for SwissTiming races didn't wait until race definition was created 2013-03-31 14:58:12 +02:00
Axel Uhl d858be97f3 Merge remote-tracking branch 'server/master' 2013-03-29 15:45:28 +01:00
Axel Uhl 465d618fbc fixed smart future cache test which now failed due to more rigid locking policy;
can't suspend the cache(...) method which is holding the write lock while trying to read using get(...).
The get(...) method will simply block because a cache update is currently on its way.
2013-03-29 15:40:01 +01:00
Simon Pamies 3b497e7e95 Moved away from calling logger.throwing because this logs with level FINER that is not catched in most logging configurations. Used logger.log(level, message, throwable). 2013-03-29 15:19:03 +01:00
fmittag d61d7f8644 Merge remote-tracking branch 'origin/master' into leaderboardCache
Conflicts:
	java/com.sap.sailing.domain/src/com/sap/sailing/domain/base/impl/DomainFactoryImpl.java
	java/com.sap.sailing.server.gateway/src/com/sap/sailing/server/gateway/impl/LeaderboardJsonGetServlet.java
2013-03-25 12:37:37 +01:00
Armin Zamani 5aeb30b1c9 Merge branch 'master' into racecommittee_integrated 2013-03-22 15:13:45 +01:00
Axel Uhl ab7fc9c519 Fixed by 1317: ConcurrentModificationException in SmartFutureCache unpropagating lock set 2013-03-22 15:09:42 +01:00
Axel Uhl 057a479586 Largely fixed bug 1023. While it doesn't show an additional column with the race count, LowPoint and HighPoint and all
their derived schemes rank a competitor better if it has more races; all races of those schemes are now always
considered valid for total points score. The old implementation is still in AbstractScoringScheme in case someone
needs them in a specific scheme.
2013-03-22 15:04:18 +01:00
Armin Zamani 6b4efe7af5 Merge branch 'master' into racecommittee_integrated
Conflicts:
	java/com.sap.sailing.server.gateway/WEB-INF/web.xml
	java/com.sap.sailing.server.gateway/src/com/sap/sailing/server/gateway/impl/EventsJsonExportServlet.java
	java/com.sap.sailing.server.gateway/src/com/sap/sailing/server/gateway/impl/rc/RaceGroupJsonExportServlet.java
2013-03-22 13:51:55 +01:00
Axel Uhl eb7245c3dc added a comment on the minimum size of the thread pool for the SmartFutureCache 2013-03-22 11:26:52 +01:00
Armin Zamani 6d0660120b Merge branch 'master' into racecommittee_integrated 2013-03-22 10:42:10 +01:00
Axel Uhl f9292e64c3 added lock propagation to LeaderboardDTOCache and SmartFutureCache 2013-03-22 00:28:23 +01:00
Axel Uhl 82b464eafe added comment to SmartFutureCache.triggerUpdate to explain the need for randomization in case of mass updates 2013-03-22 00:09:14 +01:00
Axel Uhl e73b325db7 Merge remote-tracking branch 'server/master' 2013-03-21 23:59:20 +01:00
Axel Uhl 91b684804b use a single ThreadPool for all SmartFutureCache instances, 3*availableProcessors in size; shuffle multi-cache-invalidations;
when invalidating a SmartFutureCache for a number of keys, if this always happens in the same order, the first few keys
will be re-computed over and over again because cancelling them is not possible as they have already started, but a new
re-calculation needs to be triggered still. All later keys will be appended to the ordered queue but will keep getting
canceled because they haven't started their calculation yet. By shuffling the keys before triggering their invalidation,
all elements will fairly get re-calculated every now and then.
2013-03-21 23:53:39 +01:00
Armin Zamani 4e29bda14c fixed a couple of merge errors 2013-03-21 22:11:57 +01:00
Armin Zamani 6abba47d29 Merge branch 'master' into racecommittee_integrated
Conflicts:
	java/com.sap.sailing.server.gateway.serialization/src/com/sap/sailing/server/gateway/serialization/coursedata/impl/CourseDataJsonSerializer.java
	java/com.sap.sailing.server.gateway.serialization/src/com/sap/sailing/server/gateway/serialization/impl/coursedata/CourseBaseJsonSerializer.java
	java/com.sap.sailing.server.gateway.serialization/src/com/sap/sailing/server/gateway/serialization/impl/coursedata/CourseDataJsonSerializer.java
	java/com.sap.sailing.server.gateway/WEB-INF/web.xml
	java/com.sap.sailing.server.gateway/src/com/sap/sailing/server/gateway/impl/rc/EventDataJsonExportServlet.java
	mobile/com.sap.sailing.racecommittee.app/src/com/sap/sailing/racecommittee/app/data/DataStore.java
	mobile/com.sap.sailing.racecommittee.app/src/com/sap/sailing/racecommittee/app/data/InMemoryDataStore.java
	mobile/com.sap.sailing.racecommittee.app/src/com/sap/sailing/racecommittee/app/data/OfflineDataManager.java
	mobile/com.sap.sailing.racecommittee.app/src/com/sap/sailing/racecommittee/app/data/OnlineDataManager.java
	mobile/com.sap.sailing.racecommittee.app/src/com/sap/sailing/racecommittee/app/data/ReadonlyDataManager.java
	mobile/com.sap.sailing.racecommittee.app/src/com/sap/sailing/racecommittee/app/data/parsers/EventsDataParser.java
	mobile/com.sap.sailing.racecommittee.app/src/com/sap/sailing/racecommittee/app/domain/impl/FleetIdentifierImpl.java
	mobile/com.sap.sailing.racecommittee.app/src/com/sap/sailing/racecommittee/app/domain/impl/ManagedRaceImpl.java
	mobile/com.sap.sailing.racecommittee.app/src/com/sap/sailing/racecommittee/app/ui/activities/LoginActivity.java
2013-03-21 21:19:27 +01:00
Armin Zamani d1f64c456d renamed "CourseData" to "CourseBase", "EventData" to "EventBase" and
"SeriesData" to "SeriesBase", and their impl-classes accordingly,
renamed "CourseDataJsonSerializer" to "CourseBaseJsonSerializer"
2013-03-21 18:30:30 +01:00
Armin Zamani 2741727077 added a try catch for URL/IO exceptions while sending a course design 2013-03-21 17:06:37 +01:00
Armin Zamani 67efd32a79 implemented the connection to the TracTrac server to post a course
update
2013-03-21 17:02:24 +01:00
Armin Zamani e8742c504a Merge branch 'master' into racecommittee_integrated 2013-03-20 23:40:05 +01:00
fmittag bd9ef9b963 Merge remote-tracking branch 'origin/master' 2013-03-20 19:16:06 +01:00
fmittag 9a3319b5f1 fixed a bug with the replication of default regattas (id replication was broken)
added a test case for replicating default regattas
2013-03-20 19:12:15 +01:00
Axel Uhl 7211f60040 fixed use of LowPointWinnerGetsZero scoring scheme 2013-03-20 16:40:54 +01:00
Armin Zamani 8cb047681b implemented listener of tracking provider for course design changes 2013-03-19 23:57:31 +01:00
Armin Zamani 6274127bcb introduced a race log listener on TrackedRace to propagate changes on
the course design
2013-03-19 23:27:34 +01:00
Armin Zamani 619f0fead9 Merge branch 'master' into racecommittee_integrated
Conflicts:
	java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/server/SailingServiceImpl.java
	java/com.sap.sailing.server.gateway/src/com/sap/sailing/server/gateway/impl/rc/RaceGroupFactory.java
2013-03-19 19:08:36 +01:00
Armin Zamani f8688f1c94 Bug fix: For races that were loaded as TrackedRaces and race columns
were added in the default flexible leaderboard, the race log was missing
2013-03-17 19:32:17 +01:00
Axel Uhl 77459000c1 bug 1273: added scoring scheme that gives 0 points to race winner 2013-03-14 15:19:34 +01:00
Armin Zamani c6d96504ab Implemented new race log event type for course changes 2013-03-12 12:34:25 +01:00
Axel Uhl 3e140802f0 renamed scoring scheme after slightly changing semantics 2013-03-08 19:25:11 +04:00
Axel Uhl 5cf1a46875 in renamed HighPointsForstGets10LastBreaksTie scoring scheme use last race to break tie; fixed net points/total points bug in compareByScores 2013-03-08 18:22:24 +04:00
Axel Uhl d9fba890ed in renamed HighPointsForstGets10LastBreaksTie scoring scheme use last race to break tie; fixed net points/total points bug in compareByScores 2013-03-08 18:19:28 +04:00
Axel Uhl 148ebdc2b4 don't evict leaderboard JSON cache but only trigger re-calculation for the time points already contained 2013-03-08 18:18:13 +04:00
Axel Uhl 5db0d66c47 Merge branch 'master' into leaderboardCache
Conflicts:
	java/com.sap.sailing.domain/src/com/sap/sailing/domain/tracking/impl/DynamicTrackedRaceImpl.java
2013-03-08 11:21:44 +04:00
Axel Uhl ed76399644 further relaxed wind fix filtering so that race start and start of tracking, when used exactly, still match 2013-03-07 16:35:29 +04:00
Axel Uhl 19b0e87db3 relaxed timing check for wind fix filtering 2013-03-07 15:41:47 +04:00
Axel Uhl ef6319dfeb Merge branch 'master' into leaderboardCache 2013-03-07 12:20:03 +04:00
Axel Uhl d4fc7d181e fixed filtering of wind fixes (after/before were swapped) 2013-03-07 12:18:58 +04:00
Axel Uhl 228499231b first compilable (yet entirely untested) version of a Leaderboard JSON export servlet with a SmartFutureCache 2013-03-07 11:32:18 +04:00
Axel Uhl d74ad1a6be fixed compilation problem after merge 2013-03-07 10:01:44 +04:00
Axel Uhl 8c19e622e2 Merge branch 'master' into leaderboardCache
Conflicts:
	java/com.sap.sailing.domain/src/com/sap/sailing/domain/tracking/impl/DynamicTrackedRaceImpl.java
2013-03-07 09:58:48 +04:00
Axel Uhl 429f545298 Catch IllegalArgumentException during wind estimation in case of a mismatch between mark passing and course layout 2013-03-07 09:10:40 +04:00
Axel Uhl badcaaf6ca record wind fix only if it's between startOfTracking and endOfTracking or either of those is null 2013-03-07 09:08:54 +04:00
Axel Uhl e7635a6aff Merge branch 'master' into leaderboardCache 2013-03-07 00:47:07 +04:00
Axel Uhl c3ea5cb602 fixed broken (inactive) display of races in leaderboard group / spectator view
The problem was the addition of seriesName in FleetDTO which was included in equals/hashCode but not properly initialized
for flexible leaderboards. It was set to "Default" instead of null and hence the comparison to the null value as delivered
by the FlexibleLeaderboard failed.
2013-03-07 00:40:53 +04:00
Axel Uhl 5c75b48f5f factored out the cache invalidation part of the LeaderboardDTOCache to re-use for the JSON export servlet 2013-03-06 19:24:21 +04:00
Axel Uhl 06b1f44134 avoiding cache invalidations because of late wind fixes by suppressing wind after some timeout period after endOfRace 2013-03-06 15:54:21 +04:00
Simon Pamies 792dfd7de2 Made sure that event is correctly replicated upon initial load, also
stopping trackers upon initial load on replica
2013-03-05 11:10:54 +01:00
Armin Zamani 948569bb60 added Javadoc 2013-03-03 14:49:28 +01:00