17 Commits

Author SHA1 Message Date
Nick Burch
28dcad6dba ALF-3262 - Avoid contention and auth issues when updating the last run details on a previously persisted action run through the action tracking service
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22917 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-10-06 12:33:11 +00:00
David Caruana
35b2b7a122 Fixes to replication job status handling:
- success, error and cancelled states now correctly reported
- source and target reports now correctly provided for each of above

Changes:
- deprecated TransferService interface, replaced by TransferService2
  - introduces new sync transfer methods
  - new TransferServiceImpl2 class, old TransferServiceImpl delegates to new class
- sync transfer now returns TransferEndEvent
- sync transfer now raises TransferFailureException
- success, error and cancelled events are now end events (raised after report events)
- transfer client handling refactored to support cancel and errors appropriately
  - converted to event loop with polling of server status for all states
  - cancel request may now end with success or error (depending on when cancel requested)
  - extract transfer errors from server
  - only raise exception for errors (cancelled now returns)
  - source and destination reports written for all states
- Added TransferEndEvent interface for end events - reports attached to end event
- replication service fixed to record source and dest reports in error case
- action service fixed to record cancelled state

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22390 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-10 14:00:05 +00:00
Nick Burch
1ee65f081a Make the cache objects used by the Action Tracking Service immutable
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22382 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-10 11:13:33 +00:00
Derek Hulley
7f4402ac58 Formatted Alfresco-style
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22322 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-08 10:39:51 +00:00
Derek Hulley
8c10779861 Fixed ALF-4682: ActionTrackingService uses cluster- and transactionally-unsafe cache
- Added missing cluster config for 'executingActionsCache' but also 'routingContentStoreCache'
 - ActionTrackingServiceImpl uses injected SimpleCache; configured to be a wrapping TransactionalCache
 - Fixed line endings on ActionTrackingServiceImpl.java


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22315 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-07 20:30:30 +00:00
Nick Burch
ef8bfe2f7c When an action is marked as pending, it shouldn't have a started execution at time yet (ALF-4505)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22081 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-31 13:43:55 +00:00
Nick Burch
0c0d440329 ALF-4476 - Make transfer definitions for replication execution read only (locked)
Also improve the testing of cancelling running replication jobs, and the debug output of the action tracking service


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22055 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-27 16:52:52 +00:00
Nick Burch
b3406e7da0 ALF-4284 - allow cluster-wide visibility of pending actions, as well as running ones
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21707 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-10 13:38:56 +00:00
Nick Burch
77967ef61b Action Tracking Service update
Keep a record of which machine an action is currently running on, so for a cluster situation you know where you actions are


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21482 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-29 11:10:41 +00:00
Nick Burch
69815dab52 Action service tracking of multiple copies of the same action (replication 79)
Assign them a unique execution ID, and unit tests for this


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21388 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-23 17:39:07 +00:00
Nick Burch
17bcf56a93 ActionTrackingService work
Initial cancel support, and some duplicate instance work (mostly updating tests to handle it coming along). Duplicate id assignment work still remains


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21340 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-21 15:49:19 +00:00
Nick Burch
0442d3564d ActionTrackingService test updates
Make the cache key generation less brittle, add unit tests for listing functions, and stub out the cancel related tests


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21332 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-21 13:52:16 +00:00
Nick Burch
6f828a8b97 Action Tracking Service work (Replication Task 79) -
Basic cache population (no id clash avoidance yet though), along with basic tracking and simpler unit tests


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21312 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-20 17:00:29 +00:00
Nick Burch
44f1aa459b Further ActionTrackingService work
Documentation on DTOs, and flesh out more of the logic. Existing unit tests still happy despite the new features, new unit tests to follow


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21294 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-20 11:24:09 +00:00
Nick Burch
a2b793c21e Action Tracking Service work (replication task 79)
New concrete data transfer classes for holding the basic details on executing actions, and basic support (but no unit tests yet) for storing and retrieving these


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21281 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-19 16:56:34 +00:00
Nick Burch
a18efbbb6f Stub out executing action listing methods (Workflow 79)
Return types are not yet correct, and methods are stubbed, but the general contract for finding out which actions are currently executing, and where is now in place.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21267 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-19 14:35:08 +00:00
Nick Burch
2bfa74df80 Action execution tracking update
Push the logic out to another service, which will shortly also handle cluster wide information on which actions are running (Workflow task 79)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21254 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-19 09:32:26 +00:00