aquarium
12 years agoUpdate DSL documentation, step 1
Georgios Gousios [Thu, 23 Feb 2012 14:44:21 +0000 (16:44 +0200)]
Update DSL documentation, step 1

12 years agoDebug mode, environment variables for aquarium init script
Georgios Gousios [Thu, 23 Feb 2012 10:10:14 +0000 (12:10 +0200)]
Debug mode, environment variables for aquarium init script

12 years agoDefault properties for Aquarium (forgotten file)
Georgios Gousios [Wed, 22 Feb 2012 14:30:18 +0000 (16:30 +0200)]
Default properties for Aquarium (forgotten file)

12 years agoCorrected loading of log4j.conf at runtime
Georgios Gousios [Tue, 21 Feb 2012 16:30:45 +0000 (18:30 +0200)]
Corrected loading of log4j.conf at runtime

12 years agoBy default, use log4j configuration in conf directory
Georgios Gousios [Tue, 21 Feb 2012 15:13:43 +0000 (17:13 +0200)]
By default, use log4j configuration in conf directory

12 years agoRemove cmd-line properties, add new default property file context
Georgios Gousios [Tue, 21 Feb 2012 15:12:04 +0000 (17:12 +0200)]
Remove cmd-line properties, add new default property file context

12 years agoDefault distribution files
Georgios Gousios [Tue, 21 Feb 2012 14:16:56 +0000 (16:16 +0200)]
Default distribution files

12 years agoCorrect bundle naming for tags
Georgios Gousios [Tue, 21 Feb 2012 13:55:53 +0000 (15:55 +0200)]
Correct bundle naming for tags

12 years agoSupport for bundling arbitrary commit ids
Georgios Gousios [Tue, 21 Feb 2012 13:04:04 +0000 (15:04 +0200)]
Support for bundling arbitrary commit ids

12 years agoStylistic changes
Georgios Gousios [Mon, 20 Feb 2012 15:53:13 +0000 (17:53 +0200)]
Stylistic changes

12 years agoChange timeslot.contains to include timeslot boundaries
Georgios Gousios [Mon, 20 Feb 2012 15:26:32 +0000 (17:26 +0200)]
Change timeslot.contains to include timeslot boundaries

12 years agoChange effective timeslot method sig to accept timeslots
Georgios Gousios [Mon, 20 Feb 2012 15:05:49 +0000 (17:05 +0200)]
Change effective timeslot method sig to accept timeslots

This is to ensure that for all expansions, the end date is after
the start date.

12 years agoWarnings--
Georgios Gousios [Mon, 20 Feb 2012 15:04:15 +0000 (17:04 +0200)]
Warnings--

12 years agoStricter creation tests, msgs when assertions fail
Georgios Gousios [Mon, 20 Feb 2012 15:02:33 +0000 (17:02 +0200)]
Stricter creation tests, msgs when assertions fail

12 years agoDate nodes when deserialized are longs. Handle this.
Georgios Gousios [Mon, 20 Feb 2012 15:01:27 +0000 (17:01 +0200)]
Date nodes when deserialized are longs. Handle this.

12 years agoNode for handling long values in YAML
Georgios Gousios [Mon, 20 Feb 2012 14:58:31 +0000 (16:58 +0200)]
Node for handling long values in YAML

12 years agoCharge event when policy/agreement is active
Georgios Gousios [Mon, 20 Feb 2012 11:04:16 +0000 (13:04 +0200)]
Charge event when policy/agreement is active

Fixes a bug that caused an event to be charged in full for all
policy/agreement combinations. Also docs++

12 years agoApplicability timeslots for policies and timeslots
Georgios Gousios [Fri, 17 Feb 2012 14:17:49 +0000 (16:17 +0200)]
Applicability timeslots for policies and timeslots

Charge events by spliting charge time into
slices defined by the applicability timeslots for
policies and agreements

12 years agoStore policies indexed per applicability timeslot
Georgios Gousios [Fri, 17 Feb 2012 14:16:10 +0000 (16:16 +0200)]
Store policies indexed per applicability timeslot

12 years agoTrivial fixes, toString implementation
Georgios Gousios [Fri, 17 Feb 2012 14:15:30 +0000 (16:15 +0200)]
Trivial fixes, toString implementation

12 years agoMethod to align a list of timeslots to another timeslot's boundaries
Georgios Gousios [Fri, 17 Feb 2012 11:26:19 +0000 (13:26 +0200)]
Method to align a list of timeslots to another timeslot's boundaries

12 years agoMerge remote-tracking branch 'origin/master'
Georgios Gousios [Thu, 16 Feb 2012 10:49:57 +0000 (12:49 +0200)]
Merge remote-tracking branch 'origin/master'

Conflicts:
src/main/scala/gr/grnet/aquarium/logic/accounting/Accounting.scala

12 years agoChecked-out from 18.. branch in order to change algorithm
Christos KK Loverdos [Tue, 14 Feb 2012 20:54:30 +0000 (22:54 +0200)]
Checked-out from 18.. branch in order to change algorithm

12 years agoUse common fail() instead of exit
Georgios Gousios [Tue, 14 Feb 2012 09:41:46 +0000 (11:41 +0200)]
Use common fail() instead of exit

12 years agoFix name for policy sotre
Georgios Gousios [Tue, 14 Feb 2012 09:40:47 +0000 (11:40 +0200)]
Fix name for policy sotre

12 years agoWIP on wallet entries.
Christos KK Loverdos [Mon, 13 Feb 2012 16:30:28 +0000 (18:30 +0200)]
WIP on wallet entries.

Constructing a proper value map depending on the cost policy.

12 years agoIntroduce cost policy vars
Christos KK Loverdos [Mon, 13 Feb 2012 15:40:42 +0000 (17:40 +0200)]
Introduce cost policy vars

These are the variables needed by each cost policy in order to do the
credit charge calculations. Normally, they are used by the algorithms
that do the actual calculations.

12 years agoRemove @inline annotations because of warnings
Christos KK Loverdos [Mon, 13 Feb 2012 15:39:36 +0000 (17:39 +0200)]
Remove @inline annotations because of warnings

12 years agoStart computing wallet entries
Christos KK Loverdos [Mon, 13 Feb 2012 14:18:36 +0000 (16:18 +0200)]
Start computing wallet entries

12 years agoFix method name in date calculator
Christos KK Loverdos [Mon, 13 Feb 2012 11:43:41 +0000 (13:43 +0200)]
Fix method name in date calculator

12 years agoEnhance contextual logger and show sample output
Christos KK Loverdos [Mon, 13 Feb 2012 11:42:52 +0000 (13:42 +0200)]
Enhance contextual logger and show sample output

12 years agoAdd bandwidth simulator
Christos KK Loverdos [Mon, 13 Feb 2012 11:42:04 +0000 (13:42 +0200)]
Add bandwidth simulator

12 years agoFinish script to start/stop aquarium
Georgios Gousios [Tue, 14 Feb 2012 08:48:41 +0000 (10:48 +0200)]
Finish script to start/stop aquarium

12 years agoStartup script for Aquarium
Georgios Gousios [Mon, 13 Feb 2012 15:55:20 +0000 (17:55 +0200)]
Startup script for Aquarium

12 years agoSkeleton functions tested working
Georgios Gousios [Mon, 13 Feb 2012 14:06:22 +0000 (16:06 +0200)]
Skeleton functions tested working

12 years agoFactor out clean and fail operations in methods
Georgios Gousios [Mon, 13 Feb 2012 13:56:57 +0000 (15:56 +0200)]
Factor out clean and fail operations in methods

12 years agoStash instead of requiring commit
Georgios Gousios [Mon, 13 Feb 2012 12:46:29 +0000 (14:46 +0200)]
Stash instead of requiring commit

12 years agoCheckout and create dirs
Georgios Gousios [Mon, 13 Feb 2012 11:59:20 +0000 (13:59 +0200)]
Checkout and create dirs

12 years agoInitial version of script to generate aquarium distr archive
Georgios Gousios [Mon, 13 Feb 2012 11:55:11 +0000 (13:55 +0200)]
Initial version of script to generate aquarium distr archive

12 years agoMerge branch '1852_billing_period_calc'
Christos KK Loverdos [Thu, 9 Feb 2012 21:45:16 +0000 (23:45 +0200)]
Merge branch '1852_billing_period_calc'

12 years agoInline a couple of utility methods
Christos KK Loverdos [Thu, 9 Feb 2012 17:00:23 +0000 (19:00 +0200)]
Inline a couple of utility methods

12 years agoIgnoring non-billable events
Christos KK Loverdos [Thu, 9 Feb 2012 16:57:49 +0000 (18:57 +0200)]
Ignoring non-billable events

12 years agoFix and augment logger
Christos KK Loverdos [Thu, 9 Feb 2012 16:30:31 +0000 (18:30 +0200)]
Fix and augment logger

12 years agoSpecial data structure for implicit OFF events
Christos KK Loverdos [Thu, 9 Feb 2012 15:42:53 +0000 (17:42 +0200)]
Special data structure for implicit OFF events

12 years agoCleanup resource event
Christos KK Loverdos [Thu, 9 Feb 2012 15:41:27 +0000 (17:41 +0200)]
Cleanup resource event

12 years agoAdd map-related utility methods
Christos KK Loverdos [Thu, 9 Feb 2012 15:40:52 +0000 (17:40 +0200)]
Add map-related utility methods

12 years agoAdjust logging output
Christos KK Loverdos [Thu, 9 Feb 2012 14:11:54 +0000 (16:11 +0200)]
Adjust logging output

12 years agoOh, I like contextual loggers.
Christos KK Loverdos [Thu, 9 Feb 2012 14:00:18 +0000 (16:00 +0200)]
Oh, I like contextual loggers.

Really handy when debugging.

12 years agoFix a bug in date fortmatting
Christos KK Loverdos [Thu, 9 Feb 2012 12:36:01 +0000 (14:36 +0200)]
Fix a bug in date fortmatting

12 years agoMerge branch '1852_billing_period_calc'
Georgios Gousios [Thu, 9 Feb 2012 09:13:13 +0000 (11:13 +0200)]
Merge branch '1852_billing_period_calc'

12 years agoTermination condition for billing month calculation
Christos KK Loverdos [Wed, 8 Feb 2012 17:41:14 +0000 (19:41 +0200)]
Termination condition for billing month calculation

12 years agoAugment date calculator
Christos KK Loverdos [Wed, 8 Feb 2012 17:40:42 +0000 (19:40 +0200)]
Augment date calculator

12 years agoRework data snapshots. Add one more to user state
Christos KK Loverdos [Wed, 8 Feb 2012 16:51:49 +0000 (18:51 +0200)]
Rework data snapshots. Add one more to user state

12 years agoStart the real deal
Christos KK Loverdos [Tue, 7 Feb 2012 15:25:41 +0000 (17:25 +0200)]
Start the real deal

12 years agoDon't attempt to clean up when not using mongo for testing
Georgios Gousios [Tue, 7 Feb 2012 15:08:02 +0000 (17:08 +0200)]
Don't attempt to clean up when not using mongo for testing

12 years agoBetter implementation of the no gaps test
Georgios Gousios [Tue, 7 Feb 2012 15:07:31 +0000 (17:07 +0200)]
Better implementation of the no gaps test

12 years agoRewrite policy file to trigger reparse in test
Georgios Gousios [Tue, 7 Feb 2012 14:48:48 +0000 (16:48 +0200)]
Rewrite policy file to trigger reparse in test

12 years agoMethod to check whether a (sorted) list of timeslots contains gaps
Georgios Gousios [Tue, 7 Feb 2012 14:48:22 +0000 (16:48 +0200)]
Method to check whether a (sorted) list of timeslots contains gaps

12 years agoJust reload policies from the store, instead of attempting to reconstruct state
Georgios Gousios [Tue, 7 Feb 2012 14:47:39 +0000 (16:47 +0200)]
Just reload policies from the store, instead of attempting to reconstruct state

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