aquarium
12 years agoNew method for retrieving a policy by its id
Georgios Gousios [Tue, 7 Feb 2012 14:47:01 +0000 (16:47 +0200)]
New method for retrieving a policy by its id

12 years agoSupport for setting a custom configurator for unit testing
Georgios Gousios [Tue, 7 Feb 2012 11:46:17 +0000 (13:46 +0200)]
Support for setting a custom configurator for unit testing

12 years agoAbsolute before/after methods
Georgios Gousios [Tue, 7 Feb 2012 11:45:14 +0000 (13:45 +0200)]
Absolute before/after methods

12 years agoRemove references to the obsolete scala-tools repo
Georgios Gousios [Tue, 7 Feb 2012 11:44:47 +0000 (13:44 +0200)]
Remove references to the obsolete scala-tools repo

12 years agoUse in memory store by default for tests
Georgios Gousios [Tue, 7 Feb 2012 09:30:54 +0000 (11:30 +0200)]
Use in memory store by default for tests

12 years agoSwitch to using Long.MaxValue to denote open timeframes
Georgios Gousios [Tue, 7 Feb 2012 09:30:37 +0000 (11:30 +0200)]
Switch to using Long.MaxValue to denote open timeframes

Don't use -1 in the to field to denote open timeframes
as it requires special treatment in various places and
is semantically ambiguous.

12 years agoRead configuration values from the cmd-line
Georgios Gousios [Tue, 7 Feb 2012 09:28:02 +0000 (11:28 +0200)]
Read configuration values from the cmd-line

12 years agoMerge branch '1852_billing_period_calc'
Christos KK Loverdos [Mon, 6 Feb 2012 16:23:50 +0000 (18:23 +0200)]
Merge branch '1852_billing_period_calc'

12 years agoPruning stuff from user state
Christos KK Loverdos [Mon, 6 Feb 2012 16:16:47 +0000 (18:16 +0200)]
Pruning stuff from user state

12 years agoFactoring out common code
Christos KK Loverdos [Mon, 6 Feb 2012 13:56:45 +0000 (15:56 +0200)]
Factoring out common code

12 years agoVarious test enhancements
Georgios Gousios [Mon, 6 Feb 2012 13:54:48 +0000 (15:54 +0200)]
Various test enhancements

-Support for selecting the store implementation at test runtime
-Get raw values for test configuration items
-Test for policy load/store

12 years agoConstruct and return a policy entry
Georgios Gousios [Mon, 6 Feb 2012 13:53:24 +0000 (15:53 +0200)]
Construct and return a policy entry

12 years agoConform to the specification, return results sorted
Georgios Gousios [Mon, 6 Feb 2012 13:52:44 +0000 (15:52 +0200)]
Conform to the specification, return results sorted

12 years agoAdd some debugging beautification
Christos KK Loverdos [Mon, 6 Feb 2012 13:51:02 +0000 (15:51 +0200)]
Add some debugging beautification

12 years agoMake UID generators for simulations more flexible
Christos KK Loverdos [Mon, 6 Feb 2012 13:28:37 +0000 (15:28 +0200)]
Make UID generators for simulations more flexible

12 years agoUpdate cc.spray repo and version
Christos KK Loverdos [Mon, 6 Feb 2012 12:37:46 +0000 (14:37 +0200)]
Update cc.spray repo and version

12 years agoBetter implement one query on resource event store
Christos KK Loverdos [Mon, 6 Feb 2012 11:37:11 +0000 (13:37 +0200)]
Better implement one query on resource event store

12 years agoAdd minute calculations to date calculator
Christos KK Loverdos [Mon, 6 Feb 2012 11:36:30 +0000 (13:36 +0200)]
Add minute calculations to date calculator

12 years agoAdd time calculation helper to resource event
Christos KK Loverdos [Mon, 6 Feb 2012 11:35:28 +0000 (13:35 +0200)]
Add time calculation helper to resource event

12 years agoMinor api addition to date calc (+scaladocs)
Christos KK Loverdos [Mon, 6 Feb 2012 10:54:24 +0000 (12:54 +0200)]
Minor api addition to date calc (+scaladocs)

12 years agoUse copy() for mutable date calcs
Christos KK Loverdos [Mon, 6 Feb 2012 10:49:34 +0000 (12:49 +0200)]
Use copy() for mutable date calcs

12 years agoBetter names for mutable date calc methods
Christos KK Loverdos [Mon, 6 Feb 2012 10:48:04 +0000 (12:48 +0200)]
Better names for mutable date calc methods

12 years agoFix a bug with mutable state.
Christos KK Loverdos [Mon, 6 Feb 2012 10:36:06 +0000 (12:36 +0200)]
Fix a bug with mutable state.

Although DateCalculator is mutable, I was using it as an immutable.

12 years agoShut up a few compiler warnings
Georgios Gousios [Mon, 6 Feb 2012 10:04:20 +0000 (12:04 +0200)]
Shut up a few compiler warnings

12 years agoEnriching the test case
Christos KK Loverdos [Fri, 3 Feb 2012 15:26:18 +0000 (17:26 +0200)]
Enriching the test case

12 years agoAdd support for custom date formats in DateCalculator
Christos KK Loverdos [Fri, 3 Feb 2012 12:11:24 +0000 (14:11 +0200)]
Add support for custom date formats in DateCalculator

12 years agoAugment and use resources map functionality
Christos KK Loverdos [Fri, 3 Feb 2012 12:02:21 +0000 (14:02 +0200)]
Augment and use resources map functionality

12 years agoIntroduce a handy map of resources
Christos KK Loverdos [Fri, 3 Feb 2012 11:39:59 +0000 (13:39 +0200)]
Introduce a handy map of resources

12 years agoUse basic rc context for policy loading.
Christos KK Loverdos [Fri, 3 Feb 2012 11:25:45 +0000 (13:25 +0200)]
Use basic rc context for policy loading.

Also try to refactor a bit in order to handle a few bugs (wip).

12 years agoFactor out basic resource context
Christos KK Loverdos [Fri, 3 Feb 2012 00:29:48 +0000 (02:29 +0200)]
Factor out basic resource context

12 years agoAdd more simulation methods and enrich the test case
Christos KK Loverdos [Thu, 2 Feb 2012 16:43:22 +0000 (18:43 +0200)]
Add more simulation methods and enrich the test case

Cannot load the policy file from the test env though...

12 years agoRetrieve a beautiful resource event value representation
Christos KK Loverdos [Thu, 2 Feb 2012 16:42:09 +0000 (18:42 +0200)]
Retrieve a beautiful resource event value representation

12 years agoAdd a simulations package
Christos KK Loverdos [Thu, 2 Feb 2012 14:39:54 +0000 (16:39 +0200)]
Add a simulations package

This will be handy when creating test cases for the new billing code.

12 years agoMemStore is a provider of itself
Christos KK Loverdos [Thu, 2 Feb 2012 14:39:20 +0000 (16:39 +0200)]
MemStore is a provider of itself

For simplicity, obviously.

12 years agoMerge branch 'master' into 1852_billing_period_calc
Christos KK Loverdos [Wed, 1 Feb 2012 15:21:03 +0000 (17:21 +0200)]
Merge branch 'master' into 1852_billing_period_calc

12 years agoRename the mem store
Christos KK Loverdos [Wed, 1 Feb 2012 15:20:35 +0000 (17:20 +0200)]
Rename the mem store

12 years agoOverride configurator's store provider
Christos KK Loverdos [Tue, 31 Jan 2012 15:50:24 +0000 (17:50 +0200)]
Override configurator's store provider

It is better to use this new method before asking for anything from the
configurator.

E.g.

 val mc = Configurator.MasterConfigurator.withStoreProviderClass(classOf[MemStoreProvider])

12 years agoMerge branch 'master' into 1852_billing_period_calc
Christos KK Loverdos [Tue, 31 Jan 2012 14:39:03 +0000 (16:39 +0200)]
Merge branch 'master' into 1852_billing_period_calc

Conflicts:
src/main/scala/gr/grnet/aquarium/user/UserDataSnapshot.scala
src/main/scala/gr/grnet/aquarium/user/UserStateComputations.scala
src/main/scala/gr/grnet/aquarium/user/actor/UserActor.scala

12 years agoImplement mem-based resource event store
Christos KK Loverdos [Tue, 31 Jan 2012 14:26:02 +0000 (16:26 +0200)]
Implement mem-based resource event store

12 years agoA few changes so that everything compiles
Christos KK Loverdos [Tue, 31 Jan 2012 14:25:37 +0000 (16:25 +0200)]
A few changes so that everything compiles

12 years agoIn memory store for tests, change property files search to /etc/aquarium
Georgios Gousios [Tue, 31 Jan 2012 14:19:05 +0000 (16:19 +0200)]
In memory store for tests, change property files search to /etc/aquarium

12 years agoImplementation of the UserEventStore interface in the in memory store
Georgios Gousios [Tue, 31 Jan 2012 14:05:44 +0000 (16:05 +0200)]
Implementation of the UserEventStore interface in the in memory store

12 years agoImplement mem-based wallet store
Christos KK Loverdos [Tue, 31 Jan 2012 13:56:34 +0000 (15:56 +0200)]
Implement mem-based wallet store

12 years agoImplementation of the policy store interface
Georgios Gousios [Tue, 31 Jan 2012 13:38:12 +0000 (15:38 +0200)]
Implementation of the policy store interface

12 years agoEmpty implementations for all store interefaces
Georgios Gousios [Tue, 31 Jan 2012 13:13:49 +0000 (15:13 +0200)]
Empty implementations for all store interefaces

12 years agoMostly atomic update of policies, Docs++
Georgios Gousios [Tue, 31 Jan 2012 12:55:54 +0000 (14:55 +0200)]
Mostly atomic update of policies, Docs++

12 years agoFix code assuming that a list always has a tail
Georgios Gousios [Tue, 31 Jan 2012 12:55:20 +0000 (14:55 +0200)]
Fix code assuming that a list always has a tail

12 years agoCalculating resource instance amounts
Christos KK Loverdos [Tue, 31 Jan 2012 12:55:13 +0000 (14:55 +0200)]
Calculating resource instance amounts

12 years agoMerge branch 'master' into 1852_billing_period_calc
Christos KK Loverdos [Tue, 31 Jan 2012 11:59:04 +0000 (13:59 +0200)]
Merge branch 'master' into 1852_billing_period_calc

12 years agoUpdate available policies when on configuration file update
Georgios Gousios [Tue, 31 Jan 2012 11:13:36 +0000 (13:13 +0200)]
Update available policies when on configuration file update

12 years agoWrapper for stored DSLPolicy YAML dumps
Georgios Gousios [Tue, 31 Jan 2012 11:10:38 +0000 (13:10 +0200)]
Wrapper for stored DSLPolicy YAML dumps

12 years agoLicense headers
Georgios Gousios [Tue, 31 Jan 2012 11:09:21 +0000 (13:09 +0200)]
License headers

12 years agoLogic to load/store policies from Policy store
Georgios Gousios [Mon, 30 Jan 2012 15:42:57 +0000 (17:42 +0200)]
Logic to load/store policies from Policy store

12 years agoMerge branch 'master' into 1852_billing_period_calc
Christos KK Loverdos [Mon, 30 Jan 2012 15:24:57 +0000 (17:24 +0200)]
Merge branch 'master' into 1852_billing_period_calc

Conflicts:
src/main/scala/gr/grnet/aquarium/user/UserDataSnapshot.scala

12 years ago[Does not compile] Clearing up some misunderstanding with amounts
Christos KK Loverdos [Mon, 30 Jan 2012 15:17:53 +0000 (17:17 +0200)]
[Does not compile] Clearing up some misunderstanding with amounts

12 years agoUser agreement history in user store
Georgios Gousios [Mon, 30 Jan 2012 14:56:32 +0000 (16:56 +0200)]
User agreement history in user store

12 years agoMerge branch 'master' into 1852_billing_period_calc
Christos KK Loverdos [Mon, 30 Jan 2012 13:36:33 +0000 (15:36 +0200)]
Merge branch 'master' into 1852_billing_period_calc

12 years agoAPI methods for policies
Georgios Gousios [Mon, 30 Jan 2012 13:33:31 +0000 (15:33 +0200)]
API methods for policies

12 years agoImplement custom Policy entry and policy storage ops
Georgios Gousios [Mon, 30 Jan 2012 13:27:07 +0000 (15:27 +0200)]
Implement custom Policy entry and policy storage ops

12 years agoMerge branch 'master' into 1852_billing_period_calc
Christos KK Loverdos [Mon, 30 Jan 2012 13:25:21 +0000 (15:25 +0200)]
Merge branch 'master' into 1852_billing_period_calc

12 years agoCOntinue with billing code and start cleaning up user actor
Christos KK Loverdos [Mon, 30 Jan 2012 13:21:52 +0000 (15:21 +0200)]
COntinue with billing code and start cleaning up user actor

12 years agoFix failing tests after merge
Georgios Gousios [Mon, 30 Jan 2012 12:21:00 +0000 (14:21 +0200)]
Fix failing tests after merge

12 years agoMerge branch '1852_billing_period_calc'
Georgios Gousios [Mon, 30 Jan 2012 10:42:51 +0000 (12:42 +0200)]
Merge branch '1852_billing_period_calc'

Conflicts:
src/main/scala/gr/grnet/aquarium/logic/accounting/dsl/DSL.scala
src/main/scala/gr/grnet/aquarium/logic/accounting/dsl/DSLAgreement.scala
src/main/scala/gr/grnet/aquarium/logic/accounting/dsl/DSLCostPolicy.scala
src/main/scala/gr/grnet/aquarium/logic/accounting/dsl/DSLCreditPlan.scala
src/main/scala/gr/grnet/aquarium/logic/accounting/dsl/DSLPriceList.scala
src/main/scala/gr/grnet/aquarium/logic/accounting/dsl/DSLResource.scala
src/main/scala/gr/grnet/aquarium/store/mongodb/MongoDBStore.scala

12 years agoFix all serialization to YAML issues
Georgios Gousios [Mon, 30 Jan 2012 10:15:11 +0000 (12:15 +0200)]
Fix all serialization to YAML issues

12 years agoWork in progress... Still in flux
Christos KK Loverdos [Fri, 27 Jan 2012 16:35:04 +0000 (18:35 +0200)]
Work in progress... Still in flux

12 years agotoMap() method for remaining DSL classes.
Georgios Gousios [Fri, 27 Jan 2012 15:28:53 +0000 (17:28 +0200)]
toMap() method for remaining DSL classes.

Also, immutable map generation for all classes

12 years agoMethod to parse YAML from a String
Georgios Gousios [Fri, 27 Jan 2012 15:27:35 +0000 (17:27 +0200)]
Method to parse YAML from a String

12 years agoOne fact in one place commit
Georgios Gousios [Fri, 27 Jan 2012 13:00:51 +0000 (15:00 +0200)]
One fact in one place commit

12 years agoUpgrade Akka to 1.3 and refactor SBT build file
Christos KK Loverdos [Fri, 27 Jan 2012 12:38:52 +0000 (14:38 +0200)]
Upgrade Akka to 1.3 and refactor SBT build file

12 years agoBasic support for serializing policies to YAML
Georgios Gousios [Fri, 27 Jan 2012 10:55:25 +0000 (12:55 +0200)]
Basic support for serializing policies to YAML

12 years agoPrune unused functionality.
Christos KK Loverdos [Thu, 26 Jan 2012 14:56:15 +0000 (16:56 +0200)]
Prune unused functionality.

12 years agoSome new billing stuff.
Christos KK Loverdos [Thu, 26 Jan 2012 14:52:03 +0000 (16:52 +0200)]
Some new billing stuff.

Also using doubles everywhere instead of floats

12 years agoAdd some dependencies stuff
Christos KK Loverdos [Tue, 24 Jan 2012 09:46:26 +0000 (11:46 +0200)]
Add some dependencies stuff

12 years agoDo some pom.xml micromanagement
Christos KK Loverdos [Fri, 20 Jan 2012 13:08:20 +0000 (15:08 +0200)]
Do some pom.xml micromanagement

12 years agoSupport policy retrieval for a date
Georgios Gousios [Thu, 19 Jan 2012 16:26:38 +0000 (18:26 +0200)]
Support policy retrieval for a date

12 years agoPolicy store operations
Georgios Gousios [Thu, 19 Jan 2012 16:26:10 +0000 (18:26 +0200)]
Policy store operations

12 years agoJson support
Georgios Gousios [Thu, 19 Jan 2012 16:24:38 +0000 (18:24 +0200)]
Json support

12 years agoStylistic change
Christos KK Loverdos [Tue, 17 Jan 2012 14:37:36 +0000 (16:37 +0200)]
Stylistic change

12 years agoCleanup some code before the coming changes
Christos KK Loverdos [Tue, 17 Jan 2012 14:34:56 +0000 (16:34 +0200)]
Cleanup some code before the coming changes

12 years agoAvoid a compilation warning (-deprecation)
Christos KK Loverdos [Tue, 17 Jan 2012 14:24:22 +0000 (16:24 +0200)]
Avoid a compilation warning (-deprecation)

12 years agoDoc cleanup in user actor
Christos KK Loverdos [Tue, 17 Jan 2012 13:45:22 +0000 (15:45 +0200)]
Doc cleanup in user actor

12 years agoGather billing computations in one file
Christos KK Loverdos [Tue, 17 Jan 2012 13:44:43 +0000 (15:44 +0200)]
Gather billing computations in one file

12 years agoUse receivedMillis for queries
Christos KK Loverdos [Tue, 17 Jan 2012 13:24:45 +0000 (15:24 +0200)]
Use receivedMillis for queries

Since Aquarium is the billing master, a billing period is defined in billing time.
So we use receivedMillis (aquarium time) and not occurredMillis (the event occurrence time).
This way we can easily make bills for past events and do not care when they will actually arrive.

12 years agoUse wallet-specific json field names
Christos KK Loverdos [Tue, 17 Jan 2012 13:18:54 +0000 (15:18 +0200)]
Use wallet-specific json field names

12 years agoDo some effectful composition instead of try/catch
Christos KK Loverdos [Tue, 17 Jan 2012 13:13:55 +0000 (15:13 +0200)]
Do some effectful composition instead of try/catch

12 years agoWIP #1852 Periodic billing calculation
Christos KK Loverdos [Mon, 16 Jan 2012 16:12:58 +0000 (18:12 +0200)]
WIP #1852 Periodic billing calculation

12 years agoChange equals to ==
Christos KK Loverdos [Mon, 16 Jan 2012 15:45:33 +0000 (17:45 +0200)]
Change equals to ==

12 years ago[maven-release-plugin] prepare for next development iteration
Christos KK Loverdos [Mon, 16 Jan 2012 14:10:06 +0000 (16:10 +0200)]
[maven-release-plugin] prepare for next development iteration

12 years ago[maven-release-plugin] prepare release aquarium-0.1 aquarium-0.1
Christos KK Loverdos [Mon, 16 Jan 2012 14:10:05 +0000 (16:10 +0200)]
[maven-release-plugin] prepare release aquarium-0.1

12 years agoHack to make a release.
Christos KK Loverdos [Mon, 16 Jan 2012 13:59:55 +0000 (15:59 +0200)]
Hack to make a release.

We need spray 0.9.2 release for this

12 years agoMerge stuff from benchmark branch
Christos KK Loverdos [Mon, 16 Jan 2012 13:04:17 +0000 (15:04 +0200)]
Merge stuff from benchmark branch

12 years agoSubmitted version
Georgios Gousios [Mon, 16 Jan 2012 10:19:05 +0000 (12:19 +0200)]
Submitted version

12 years agoEditing...
Christos KK Loverdos [Mon, 16 Jan 2012 09:12:49 +0000 (11:12 +0200)]
Editing...

12 years agoReview changes round 1
Georgios Gousios [Mon, 16 Jan 2012 09:36:44 +0000 (11:36 +0200)]
Review changes round 1

12 years agoCharging formulas, state change, sporadic micro-editing
Christos KK Loverdos [Mon, 16 Jan 2012 01:30:55 +0000 (03:30 +0200)]
Charging formulas, state change, sporadic micro-editing

12 years agoConclusions
Georgios Gousios [Sun, 15 Jan 2012 21:34:13 +0000 (23:34 +0200)]
Conclusions

12 years agoRelated work
Georgios Gousios [Sun, 15 Jan 2012 21:27:20 +0000 (23:27 +0200)]
Related work

12 years agoIntroduction
Georgios Gousios [Sun, 15 Jan 2012 19:21:52 +0000 (21:21 +0200)]
Introduction

12 years agoPerformance
Georgios Gousios [Sun, 15 Jan 2012 16:41:12 +0000 (18:41 +0200)]
Performance

12 years agoA bit about performance
Georgios Gousios [Sun, 15 Jan 2012 15:01:51 +0000 (17:01 +0200)]
A bit about performance