Statistics
| Branch: | Tag: | Revision:

root / src / main / scala / gr / grnet / aquarium @ f1257c64

# Date Author Comment
f1257c64 01/31/2012 02:55 pm Georgios Gousios

Fix code assuming that a list always has a tail

28a85ac0 01/31/2012 01:13 pm Georgios Gousios

Update available policies when on configuration file update

8ffa7f17 01/31/2012 01:10 pm Georgios Gousios

Wrapper for stored DSLPolicy YAML dumps

9085a752 01/31/2012 01:09 pm Georgios Gousios

License headers

886367e9 01/30/2012 05:42 pm Georgios Gousios

Logic to load/store policies from Policy store

74316e94 01/30/2012 04:56 pm Georgios Gousios

User agreement history in user store

e109f518 01/30/2012 03:33 pm Georgios Gousios

API methods for policies

489d6802 01/30/2012 03:27 pm Georgios Gousios

Implement custom Policy entry and policy storage ops

7f541f21 01/30/2012 12:42 pm Georgios Gousios

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

4d4f262c 01/30/2012 12:15 pm Georgios Gousios

Fix all serialization to YAML issues

4530b9c3 01/27/2012 06:35 pm Christos KK Loverdos

Work in progress... Still in flux

3b5d6545 01/27/2012 05:28 pm Georgios Gousios

toMap() method for remaining DSL classes.

Also, immutable map generation for all classes

10a198cd 01/27/2012 05:27 pm Georgios Gousios

Method to parse YAML from a String

2201f6f1 01/27/2012 03:00 pm Georgios Gousios

One fact in one place commit

221feff6 01/27/2012 12:55 pm Georgios Gousios

Basic support for serializing policies to YAML

edd32244 01/26/2012 04:56 pm Christos KK Loverdos

Prune unused functionality.

4050a3c9 01/26/2012 04:52 pm Christos KK Loverdos

Some new billing stuff.

Also using doubles everywhere instead of floats

ebe143a9 01/19/2012 06:26 pm Georgios Gousios

Support policy retrieval for a date

274e3643 01/19/2012 06:26 pm Georgios Gousios

Policy store operations

fc330de4 01/19/2012 06:24 pm Georgios Gousios

Json support

80dac2ca 01/17/2012 04:37 pm Christos KK Loverdos

Stylistic change

9ab448bf 01/17/2012 04:34 pm Christos KK Loverdos

Cleanup some code before the coming changes

95acf0fd 01/17/2012 04:24 pm Christos KK Loverdos

Avoid a compilation warning (-deprecation)

16319b44 01/17/2012 03:45 pm Christos KK Loverdos

Doc cleanup in user actor

250dd1c1 01/17/2012 03:44 pm Christos KK Loverdos

Gather billing computations in one file

9b7880f6 01/17/2012 03:24 pm Christos KK Loverdos

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.

3d44d85c 01/17/2012 03:18 pm Christos KK Loverdos

Use wallet-specific json field names

843412ab 01/17/2012 03:13 pm Christos KK Loverdos

Do some effectful composition instead of try/catch

c9cacef4 01/16/2012 06:12 pm Christos KK Loverdos

WIP #1852 Periodic billing calculation

27f6947d 01/16/2012 05:45 pm Christos KK Loverdos

Change equals to ==

4953be97 01/16/2012 03:04 pm Christos KK Loverdos

Merge stuff from benchmark branch

f4f035ff 01/12/2012 01:38 pm Georgios Gousios

Alternative way to calculate state, with entry points commented out

1935d558 01/12/2012 01:37 pm Georgios Gousios

Query to retrieve all events that comprise the history of an event

97dba044 01/12/2012 12:42 pm Georgios Gousios

Names for event store fields

1d28971f 01/12/2012 12:41 pm Georgios Gousios

Configurable number of users to init (up to 1000)

86de8200 01/12/2012 12:40 pm Georgios Gousios

Log verbosity--

7cc6b145 01/12/2012 12:40 pm Georgios Gousios

Parametrise number of actors to spawn, more threads for reading from store

6b4ecc99 01/11/2012 10:06 pm Georgios Gousios

Events are now replayed correctly

dc5755ae 01/11/2012 10:05 pm Georgios Gousios

The correct name of the field is occuredMillis

57bf6eeb 01/11/2012 07:05 pm Georgios Gousios

Compilation fixes

1420b0dc 01/11/2012 07:01 pm Georgios Gousios

Support for replaying event logs to construct the user runtime state

2f474111 01/11/2012 02:47 pm Georgios Gousios

Properly shutdown user actors on Aquarium shutdown

bc179ea5 01/11/2012 02:46 pm Georgios Gousios

Save user state on shutdown

87b46be1 01/11/2012 02:46 pm Georgios Gousios

Method to delete user state from store

67773c01 01/11/2012 11:44 am Georgios Gousios

Take care of first time state changes

1981de11 01/11/2012 01:45 am Christos KK Loverdos

Simplify resources snapshot to make our lives easier with the lift-json library.

After a few failed attempts with lift-json, I sacrifice the Map for a List.

749e46cc 01/11/2012 01:45 am Christos KK Loverdos

WIP on the algos documentation camp

af2ff726 01/11/2012 01:45 am Christos KK Loverdos

Give the option of pretty or non-pretty json printing

3c8efc71 01/10/2012 06:17 pm Georgios Gousios

Store the last update timestamp per resource and instance id

This code has some errors with JSON serialization

11d59f68 01/10/2012 04:45 pm Christos KK Loverdos

Add a few helper methods to resource event

6c32b693 01/10/2012 04:45 pm Christos KK Loverdos

Super documenter. Work in progress.

An attempt is being made to work the algorithms in plain prose.
Hopefully, this will help everyone get a better understanding of the
complexities involved and of the quite interesting problem domain.

As I said, this is Work in Progress...

0bb5efaf 01/10/2012 04:28 pm Georgios Gousios

Don't store the whole agreement to the user state

Store a reference by name instead.

2655e5cd 01/10/2012 04:27 pm Georgios Gousios

Case objects instead of objects for cost policy definitions

49dd1d9a 01/10/2012 03:27 pm Georgios Gousios

The log string has 2 args, not 3

f8ed9135 01/10/2012 03:27 pm Georgios Gousios

Use the list of resources defined in the policy

f8d75975 01/10/2012 03:27 pm Georgios Gousios

Store the newly created user actor in the LRU cache

00df2d57 01/10/2012 12:00 pm Christos KK Loverdos

Do not use default global value parameter and take advantage of pattern case class matching

7e87f81b 01/10/2012 11:59 am Christos KK Loverdos

Augment DSLCostPolicy with utility methods

bf1fba4c 01/10/2012 11:34 am Christos KK Loverdos

Refactor getInstanceId to not rely on global variables

28b43673 01/10/2012 11:10 am Christos KK Loverdos

Equality is always a possibility

538080af 01/10/2012 11:01 am Christos KK Loverdos

Catch a message that is sent anyway

3078e2ca 01/09/2012 06:09 pm Christos KK Loverdos

Consistent `Id` naming (II)

Forgot these cases when I refactored for the previosu commit.

02062fc6 01/09/2012 05:50 pm Christos KK Loverdos

Consistent `Id` naming

2e04077c 01/09/2012 05:47 pm Christos KK Loverdos

Style: do not use return

d241bfc8 01/09/2012 05:43 pm Christos KK Loverdos

Fix a couple of compilation warnings.

We still get the `head` though (via next), so the semantics are similar.

d81b8413 01/09/2012 05:41 pm Christos KK Loverdos

WIP on user get balance request.

Puting everything in line with the rest of the system implementation.

68410272 01/09/2012 05:17 pm Georgios Gousios

Find previous wallet entries for this event

8a726d5f 01/09/2012 05:16 pm Georgios Gousios

Names for fields in the Json representation of the msg

0ff4bd89 01/09/2012 04:53 pm Georgios Gousios

Spice up WalletEntries with resource and instance info

d45f9b86 01/09/2012 04:48 pm Christos KK Loverdos

Eliminate pattern matching since I am not doing anything with the specific cases

be004b37 01/09/2012 04:46 pm Christos KK Loverdos

Small refactoring to ensure user state

d8473d3c 01/09/2012 04:41 pm Christos KK Loverdos

Fill in and use UserState snapshots from DB.

44caafd9 01/09/2012 04:03 pm Christos KK Loverdos

Add documentation for store-related collections, give better names and fix a couple of bugs

67f327fc 01/09/2012 03:46 pm Christos KK Loverdos

Take into account active snapshot for timestamp computations

c874bd65 01/09/2012 03:43 pm Christos KK Loverdos

Use DEBUG shortcuts

56c879b5 01/09/2012 03:30 pm Christos KK Loverdos

Handle UserEvent in UserActor

653c0ced 01/09/2012 03:28 pm Christos KK Loverdos

Small doc addition for UserEvent

4231d272 01/09/2012 03:17 pm Christos KK Loverdos

Remove unused subclasses of UserDataSnapshot

2a099406 01/09/2012 03:10 pm Christos KK Loverdos

Collection renaming a bug fix in UserState query

84337e40 01/09/2012 02:59 pm Christos KK Loverdos

Make UserState roles immutable

560951e7 01/09/2012 02:57 pm Christos KK Loverdos

Add a few queries to UserEvent

ea8511c3 01/09/2012 02:47 pm Christos KK Loverdos

Forward UserState events to dispatcher

11b49c26 01/09/2012 02:44 pm Georgios Gousios

Calculate hours, not minutes

1638f2dd 01/09/2012 02:44 pm Georgios Gousios

More precise error message

fc1626e4 01/09/2012 02:44 pm Georgios Gousios

More tests => several errors fixed

bbc7a37c 01/09/2012 02:41 pm Christos KK Loverdos

Generify EventProcessorService to avoid too many casts

3e48d8b8 01/09/2012 02:29 pm Christos KK Loverdos

Use UserDataSnapshotException

fdc420c4 01/09/2012 01:38 pm Christos KK Loverdos

Refactor user state change code

23802af9 01/05/2012 04:15 pm Georgios Gousios

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

85dacfc7 01/05/2012 02:58 pm Georgios Gousios

Remove wrong test

ffc5f043 01/05/2012 02:40 pm Georgios Gousios

Convert a timeslot to its duration in hours

226d2470 01/05/2012 02:40 pm Georgios Gousios

States for discrete cost policy events

e5a4dd4f 01/05/2012 10:53 am Georgios Gousios

Stricted definitions and explantations for cost policies

5cef59e0 01/04/2012 02:05 pm Georgios Gousios

Remove the resource state API, start using the new accounting code

2e4322cc 01/04/2012 02:04 pm Georgios Gousios

Purify the accounting code

-All required resource state passed as params
-Charge chunks exposed as top level entity

ad8d8db2 01/04/2012 11:21 am Georgios Gousios

Support for user configurable accounting policy locations

0dcd8f42 01/04/2012 09:16 am Georgios Gousios

Make the number of MongoDB connections a configurable property

7b37f843 01/03/2012 05:56 pm Georgios Gousios

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

2a5c0859 01/03/2012 05:53 pm Georgios Gousios

Create a new connection per store request

This is to take advantage of the Mongo driver connection pool

2c306c81 01/03/2012 03:36 pm Georgios Gousios

Implement the remaining bits of the user event processor service