aquarium
12 years agoPreparing the move to master 1852_billing_period_calc
Christos KK Loverdos [Mon, 5 Mar 2012 15:08:57 +0000 (17:08 +0200)]
Preparing the move to master

12 years agoEnhance the debugging facilities
Christos KK Loverdos [Mon, 5 Mar 2012 15:00:37 +0000 (17:00 +0200)]
Enhance the debugging facilities

12 years agoEnhance default user state creation
Christos KK Loverdos [Mon, 5 Mar 2012 14:58:17 +0000 (16:58 +0200)]
Enhance default user state creation

12 years agoMore detailed conversion to policy entry
Christos KK Loverdos [Mon, 5 Mar 2012 10:34:35 +0000 (12:34 +0200)]
More detailed conversion to policy entry

12 years agoUse the new API from PolicyStore instead of the one from Policy
Christos KK Loverdos [Mon, 5 Mar 2012 10:33:39 +0000 (12:33 +0200)]
Use the new API from PolicyStore instead of the one from Policy

12 years agoAdd one utility method to timeslot
Christos KK Loverdos [Mon, 5 Mar 2012 10:32:49 +0000 (12:32 +0200)]
Add one utility method to timeslot

12 years agoStart moving stuff from Policy to PolicyStore
Christos KK Loverdos [Mon, 5 Mar 2012 10:31:42 +0000 (12:31 +0200)]
Start moving stuff from Policy to PolicyStore

12 years agoAdd year-related calculations
Christos KK Loverdos [Mon, 5 Mar 2012 10:30:58 +0000 (12:30 +0200)]
Add year-related calculations

12 years agoA day's worth of debugging enhancements. Back to square one.
Christos KK Loverdos [Fri, 2 Mar 2012 16:08:04 +0000 (18:08 +0200)]
A day's worth of debugging enhancements. Back to square one.

12 years agoSemantic changes and fixes on policy store.
Christos KK Loverdos [Fri, 2 Mar 2012 15:35:57 +0000 (17:35 +0200)]
Semantic changes and fixes on policy store.

Originally, policy store was for DSLPolicy. Now it is for PolicyEntry.
The commit reflects this semantic change to the API. Furthermore, a
few  relevant changes have been made.

12 years agoDelete the secondary event store on the User simulator
Christos KK Loverdos [Fri, 2 Mar 2012 14:48:56 +0000 (16:48 +0200)]
Delete the secondary event store on the User simulator

12 years agoMake withConfigurator viewable to the world
Christos KK Loverdos [Fri, 2 Mar 2012 14:42:04 +0000 (16:42 +0200)]
Make withConfigurator viewable to the world

12 years agoA human-friendlier toString for timeslot
Christos KK Loverdos [Fri, 2 Mar 2012 14:41:09 +0000 (16:41 +0200)]
A human-friendlier toString for timeslot

12 years agoReorganize mem store. Add clear() for resource events
Christos KK Loverdos [Fri, 2 Mar 2012 14:39:49 +0000 (16:39 +0200)]
Reorganize mem store. Add clear() for resource events

12 years agoResources doc
Georgios Gousios [Thu, 1 Mar 2012 13:03:43 +0000 (15:03 +0200)]
Resources doc

12 years agoRest api
Georgios Gousios [Thu, 1 Mar 2012 11:18:24 +0000 (13:18 +0200)]
Rest api

12 years agoMerge branch 'master' into tmp_master_merger
Christos KK Loverdos [Thu, 1 Mar 2012 15:29:45 +0000 (17:29 +0200)]
Merge branch 'master' into tmp_master_merger

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

12 years agowip
Christos KK Loverdos [Thu, 1 Mar 2012 15:17:26 +0000 (17:17 +0200)]
wip

12 years agoAdd a couple of utility methods to new wallet entry
Christos KK Loverdos [Thu, 1 Mar 2012 12:48:58 +0000 (14:48 +0200)]
Add a couple of utility methods to new wallet entry

12 years agoA data structure for ignored first-time events
Christos KK Loverdos [Thu, 1 Mar 2012 12:47:21 +0000 (14:47 +0200)]
A data structure for ignored first-time events

12 years agoIndent while running a closure
Christos KK Loverdos [Thu, 1 Mar 2012 12:45:13 +0000 (14:45 +0200)]
Indent while running a closure

12 years agoAdd some toXXXString utility methods
Christos KK Loverdos [Thu, 1 Mar 2012 11:11:21 +0000 (13:11 +0200)]
Add some toXXXString utility methods

12 years agoEnriching new wallet entries with some extra info
Christos KK Loverdos [Thu, 1 Mar 2012 10:49:45 +0000 (12:49 +0200)]
Enriching new wallet entries with some extra info

12 years agoDocumentation fixes. Just to catch semantics better
Christos KK Loverdos [Thu, 1 Mar 2012 10:38:38 +0000 (12:38 +0200)]
Documentation fixes. Just to catch semantics better

12 years agoDescription of resource events
Georgios Gousios [Tue, 28 Feb 2012 15:49:08 +0000 (17:49 +0200)]
Description of resource events

12 years agoHandle a corner case with "lonely" events
Christos KK Loverdos [Tue, 28 Feb 2012 15:39:41 +0000 (17:39 +0200)]
Handle a corner case with "lonely" events

12 years agoAdd info logging
Christos KK Loverdos [Tue, 28 Feb 2012 15:38:08 +0000 (17:38 +0200)]
Add info logging

12 years agoComputing new wallet entries
Christos KK Loverdos [Tue, 28 Feb 2012 13:17:25 +0000 (15:17 +0200)]
Computing new wallet entries

12 years agoRename stuff to capture semantics better
Christos KK Loverdos [Tue, 28 Feb 2012 12:45:00 +0000 (14:45 +0200)]
Rename stuff to capture semantics better

12 years agoFinally, returning the fully computed charge slots
Christos KK Loverdos [Tue, 28 Feb 2012 12:37:18 +0000 (14:37 +0200)]
Finally, returning the fully computed charge slots

12 years agoArchitecture docs
Georgios Gousios [Tue, 28 Feb 2012 12:22:01 +0000 (14:22 +0200)]
Architecture docs

12 years agoFactor out a computation that could potetially change
Christos KK Loverdos [Tue, 28 Feb 2012 11:22:56 +0000 (13:22 +0200)]
Factor out a computation that could potetially change

12 years agoThrow away a few compilation warnings
Christos KK Loverdos [Tue, 28 Feb 2012 11:18:20 +0000 (13:18 +0200)]
Throw away a few compilation warnings

12 years agoFix a compilation error by explicitly mapping
Christos KK Loverdos [Tue, 28 Feb 2012 11:10:57 +0000 (13:10 +0200)]
Fix a compilation error by explicitly mapping

... and throwing away for...yield

12 years agoUse billing month info, according to the new API
Christos KK Loverdos [Tue, 28 Feb 2012 10:59:20 +0000 (12:59 +0200)]
Use billing month info, according to the new API

12 years agoChange the repr of latest events snapshot
Christos KK Loverdos [Tue, 28 Feb 2012 10:54:30 +0000 (12:54 +0200)]
Change the repr of latest events snapshot

12 years agoStart putting charge chunk in context
Christos KK Loverdos [Fri, 24 Feb 2012 13:35:58 +0000 (15:35 +0200)]
Start putting charge chunk in context

12 years agoSimple cost policy algorithm compiler
Christos KK Loverdos [Fri, 24 Feb 2012 13:35:13 +0000 (15:35 +0200)]
Simple cost policy algorithm compiler

12 years agoA couple of methods are meant to be used internally
Christos KK Loverdos [Fri, 24 Feb 2012 13:33:35 +0000 (15:33 +0200)]
A couple of methods are meant to be used internally

12 years agoUse previous billing month
Christos KK Loverdos [Fri, 24 Feb 2012 13:32:30 +0000 (15:32 +0200)]
Use previous billing month

12 years agoFind all relevant resource event for billing period
Christos KK Loverdos [Fri, 24 Feb 2012 13:08:58 +0000 (15:08 +0200)]
Find all relevant resource event for billing period

There is still work to do there, esp the MongoDB implementation.

12 years agoGeneralize implicit OFFs to implicitly issued events
Christos KK Loverdos [Fri, 24 Feb 2012 13:03:13 +0000 (15:03 +0200)]
Generalize implicit OFFs to implicitly issued events

12 years agoUsing billing month info
Christos KK Loverdos [Fri, 24 Feb 2012 12:17:42 +0000 (14:17 +0200)]
Using billing month info

12 years agoChange the impl of mem store
Christos KK Loverdos [Thu, 23 Feb 2012 15:57:39 +0000 (17:57 +0200)]
Change the impl of mem store

12 years agoMake all snapshot contribute to user state snapshot time
Christos KK Loverdos [Thu, 23 Feb 2012 15:57:03 +0000 (17:57 +0200)]
Make all snapshot contribute to user state snapshot time

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 agoRevert change on logger, since parameter may depend on it
Christos KK Loverdos [Thu, 23 Feb 2012 11:57:39 +0000 (13:57 +0200)]
Revert change on logger, since parameter may depend on it

12 years agoReorgaize user state computation for billing period
Christos KK Loverdos [Thu, 23 Feb 2012 11:42:02 +0000 (13:42 +0200)]
Reorgaize user state computation for billing period

12 years agoUse 'by need' parameter
Christos KK Loverdos [Thu, 23 Feb 2012 11:26:32 +0000 (13:26 +0200)]
Use 'by need' parameter

12 years agoDate calculator is mutable
Christos KK Loverdos [Thu, 23 Feb 2012 10:33:02 +0000 (12:33 +0200)]
Date calculator is mutable

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 agoComputing charge slots
Christos KK Loverdos [Tue, 21 Feb 2012 15:36:32 +0000 (17:36 +0200)]
Computing charge slots

[DNC]: Does not compile

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 agoMerge branch 'master'
Christos KK Loverdos [Mon, 20 Feb 2012 12:21:32 +0000 (14:21 +0200)]
Merge branch 'master'

Conflicts:
src/main/scala/gr/grnet/aquarium/logic/accounting/Accounting.scala
src/main/scala/gr/grnet/aquarium/logic/accounting/dsl/DSLCostPolicy.scala
src/main/scala/gr/grnet/aquarium/logic/accounting/dsl/DSLCostPolicyVar.scala
src/main/scala/gr/grnet/aquarium/logic/accounting/dsl/Timeslot.scala
src/main/scala/gr/grnet/aquarium/user/UserDataSnapshot.scala
src/main/scala/gr/grnet/aquarium/user/UserStateComputations.scala

12 years agowip
Christos KK Loverdos [Mon, 20 Feb 2012 12:05:25 +0000 (14:05 +0200)]
wip

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 agoSmall (semantic) change towards a new charging algorithm
Christos KK Loverdos [Tue, 14 Feb 2012 13:43:42 +0000 (15:43 +0200)]
Small (semantic) change towards a new charging algorithm

Does not compile

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 agoAdd two UID generator implementations
Christos KK Loverdos [Tue, 14 Feb 2012 08:14:06 +0000 (10:14 +0200)]
Add two UID generator implementations

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 agoStartup script for Aquarium
Georgios Gousios [Mon, 13 Feb 2012 15:55:20 +0000 (17:55 +0200)]
Startup script for Aquarium

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 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 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