aquarium
12 years agoRemove unused subclasses of UserDataSnapshot
Christos KK Loverdos [Mon, 9 Jan 2012 13:17:09 +0000 (15:17 +0200)]
Remove unused subclasses of UserDataSnapshot

12 years agoCollection renaming a bug fix in UserState query
Christos KK Loverdos [Mon, 9 Jan 2012 13:10:24 +0000 (15:10 +0200)]
Collection renaming a bug fix in UserState query

12 years agoMake UserState roles immutable
Christos KK Loverdos [Mon, 9 Jan 2012 12:59:12 +0000 (14:59 +0200)]
Make UserState roles immutable

12 years agoAdd a few queries to UserEvent
Christos KK Loverdos [Mon, 9 Jan 2012 12:57:03 +0000 (14:57 +0200)]
Add a few queries to UserEvent

12 years agoForward UserState events to dispatcher
Christos KK Loverdos [Mon, 9 Jan 2012 12:47:40 +0000 (14:47 +0200)]
Forward UserState events to dispatcher

12 years agoMore tests => several errors fixed
Georgios Gousios [Mon, 9 Jan 2012 12:27:07 +0000 (14:27 +0200)]
More tests => several errors fixed

12 years agoAdd new discrete resource, test method to parse Maybe's
Georgios Gousios [Mon, 9 Jan 2012 12:25:02 +0000 (14:25 +0200)]
Add new discrete resource, test method to parse Maybe's

12 years agoMore precise error message
Georgios Gousios [Mon, 9 Jan 2012 12:24:21 +0000 (14:24 +0200)]
More precise error message

12 years agoCalculate hours, not minutes
Georgios Gousios [Mon, 9 Jan 2012 12:23:45 +0000 (14:23 +0200)]
Calculate hours, not minutes

12 years agoGenerify EventProcessorService to avoid too many casts
Christos KK Loverdos [Mon, 9 Jan 2012 12:41:41 +0000 (14:41 +0200)]
Generify EventProcessorService to avoid too many casts

12 years agoUse UserDataSnapshotException
Christos KK Loverdos [Mon, 9 Jan 2012 12:29:22 +0000 (14:29 +0200)]
Use UserDataSnapshotException

12 years agoRefactor user state change code
Christos KK Loverdos [Mon, 9 Jan 2012 11:38:15 +0000 (13:38 +0200)]
Refactor user state change code

12 years agoSome text on Aquarium requirements and benchmarking
Georgios Gousios [Sun, 8 Jan 2012 19:20:35 +0000 (21:20 +0200)]
Some text on Aquarium requirements and benchmarking

12 years agoAccounting changes, too many to commit individually:
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++

12 years agoRemove wrong test
Georgios Gousios [Thu, 5 Jan 2012 12:58:36 +0000 (14:58 +0200)]
Remove wrong test

12 years agoCorrect unit names
Georgios Gousios [Thu, 5 Jan 2012 12:41:06 +0000 (14:41 +0200)]
Correct unit names

12 years agoConvert a timeslot to its duration in hours
Georgios Gousios [Thu, 5 Jan 2012 12:40:40 +0000 (14:40 +0200)]
Convert a timeslot to its duration in hours

12 years agoStates for discrete cost policy events
Georgios Gousios [Thu, 5 Jan 2012 12:40:20 +0000 (14:40 +0200)]
States for discrete cost policy events

12 years agoStricted definitions and explantations for cost policies
Georgios Gousios [Thu, 5 Jan 2012 08:53:11 +0000 (10:53 +0200)]
Stricted definitions and explantations for cost policies

12 years agoSkeleton for the Aquarium architectural description
Georgios Gousios [Wed, 4 Jan 2012 12:44:05 +0000 (14:44 +0200)]
Skeleton for the Aquarium architectural description

12 years agoRemove the resource state API, start using the new accounting code
Georgios Gousios [Wed, 4 Jan 2012 12:05:03 +0000 (14:05 +0200)]
Remove the resource state API, start using the new accounting code

12 years agoPurify the 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

12 years agoSupport for user configurable accounting policy locations
Georgios Gousios [Wed, 4 Jan 2012 09:21:42 +0000 (11:21 +0200)]
Support for user configurable accounting policy locations

12 years agoMake the number of MongoDB connections a configurable property
Georgios Gousios [Wed, 4 Jan 2012 07:16:22 +0000 (09:16 +0200)]
Make the number of MongoDB connections a configurable property

12 years agoVarious performance related changes
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

12 years agoCreate a new connection per store 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

12 years agoLogging format similar to Akka's default
Georgios Gousios [Tue, 3 Jan 2012 15:52:44 +0000 (17:52 +0200)]
Logging format similar to Akka's default

12 years agoImplement the remaining bits of the user event processor service
Georgios Gousios [Tue, 3 Jan 2012 13:36:56 +0000 (15:36 +0200)]
Implement the remaining bits of the user event processor service

12 years agoImplement the user event store
Georgios Gousios [Tue, 3 Jan 2012 13:36:20 +0000 (15:36 +0200)]
Implement the user event store

12 years agoMake the load balancing managers regular objects. Docs++
Georgios Gousios [Tue, 3 Jan 2012 12:09:09 +0000 (14:09 +0200)]
Make the load balancing managers regular objects. Docs++

12 years agoFirst attempt to make the resource processor service abstract
Georgios Gousios [Tue, 3 Jan 2012 11:26:49 +0000 (13:26 +0200)]
First attempt to make the resource processor service abstract

12 years agoHelper method to immutably set the receive timestamp
Georgios Gousios [Tue, 3 Jan 2012 11:24:52 +0000 (13:24 +0200)]
Helper method to immutably set the receive timestamp

12 years agoForward messages to the dispatcher after ACK
Georgios Gousios [Tue, 3 Jan 2012 10:05:19 +0000 (12:05 +0200)]
Forward messages to the dispatcher after ACK

12 years agoChange update style to use copy on immutable data
Christos KK Loverdos [Mon, 2 Jan 2012 20:54:59 +0000 (22:54 +0200)]
Change update style to use copy on immutable data

12 years agoCorrect documentation
Christos KK Loverdos [Mon, 2 Jan 2012 17:59:55 +0000 (19:59 +0200)]
Correct documentation

12 years agoMerge with my changes for user state handling.
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

12 years agoCalculate user state from resource events (wip).
Christos KK Loverdos [Mon, 2 Jan 2012 16:10:15 +0000 (18:10 +0200)]
Calculate user state from resource events (wip).

12 years agoMessages and API for accessing resource state per actor
Georgios Gousios [Mon, 2 Jan 2012 15:29:27 +0000 (17:29 +0200)]
Messages and API for accessing resource state per actor

12 years agoValidate presence of descriminator field in complex resource events
Georgios Gousios [Mon, 2 Jan 2012 12:15:42 +0000 (14:15 +0200)]
Validate presence of descriminator field in complex resource events

12 years agoResource names should only be specified in the DSL
Georgios Gousios [Mon, 2 Jan 2012 12:07:48 +0000 (14:07 +0200)]
Resource names should only be specified in the DSL

12 years agoAdd DSL field to describe different instances for complex resources
Georgios Gousios [Mon, 2 Jan 2012 12:06:55 +0000 (14:06 +0200)]
Add DSL field to describe different instances for complex resources

12 years agoMore consistent naming for resource(type)s
Christos KK Loverdos [Mon, 2 Jan 2012 08:49:11 +0000 (10:49 +0200)]
More consistent naming for resource(type)s

12 years agoCodify resource event types.
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.

12 years agoFix compilation error
Christos KK Loverdos [Mon, 2 Jan 2012 08:04:24 +0000 (10:04 +0200)]
Fix compilation error

12 years agoDocument xml support
Christos KK Loverdos [Thu, 29 Dec 2011 14:42:07 +0000 (16:42 +0200)]
Document xml support

12 years agoDocument json support
Christos KK Loverdos [Thu, 29 Dec 2011 14:39:26 +0000 (16:39 +0200)]
Document json support

12 years agoConsolidating timestamps.
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.

12 years agoAdd one more timestamp to resource event that denotes the reception time.
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.

12 years agoRefactor to accomodate MasterConf rename
Christos KK Loverdos [Thu, 29 Dec 2011 13:17:58 +0000 (15:17 +0200)]
Refactor to accomodate MasterConf rename

12 years agoRename the store to better reflect the domain objects
Christos KK Loverdos [Thu, 29 Dec 2011 12:53:41 +0000 (14:53 +0200)]
Rename the store to better reflect the domain objects

12 years agoRename MongoDB collection to comply with the RabbitMQ key name
Christos KK Loverdos [Thu, 29 Dec 2011 12:45:21 +0000 (14:45 +0200)]
Rename MongoDB collection to comply with the RabbitMQ key name

12 years agoMore MongoDB query refactoring
Christos KK Loverdos [Thu, 29 Dec 2011 12:39:21 +0000 (14:39 +0200)]
More MongoDB query refactoring

12 years agoRename wallet store methods
Christos KK Loverdos [Thu, 29 Dec 2011 12:09:45 +0000 (14:09 +0200)]
Rename wallet store methods

12 years agoRefactor MongoDB quering to reusable methods
Christos KK Loverdos [Thu, 29 Dec 2011 12:06:12 +0000 (14:06 +0200)]
Refactor MongoDB quering to reusable methods

12 years agoRename master conf
Christos KK Loverdos [Thu, 29 Dec 2011 11:24:20 +0000 (13:24 +0200)]
Rename master conf

12 years agoRename event store to catch semantics better
Christos KK Loverdos [Thu, 29 Dec 2011 11:15:30 +0000 (13:15 +0200)]
Rename event store to catch semantics better

12 years agoAdd min,max time calculations for user state
Christos KK Loverdos [Thu, 29 Dec 2011 10:59:17 +0000 (12:59 +0200)]
Add min,max time calculations for user state

12 years agoMake vmId a symbolic name to avoid lurking strings
Christos KK Loverdos [Thu, 29 Dec 2011 10:20:28 +0000 (12:20 +0200)]
Make vmId a symbolic name to avoid lurking strings

12 years agoFix fromJson and delegate to JsonHelpers
Christos KK Loverdos [Thu, 29 Dec 2011 10:19:01 +0000 (12:19 +0200)]
Fix fromJson and delegate to JsonHelpers

12 years agoUse an immutable collection for source event IDs
Christos KK Loverdos [Thu, 29 Dec 2011 10:18:20 +0000 (12:18 +0200)]
Use an immutable collection for source event IDs

12 years agoCapture timestamp semantics with a better name.
Christos KK Loverdos [Thu, 29 Dec 2011 09:04:14 +0000 (11:04 +0200)]
Capture timestamp semantics with a better name.

12 years agoFix small typo and do another round of akka version upgrade.
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.

12 years agoForgot to upgrade akka version in SBT definition
Christos KK Loverdos [Thu, 29 Dec 2011 07:40:10 +0000 (09:40 +0200)]
Forgot to upgrade akka version in SBT definition

12 years agoInitial implementation of accounting method
Georgios Gousios [Fri, 23 Dec 2011 12:47:23 +0000 (14:47 +0200)]
Initial implementation of accounting method

12 years agoStricted accounting test check
Georgios Gousios [Fri, 23 Dec 2011 12:47:02 +0000 (14:47 +0200)]
Stricted accounting test check

12 years agoMore verbose debug logging, save custom timestamp
Georgios Gousios [Fri, 23 Dec 2011 12:20:47 +0000 (14:20 +0200)]
More verbose debug logging, save custom timestamp

12 years agoFix problem with duplicate sha-1 ids being produced
Georgios Gousios [Fri, 23 Dec 2011 12:20:08 +0000 (14:20 +0200)]
Fix problem with duplicate sha-1 ids being produced

12 years agoAdd custom timestamp, to fill in when msg is first stored
Georgios Gousios [Fri, 23 Dec 2011 12:19:38 +0000 (14:19 +0200)]
Add custom timestamp, to fill in when msg is first stored

12 years agoDon't serialize the logger
Georgios Gousios [Fri, 23 Dec 2011 12:15:40 +0000 (14:15 +0200)]
Don't serialize the logger

12 years agoUpgrade akka to 1.3-RC5
Christos KK Loverdos [Thu, 29 Dec 2011 07:36:04 +0000 (09:36 +0200)]
Upgrade akka to 1.3-RC5

12 years agoAdd typesafe repo to pom.xml
Christos KK Loverdos [Thu, 29 Dec 2011 07:35:26 +0000 (09:35 +0200)]
Add typesafe repo to pom.xml

12 years agoAPI change should have been committed earlier (II)
Christos KK Loverdos [Tue, 27 Dec 2011 13:23:37 +0000 (15:23 +0200)]
API change should have been committed earlier (II)

12 years agoAPI change should have been committed earlier
Christos KK Loverdos [Tue, 27 Dec 2011 13:22:49 +0000 (15:22 +0200)]
API change should have been committed earlier

12 years agoDelegate json-related functionality to JsonHelpers (UserState)
Christos KK Loverdos [Tue, 27 Dec 2011 13:21:53 +0000 (15:21 +0200)]
Delegate json-related functionality to JsonHelpers (UserState)

12 years agoUse vals and not raw strings for JSON names
Christos KK Loverdos [Tue, 27 Dec 2011 13:16:17 +0000 (15:16 +0200)]
Use vals and not raw strings for JSON names

12 years agoMake better use of DBObjects
Christos KK Loverdos [Tue, 27 Dec 2011 13:07:13 +0000 (15:07 +0200)]
Make better use of DBObjects

12 years agoClearer code for UserActorManager
Christos KK Loverdos [Tue, 27 Dec 2011 12:42:37 +0000 (14:42 +0200)]
Clearer code for UserActorManager

12 years agoDelegate json-related functionality to JsonHelpers
Christos KK Loverdos [Tue, 27 Dec 2011 12:33:46 +0000 (14:33 +0200)]
Delegate json-related functionality to JsonHelpers

12 years agoFactor out long names by using a value and by importing an object
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

12 years agoUse existing properties API and make MasterConf API a bit more flexible with a defaul...
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

12 years agoUse existing API for list-valued properties
Christos KK Loverdos [Tue, 27 Dec 2011 12:20:40 +0000 (14:20 +0200)]
Use existing API for list-valued properties

12 years agoAdd documentation
Christos KK Loverdos [Tue, 27 Dec 2011 12:16:56 +0000 (14:16 +0200)]
Add documentation

12 years agoAdd one more query to event store.
Christos KK Loverdos [Fri, 23 Dec 2011 10:32:01 +0000 (12:32 +0200)]
Add one more query to event store.

12 years agoClose mongodb query cursors.
Christos KK Loverdos [Fri, 23 Dec 2011 10:30:47 +0000 (12:30 +0200)]
Close mongodb query cursors.

12 years agoSome more CryptoUtils love.
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.

12 years agoMake CryptoUtils thread-safe
Christos KK Loverdos [Fri, 23 Dec 2011 10:16:19 +0000 (12:16 +0200)]
Make CryptoUtils thread-safe

12 years agoSome more JsonHelpers love
Christos KK Loverdos [Fri, 23 Dec 2011 10:07:40 +0000 (12:07 +0200)]
Some more JsonHelpers love

12 years agoAugment JsonHelpers so that all clients call this in the future.
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.

12 years agoAdding the owned resources snapshot
Christos KK Loverdos [Fri, 23 Dec 2011 09:14:00 +0000 (11:14 +0200)]
Adding the owned resources snapshot

12 years agoAdd owned resources to user state (provisionally)
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.

12 years agoImplement and test method that aligns charge timeslots among algorithms and pricelists
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

12 years agoresolve* methods return maps sorted by timeslot start time
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

12 years agoMake Timeslots comparable by start date
Georgios Gousios [Thu, 22 Dec 2011 15:56:42 +0000 (17:56 +0200)]
Make Timeslots comparable by start date

12 years agoDefault baseline policy
Georgios Gousios [Thu, 22 Dec 2011 13:50:34 +0000 (15:50 +0200)]
Default baseline policy

12 years agoFix resource event validation
Georgios Gousios [Thu, 22 Dec 2011 13:50:17 +0000 (15:50 +0200)]
Fix resource event validation

12 years agoRename method WalletStore -> walletStore
Christos KK Loverdos [Thu, 22 Dec 2011 15:23:26 +0000 (17:23 +0200)]
Rename method WalletStore -> walletStore

12 years agoUse the time threshold for user state.
Christos KK Loverdos [Thu, 22 Dec 2011 15:02:00 +0000 (17:02 +0200)]
Use the time threshold for user state.

12 years agoChange Dispatcher response model.
Christos KK Loverdos [Thu, 22 Dec 2011 14:58:23 +0000 (16:58 +0200)]
Change Dispatcher response model.

12 years agoIntroduce a time threshold for user state recomputations.
Christos KK Loverdos [Thu, 22 Dec 2011 12:52:32 +0000 (14:52 +0200)]
Introduce a time threshold for user state recomputations.

12 years agoMain properties file, accidentaly removed
Georgios Gousios [Thu, 22 Dec 2011 11:56:46 +0000 (13:56 +0200)]
Main properties file, accidentaly removed