Robert von Burg
1f287fe121
[Minor] all commands now lock their elements before doing their work
2014-02-26 21:32:12 +01:00
Robert von Burg
b1e24f8a59
[New] Implemented StrolchTransaction.addCommand(), Command.undo()
...
Commands are now supposed to be added to the StrolchTransaction so that
when a TX is committed, the commands are first verified and then
Command.doCommand() is called.
But most important of all, in case of an exception, Command.undo() is
called so that each Command can properly undo its changes so that also
in memory changes are rolled back.
Now all Services call tx.addCommand(Command) instead of directly calling
Command.doCommand()
2014-02-26 21:13:47 +01:00
Robert von Burg
20f0417d93
[New] Implemented Command.undo() for all commands
2014-02-25 21:19:41 +01:00
Robert von Burg
2446682c9a
[New] Added SetParameterService and Command
2014-02-24 22:29:02 +01:00
Robert von Burg
c3a556df81
[Minor] trying to fix broken LockingTest which has an infinite loop
2014-02-24 21:57:57 +01:00
Robert von Burg
069361f476
[New] Implemented locking for Strolch elements
...
Also cleaned up hierarchy of StrolchTransaction by moving up everything
into AbstractTransaction as made sense and added special delegation
methods for the actual commit() and rollback() ind the concrete
implementations.
2014-02-24 21:49:24 +01:00
Robert von Burg
1f4755939a
[New] Implemented separate DataStoreMode for each StrolchRealm
2014-02-17 22:08:24 +01:00
Robert von Burg
af33df7503
[Minor] added logging of work done when exporting model
2014-02-14 21:45:48 +01:00
Robert von Burg
bb9caf6554
[New] XmlExportModelService now has multi file support
...
Also added tests for exporting model
2014-02-14 21:18:14 +01:00
Robert von Burg
8e273b1306
[Minor] there is no getDefaultRealm() method anymore
2014-02-13 22:22:04 +01:00
Robert von Burg
03cdee3012
[New] Implemented Export and Import model services and commands
2014-01-30 00:21:34 +01:00
Robert von Burg
2f203e7200
[Minor] code cleanup
2014-01-25 22:15:37 +01:00
Robert von Burg
9dcd88df64
[Project] added Jenkins build badge to README.md
2014-01-23 22:52:50 +01:00
Robert von Burg
c0d043f06e
[New] added version info metadata to agent
2014-01-23 22:01:31 +01:00
Robert von Burg
45a7020126
[New] Implemented Add* and RemoveParameterService and Command
2014-01-13 19:12:04 +01:00
Robert von Burg
08185b415f
[New] Added Update and Remove services and commands
2014-01-11 23:14:28 +01:00
Robert von Burg
04a0906513
[Major] moved the package li.strolch.runtime.agent to li.strolch.agent
2014-01-10 23:23:29 +01:00
Robert von Burg
fbcbed4a00
[Major] refactored how transactions are opened
...
Now the ElementMapHandler is the central object and clients do not use
access DAOs or the PersistenceHandler anymore. This is now transparent.
2014-01-10 19:10:56 +01:00
Robert von Burg
971d25640c
[Major] renamed project li.strolch.runtime to li.strolch.agent
2014-01-10 17:17:01 +01:00
Robert von Burg
f0f98ebd4a
[Major] removed project li.strolch.persistence.api
...
Moved all classes to li.strolch.runtime
2014-01-10 16:50:27 +01:00
Robert von Burg
cb89abd469
[New] Added new services
...
AddResource*Service, AddOrder*Service, ImportModelFromXmlService
2014-01-01 02:19:21 +01:00
Robert von Burg
8408e5e62a
[Minor] fixed compile error due to change in privilege
2013-12-29 23:13:15 +01:00
Robert von Burg
aa5ac4f7da
[Minor] better exception handling if Service returns null service result
2013-12-28 13:00:26 +01:00
Robert von Burg
19c7a120ca
[New] injecting ComponentContainer into Services at execution time
2013-12-28 10:29:43 +01:00
Robert von Burg
66920308d0
[Minor] reorganized classes for Agent into api and impl packages
2013-12-25 22:31:01 +01:00
Robert von Burg
1a6df8bca4
[Major] RuntimeMock now also copies data
2013-12-25 19:04:53 +01:00
Robert von Burg
446c250500
[Minor] refactored tests for persistence layers to remove duplicate code
2013-12-25 17:02:19 +01:00
Robert von Burg
ee62256771
[Minor] fixed issue where eclipse couldn't validate log4j.xml
2013-12-25 11:56:19 +01:00
Robert von Burg
2b69c96550
[Minor] set artifact name to artifactId for easier reading of build log
2013-12-24 02:44:04 +01:00
Robert von Burg
2b1dd1b0a3
[Major] refactored Element maps for better handling
...
Now they are not components, now there is an ElementMapHandler which
is the component and the OrderMap and ResourceMap can be retrieved from
the ElementMapHandler
2013-12-23 18:42:54 +01:00
Robert von Burg
2008fb49c6
[Project] Changed all licence references to Apache License 2.0
2013-12-15 13:10:27 +01:00
Robert von Burg
f49f113b70
[New] Implemented EMPTY and TRANSIENT dataStoreModes.
...
Refactored Agent to be responsible for starting the container. And it
requires the runtime configuration.
2013-11-25 18:53:53 +01:00
Robert von Burg
86db450fb6
[New] Implemented ServiceHandler with Privilege validation
...
Performing a Service is as simple as this:
GreetingService greetingService = new GreetingService();
GreetingArgument greetingArgument = new GreetingArgument();
greetingArgument.name = "Robert";
GreetingResult greetingResult = serviceHandler.
doService(null, greetingService, greetingArgument);
assertThat(greetingResult.getGreeting(),
containsString("Hello Robert. Nice to meet you!"));
2013-11-16 01:13:13 +01:00
Robert von Burg
30db53611b
[Minor] fixed an incorrect constructor on SimpleServiceHandler
2013-11-14 21:36:49 +01:00
Robert von Burg
34692df586
[Devel] busy implementing a component directed acyclic dependency tree
...
This is needed to start/stop in the right order
2013-11-05 20:42:20 +01:00
Robert von Burg
f04dcdb43e
[Minor] added constructor to SimpleServiceHandler
2013-10-28 22:07:28 +01:00
Robert von Burg
9d29dff6c9
[Minor] code cleanup
2013-10-27 04:17:48 +01:00
Robert von Burg
d90c698176
[Minor] code cleanup
2013-10-27 04:13:05 +01:00
Robert von Burg
181e3dfdff
[Minor] Added StrolchComponent interface to SimpleServiceHandler
2013-10-27 03:27:18 +01:00
Robert von Burg
55462432b6
[Project] set a parent to li.strolch.parent for easier managing
2013-10-23 21:11:49 +02:00
Robert von Burg
c7ce6ead76
Initial Commit
2013-10-23 19:59:32 +02:00
Robert von Burg
cf6b5bbea9
Initial commit
2013-10-23 10:48:13 -07:00