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
Derek Hulley
808ff739a3
Fixed typo
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22321 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-08 10:39:33 +00:00
Nick Burch
c1068b0b0c
Replication service JS API unit tests (ALF-4505)
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22225 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-03 11:48:06 +00:00
Nick Burch
fa1818c5fa
Start on Replication Service JS API unit tests (more still to test though) - ALF-4505
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22208 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-02 20:46:39 +00:00
Mark Rogers
846d79c06e
build fix: fixed integration test now that destination transfer test is xml rather than plain text.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22188 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-02 15:17:34 +00:00
Nick Burch
5342c04de0
Unit tests for scheduled replication actions (ALF-4505)
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22142 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-09-01 17:23:01 +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
baf2876ffc
ALF-4348 - Fix up scheduled replication execution, and stub out the unit tests for this
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22027 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-26 16:17:37 +00:00
Nick Burch
61583adef0
ALF-4346 & ALF-4348 - More work on schedulable actions, and start to expose this through to the replication service
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22019 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-26 13:36:37 +00:00
Nick Burch
e7439974f2
Mark out which bits need to be changed to support ALF-4476
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21991 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-25 13:36:31 +00:00
David Caruana
2d6fd30803
Replication - record target transfer report in replication definition
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21880 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-19 16:18:53 +00:00
Nick Burch
39ed19b346
ALF-4135 - Webscript support for deleting replication definitions
...
Includes webscript unit tests, and expands the service unit tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21641 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-05 13:44:01 +00:00
Nick Burch
3ffb67e824
Replication Service transfer report tracking
...
Make the transfer service report available through the replication service, and add unit tests to show that it turns up as expected
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21441 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-27 15:25:54 +00:00
Nick Burch
91aa8759f5
Replication Service tweaks
...
In preparation for writing the webscripts, add a rename service method, and change the user facing type of the name from QName to string
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21440 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-27 15:01:02 +00:00
Nick Burch
4425a2b4db
Ability to cancel replication actions (replication 94)
...
Cance ability, which feeds down into the transfer service, and feeds it back up to the action tracking service. Also, refactor of the replication service unit tests to do the transactions itself, which is needed to reliably test async actions
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21387 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-23 16:52:54 +00:00
Nick Burch
7215f51fe9
Replication Definition enable/disable/check support (Replication 69+70)
...
Ability to enable and disable replication definitions, which the executor checks, along with unit tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21382 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-23 15:40:49 +00:00
Nick Burch
5214729811
Expand a couple of replication service tests
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21247 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-16 16:24:43 +00:00
Nick Burch
7c46ccea69
Have the action service record when actions run, and if they worked
...
Handles persisting this action data for sucessful actions
(Failure information persistance still to follow)
Includes lots of unit tests for working and failing sync and async actions
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21175 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-14 16:08:37 +00:00
Derek Hulley
7c27a2c711
Fix SAIL-389 (SAIL-294): NodeDAO: single-valued, d:any properties don't handle increasing array values
...
- Re-enabled test and fixed assertion
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21138 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-13 15:34:43 +00:00
Mark Rogers
e468ab3a4b
transfer service : work in progress.
...
implementation of transfer requsite.
API change isComplete to isSync
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21130 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-13 14:04:23 +00:00
Nick Burch
5a3d53e5c1
Replication Service test which ensures that the right things get copied by the tranfer service
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21097 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-12 14:27:10 +00:00
Nick Burch
d633e6416b
Replication Definition deletion support + unit test
...
(Disabled) unit test for edit/save/load/edit/save of replication definitions,
so that Derek can look at why the node service breaks for this
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21093 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-12 13:57:30 +00:00
Nick Burch
e6a6b9bf0b
Replication service now calls the transfer service
...
Includes unit tests for the basic operations, and a make same-repo transfer handler as used in the transfer service tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21033 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-09 12:36:36 +00:00
Nick Burch
283d66c7eb
Replication service unit tests
...
Refactor the executor to make testing easier, and add unit tests for many parts of the executor
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21011 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-08 16:54:10 +00:00
Nick Burch
9d3ec267b1
Replication Service execution work
...
Now handles locking the replication job, deciding what to replicate for a given payload, and refreshing the lock as the transfer progresses, plus tests. Still needs to call the transfer service though.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@20989 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-07 16:23:34 +00:00
Nick Burch
553df63c59
Stub the replication service action executor
...
Doesn't trigger a transfer yet, as waiting on the appropriate node finder
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@20967 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-06 20:40:35 +00:00
Nick Burch
7a8e50de23
Initial replication service tests
...
Fix up the definition parameter persisting, and test that we can create/save/load/list the definitions propertly
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@20965 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-06 15:02:02 +00:00