Christos KK Loverdos [Mon, 9 Jan 2012 13:28:02 +0000 (15:28 +0200)]
Small doc addition for UserEvent
Christos KK Loverdos [Mon, 9 Jan 2012 13:17:09 +0000 (15:17 +0200)]
Remove unused subclasses of UserDataSnapshot
Christos KK Loverdos [Mon, 9 Jan 2012 13:10:24 +0000 (15:10 +0200)]
Collection renaming a bug fix in UserState query
Christos KK Loverdos [Mon, 9 Jan 2012 12:59:12 +0000 (14:59 +0200)]
Make UserState roles immutable
Christos KK Loverdos [Mon, 9 Jan 2012 12:57:03 +0000 (14:57 +0200)]
Add a few queries to UserEvent
Christos KK Loverdos [Mon, 9 Jan 2012 12:47:40 +0000 (14:47 +0200)]
Forward UserState events to dispatcher
Georgios Gousios [Mon, 9 Jan 2012 12:27:07 +0000 (14:27 +0200)]
More tests => several errors fixed
Georgios Gousios [Mon, 9 Jan 2012 12:25:02 +0000 (14:25 +0200)]
Add new discrete resource, test method to parse Maybe's
Georgios Gousios [Mon, 9 Jan 2012 12:24:21 +0000 (14:24 +0200)]
More precise error message
Georgios Gousios [Mon, 9 Jan 2012 12:23:45 +0000 (14:23 +0200)]
Calculate hours, not minutes
Christos KK Loverdos [Mon, 9 Jan 2012 12:41:41 +0000 (14:41 +0200)]
Generify EventProcessorService to avoid too many casts
Christos KK Loverdos [Mon, 9 Jan 2012 12:29:22 +0000 (14:29 +0200)]
Use UserDataSnapshotException
Christos KK Loverdos [Mon, 9 Jan 2012 11:38:15 +0000 (13:38 +0200)]
Refactor user state change code
Georgios Gousios [Sun, 8 Jan 2012 19:20:35 +0000 (21:20 +0200)]
Some text on Aquarium requirements and benchmarking
Georgios Gousios [Thu, 5 Jan 2012 14:15:56 +0000 (16:15 +0200)]
Accounting changes, too many to commit individually:
-Make the resource state store hold values in a uniform format for
complex and simple resources
-Make the resource state retrieval method simpler and also contain
all resource state storage conventions into it.
-Implement the cost policy algorithms in the accounting method.
Separate accounting for complex/simple resources
-Docs++
Georgios Gousios [Thu, 5 Jan 2012 12:58:36 +0000 (14:58 +0200)]
Remove wrong test
Georgios Gousios [Thu, 5 Jan 2012 12:41:06 +0000 (14:41 +0200)]
Correct unit names
Georgios Gousios [Thu, 5 Jan 2012 12:40:40 +0000 (14:40 +0200)]
Convert a timeslot to its duration in hours
Georgios Gousios [Thu, 5 Jan 2012 12:40:20 +0000 (14:40 +0200)]
States for discrete cost policy events
Georgios Gousios [Thu, 5 Jan 2012 08:53:11 +0000 (10:53 +0200)]
Stricted definitions and explantations for cost policies
Georgios Gousios [Wed, 4 Jan 2012 12:44:05 +0000 (14:44 +0200)]
Skeleton for the Aquarium architectural description
Georgios Gousios [Wed, 4 Jan 2012 12:05:03 +0000 (14:05 +0200)]
Remove the resource state API, start using the new accounting code
Georgios Gousios [Wed, 4 Jan 2012 12:04:28 +0000 (14:04 +0200)]
Purify the accounting code
-All required resource state passed as params
-Charge chunks exposed as top level entity
Georgios Gousios [Wed, 4 Jan 2012 09:21:42 +0000 (11:21 +0200)]
Support for user configurable accounting policy locations
Georgios Gousios [Wed, 4 Jan 2012 07:16:22 +0000 (09:16 +0200)]
Make the number of MongoDB connections a configurable property
Georgios Gousios [Tue, 3 Jan 2012 15:56:30 +0000 (17:56 +0200)]
Various performance related changes
-Start lots of actors by default, to compensate for slow I/O
-Start a fair amount of threads by default
-More detailed logging
-Don't create a new dispatcher per request
Georgios Gousios [Tue, 3 Jan 2012 15:53:58 +0000 (17:53 +0200)]
Create a new connection per store request
This is to take advantage of the Mongo driver connection pool
Georgios Gousios [Tue, 3 Jan 2012 15:52:44 +0000 (17:52 +0200)]
Logging format similar to Akka's default
Georgios Gousios [Tue, 3 Jan 2012 13:36:56 +0000 (15:36 +0200)]
Implement the remaining bits of the user event processor service
Georgios Gousios [Tue, 3 Jan 2012 13:36:20 +0000 (15:36 +0200)]
Implement the user event store
Georgios Gousios [Tue, 3 Jan 2012 12:09:09 +0000 (14:09 +0200)]
Make the load balancing managers regular objects. Docs++
Georgios Gousios [Tue, 3 Jan 2012 11:26:49 +0000 (13:26 +0200)]
First attempt to make the resource processor service abstract
Georgios Gousios [Tue, 3 Jan 2012 11:24:52 +0000 (13:24 +0200)]
Helper method to immutably set the receive timestamp
Georgios Gousios [Tue, 3 Jan 2012 10:05:19 +0000 (12:05 +0200)]
Forward messages to the dispatcher after ACK
Christos KK Loverdos [Mon, 2 Jan 2012 20:54:59 +0000 (22:54 +0200)]
Change update style to use copy on immutable data
Christos KK Loverdos [Mon, 2 Jan 2012 17:59:55 +0000 (19:59 +0200)]
Correct documentation
Christos KK Loverdos [Mon, 2 Jan 2012 16:32:51 +0000 (18:32 +0200)]
Merge with my changes for user state handling.
I have also recreated ResourceNames and ResourceType (why were they
deleted?), as they are crucial for the polymorphic user state calculation
and the resource event type and name specifications.
User state is updated *immutably* everywhere and every resource type
knows exactly which part(s) of the UserState to update.
There is still work to be done though, so this is work in progress.
Conflicts:
src/main/scala/gr/grnet/aquarium/logic/events/ResourceEvent.scala
src/main/scala/gr/grnet/aquarium/logic/events/ResourceNames.scala
src/main/scala/gr/grnet/aquarium/logic/events/ResourceType.scala
src/main/scala/gr/grnet/aquarium/user/UserDataSnapshot.scala
src/main/scala/gr/grnet/aquarium/user/actor/UserActor.scala
Christos KK Loverdos [Mon, 2 Jan 2012 16:10:15 +0000 (18:10 +0200)]
Calculate user state from resource events (wip).
Georgios Gousios [Mon, 2 Jan 2012 15:29:27 +0000 (17:29 +0200)]
Messages and API for accessing resource state per actor
Georgios Gousios [Mon, 2 Jan 2012 12:15:42 +0000 (14:15 +0200)]
Validate presence of descriminator field in complex resource events
Georgios Gousios [Mon, 2 Jan 2012 12:07:48 +0000 (14:07 +0200)]
Resource names should only be specified in the DSL
Georgios Gousios [Mon, 2 Jan 2012 12:06:55 +0000 (14:06 +0200)]
Add DSL field to describe different instances for complex resources
Christos KK Loverdos [Mon, 2 Jan 2012 08:49:11 +0000 (10:49 +0200)]
More consistent naming for resource(type)s
Christos KK Loverdos [Mon, 2 Jan 2012 08:05:49 +0000 (10:05 +0200)]
Codify resource event types.
These must be constant across the whole platform.
Christos KK Loverdos [Mon, 2 Jan 2012 08:04:24 +0000 (10:04 +0200)]
Fix compilation error
Christos KK Loverdos [Thu, 29 Dec 2011 14:42:07 +0000 (16:42 +0200)]
Document xml support
Christos KK Loverdos [Thu, 29 Dec 2011 14:39:26 +0000 (16:39 +0200)]
Document json support
Christos KK Loverdos [Thu, 29 Dec 2011 14:34:08 +0000 (16:34 +0200)]
Consolidating timestamps.
I believe aqTimestamp was semantically the same as receivedMillis.
This value will be properly provided and it should not be a var anyway.
Christos KK Loverdos [Thu, 29 Dec 2011 14:22:11 +0000 (16:22 +0200)]
Add one more timestamp to resource event that denotes the reception time.
Christos KK Loverdos [Thu, 29 Dec 2011 13:17:58 +0000 (15:17 +0200)]
Refactor to accomodate MasterConf rename
Christos KK Loverdos [Thu, 29 Dec 2011 12:53:41 +0000 (14:53 +0200)]
Rename the store to better reflect the domain objects
Christos KK Loverdos [Thu, 29 Dec 2011 12:45:21 +0000 (14:45 +0200)]
Rename MongoDB collection to comply with the RabbitMQ key name
Christos KK Loverdos [Thu, 29 Dec 2011 12:39:21 +0000 (14:39 +0200)]
More MongoDB query refactoring
Christos KK Loverdos [Thu, 29 Dec 2011 12:09:45 +0000 (14:09 +0200)]
Rename wallet store methods
Christos KK Loverdos [Thu, 29 Dec 2011 12:06:12 +0000 (14:06 +0200)]
Refactor MongoDB quering to reusable methods
Christos KK Loverdos [Thu, 29 Dec 2011 11:24:20 +0000 (13:24 +0200)]
Rename master conf
Christos KK Loverdos [Thu, 29 Dec 2011 11:15:30 +0000 (13:15 +0200)]
Rename event store to catch semantics better
Christos KK Loverdos [Thu, 29 Dec 2011 10:59:17 +0000 (12:59 +0200)]
Add min,max time calculations for user state
Christos KK Loverdos [Thu, 29 Dec 2011 10:20:28 +0000 (12:20 +0200)]
Make vmId a symbolic name to avoid lurking strings
Christos KK Loverdos [Thu, 29 Dec 2011 10:19:01 +0000 (12:19 +0200)]
Fix fromJson and delegate to JsonHelpers
Christos KK Loverdos [Thu, 29 Dec 2011 10:18:20 +0000 (12:18 +0200)]
Use an immutable collection for source event IDs
Christos KK Loverdos [Thu, 29 Dec 2011 09:04:14 +0000 (11:04 +0200)]
Capture timestamp semantics with a better name.
Christos KK Loverdos [Thu, 29 Dec 2011 08:09:51 +0000 (10:09 +0200)]
Fix small typo and do another round of akka version upgrade.
It is akka.conf in test/ this time.
Christos KK Loverdos [Thu, 29 Dec 2011 07:40:10 +0000 (09:40 +0200)]
Forgot to upgrade akka version in SBT definition
Georgios Gousios [Fri, 23 Dec 2011 12:47:23 +0000 (14:47 +0200)]
Initial implementation of accounting method
Georgios Gousios [Fri, 23 Dec 2011 12:47:02 +0000 (14:47 +0200)]
Stricted accounting test check
Georgios Gousios [Fri, 23 Dec 2011 12:20:47 +0000 (14:20 +0200)]
More verbose debug logging, save custom timestamp
Georgios Gousios [Fri, 23 Dec 2011 12:20:08 +0000 (14:20 +0200)]
Fix problem with duplicate sha-1 ids being produced
Georgios Gousios [Fri, 23 Dec 2011 12:19:38 +0000 (14:19 +0200)]
Add custom timestamp, to fill in when msg is first stored
Georgios Gousios [Fri, 23 Dec 2011 12:15:40 +0000 (14:15 +0200)]
Don't serialize the logger
Christos KK Loverdos [Thu, 29 Dec 2011 07:36:04 +0000 (09:36 +0200)]
Upgrade akka to 1.3-RC5
Christos KK Loverdos [Thu, 29 Dec 2011 07:35:26 +0000 (09:35 +0200)]
Add typesafe repo to pom.xml
Christos KK Loverdos [Tue, 27 Dec 2011 13:23:37 +0000 (15:23 +0200)]
API change should have been committed earlier (II)
Christos KK Loverdos [Tue, 27 Dec 2011 13:22:49 +0000 (15:22 +0200)]
API change should have been committed earlier
Christos KK Loverdos [Tue, 27 Dec 2011 13:21:53 +0000 (15:21 +0200)]
Delegate json-related functionality to JsonHelpers (UserState)
Christos KK Loverdos [Tue, 27 Dec 2011 13:16:17 +0000 (15:16 +0200)]
Use vals and not raw strings for JSON names
Christos KK Loverdos [Tue, 27 Dec 2011 13:07:13 +0000 (15:07 +0200)]
Make better use of DBObjects
Christos KK Loverdos [Tue, 27 Dec 2011 12:42:37 +0000 (14:42 +0200)]
Clearer code for UserActorManager
Christos KK Loverdos [Tue, 27 Dec 2011 12:33:46 +0000 (14:33 +0200)]
Delegate json-related functionality to JsonHelpers
Christos KK Loverdos [Tue, 27 Dec 2011 12:27:57 +0000 (14:27 +0200)]
Factor out long names by using a value and by importing an object
Christos KK Loverdos [Tue, 27 Dec 2011 12:24:09 +0000 (14:24 +0200)]
Use existing properties API and make MasterConf API a bit more flexible with a default value
Christos KK Loverdos [Tue, 27 Dec 2011 12:20:40 +0000 (14:20 +0200)]
Use existing API for list-valued properties
Christos KK Loverdos [Tue, 27 Dec 2011 12:16:56 +0000 (14:16 +0200)]
Add documentation
Christos KK Loverdos [Fri, 23 Dec 2011 10:32:01 +0000 (12:32 +0200)]
Add one more query to event store.
Christos KK Loverdos [Fri, 23 Dec 2011 10:30:47 +0000 (12:30 +0200)]
Close mongodb query cursors.
Christos KK Loverdos [Fri, 23 Dec 2011 10:23:52 +0000 (12:23 +0200)]
Some more CryptoUtils love.
It must be Christmas that is affecting me, since I have already used the word love twice in commit messages today.
Christos KK Loverdos [Fri, 23 Dec 2011 10:16:19 +0000 (12:16 +0200)]
Make CryptoUtils thread-safe
Christos KK Loverdos [Fri, 23 Dec 2011 10:07:40 +0000 (12:07 +0200)]
Some more JsonHelpers love
Christos KK Loverdos [Fri, 23 Dec 2011 10:01:17 +0000 (12:01 +0200)]
Augment JsonHelpers so that all clients call this in the future.
Christos KK Loverdos [Fri, 23 Dec 2011 09:14:00 +0000 (11:14 +0200)]
Adding the owned resources snapshot
Christos KK Loverdos [Fri, 23 Dec 2011 09:07:01 +0000 (11:07 +0200)]
Add owned resources to user state (provisionally)
No snapshot for the moment, need to model it.
Georgios Gousios [Thu, 22 Dec 2011 15:59:01 +0000 (17:59 +0200)]
Implement and test method that aligns charge timeslots among algorithms and pricelists
Georgios Gousios [Thu, 22 Dec 2011 15:57:43 +0000 (17:57 +0200)]
resolve* methods return maps sorted by timeslot start time
Also, improved documentation
Georgios Gousios [Thu, 22 Dec 2011 15:56:42 +0000 (17:56 +0200)]
Make Timeslots comparable by start date
Georgios Gousios [Thu, 22 Dec 2011 13:50:34 +0000 (15:50 +0200)]
Default baseline policy
Georgios Gousios [Thu, 22 Dec 2011 13:50:17 +0000 (15:50 +0200)]
Fix resource event validation
Christos KK Loverdos [Thu, 22 Dec 2011 15:23:26 +0000 (17:23 +0200)]
Rename method WalletStore -> walletStore
Christos KK Loverdos [Thu, 22 Dec 2011 15:02:00 +0000 (17:02 +0200)]
Use the time threshold for user state.
Christos KK Loverdos [Thu, 22 Dec 2011 14:58:23 +0000 (16:58 +0200)]
Change Dispatcher response model.
Christos KK Loverdos [Thu, 22 Dec 2011 12:52:32 +0000 (14:52 +0200)]
Introduce a time threshold for user state recomputations.